diff options
author | Matus Fabian <matfabia@cisco.com> | 2017-08-16 05:37:36 -0700 |
---|---|---|
committer | Ole Trøan <otroan@employees.org> | 2017-08-16 15:56:32 +0000 |
commit | ab9a59c19a2765e001dd24a8f3e51882b6806e2d (patch) | |
tree | 5b18ac297b7b9f1f7220dd151930156484d66d04 /src/plugins/snat/nat64_db.h | |
parent | d292ab1e0f600c20d380a93180cccb6226c220e3 (diff) |
SNAT: Make proto optional in nat64_bib_dump (VPP-942)
make proto optional in nat64_bib_dump and nat64_st_dump
Change-Id: Idd102ce2b1555d38783fd22c84e46b4c48570edc
Signed-off-by: Matus Fabian <matfabia@cisco.com>
Diffstat (limited to 'src/plugins/snat/nat64_db.h')
-rw-r--r-- | src/plugins/snat/nat64_db.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/plugins/snat/nat64_db.h b/src/plugins/snat/nat64_db.h index 4511fb26a75..1e2dcc930d8 100644 --- a/src/plugins/snat/nat64_db.h +++ b/src/plugins/snat/nat64_db.h @@ -171,7 +171,12 @@ typedef int (*nat64_db_bib_walk_fn_t) (nat64_db_bib_entry_t * bibe, * @brief Walk NAT64 BIB. * * @param db NAT64 DB. - * @param proto L4 protocol. + * @param proto BIB L4 protocol: + * - 255 all BIBs + * - 6 TCP BIB + * - 17 UDP BIB + * - 1/58 ICMP BIB + * - otherwise "unknown" protocol BIB * @param fn The function to invoke on each entry visited. * @param ctx A context passed in the visit function. */ @@ -263,7 +268,12 @@ typedef int (*nat64_db_st_walk_fn_t) (nat64_db_st_entry_t * ste, void *ctx); * @brief Walk NAT64 session table. * * @param db NAT64 DB. - * @param proto L4 protocol. + * @param proto L4 protocol: + * - 255 all session tables + * - 6 TCP session table + * - 17 UDP session table + * - 1/58 ICMP session table + * - otherwise "unknown" protocol session table * @param fn The function to invoke on each entry visited. * @param ctx A context passed in the visit function. */ |