diff options
author | mcr <mcr> | 2005-04-06 21:32:38 +0000 |
---|---|---|
committer | mcr <mcr> | 2005-04-06 21:32:38 +0000 |
commit | 4189fb7df651e5742b15488d2f59dae5f526e82b (patch) | |
tree | 833c12cee17285e7709688606850e5a5c1108be2 /print-mpls.c | |
parent | 82b1d075858faa41c5749108489c7c1ffaf8f185 (diff) | |
download | tcpdump-4189fb7df651e5742b15488d2f59dae5f526e82b.tar.gz |
refactored ip_print() so that chained header parser (ESP/AH) can
more easily call the inner parts.
Diffstat (limited to 'print-mpls.c')
-rw-r--r-- | print-mpls.c | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/print-mpls.c b/print-mpls.c index a6de5cf1..a2043eac 100644 --- a/print-mpls.c +++ b/print-mpls.c @@ -28,7 +28,7 @@ #ifndef lint static const char rcsid[] _U_ = - "@(#) $Header: /tcpdump/master/tcpdump/print-mpls.c,v 1.12 2004-06-14 14:47:58 hannes Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/tcpdump/print-mpls.c,v 1.13 2005-04-06 21:32:41 mcr Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H @@ -86,7 +86,7 @@ mpls_print(const u_char *bp, u_int length) switch (MPLS_LABEL(v)) { case 0: /* IPv4 explicit NULL label */ case 3: /* IPv4 implicit NULL label */ - ip_print(p, length - (p - bp)); + ip_print(gndo, p, length - (p - bp)); break; #ifdef INET6 case 2: /* IPv6 explicit NULL label */ @@ -122,7 +122,7 @@ mpls_print(const u_char *bp, u_int length) case 0x4f: if (vflag>0) { printf("\n\t"); - ip_print(p, length - (p - bp)); + ip_print(gndo, p, length - (p - bp)); } else printf(", IP, length: %u",length); break; @@ -170,3 +170,11 @@ mpls_print(const u_char *bp, u_int length) trunc: printf("[|MPLS]"); } + + +/* + * Local Variables: + * c-style: whitesmith + * c-basic-offset: 8 + * End: + */ |