mirror of
https://github.com/the-tcpdump-group/tcpdump.git
synced 2024-11-27 20:14:12 +08:00
add GRE and RSVP to the supported IPv6 protos
This commit is contained in:
parent
0bdc0cafb7
commit
75d10a57f7
11
print-ip6.c
11
print-ip6.c
@ -21,7 +21,7 @@
|
||||
|
||||
#ifndef lint
|
||||
static const char rcsid[] _U_ =
|
||||
"@(#) $Header: /tcpdump/master/tcpdump/print-ip6.c,v 1.48 2005-05-20 21:02:30 hannes Exp $";
|
||||
"@(#) $Header: /tcpdump/master/tcpdump/print-ip6.c,v 1.49 2005-07-03 20:33:06 hannes Exp $";
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
@ -192,6 +192,7 @@ ip6_print(register const u_char *bp, register u_int length)
|
||||
case IPPROTO_PIM:
|
||||
pim_print(cp, len);
|
||||
return;
|
||||
|
||||
case IPPROTO_OSPF:
|
||||
ospf6_print(cp, len);
|
||||
return;
|
||||
@ -208,6 +209,14 @@ ip6_print(register const u_char *bp, register u_int length)
|
||||
pgm_print(cp, len, (const u_char *)ip6);
|
||||
return;
|
||||
|
||||
case IPPROTO_GRE:
|
||||
gre_print(cp, len);
|
||||
return;
|
||||
|
||||
case IPPROTO_RSVP:
|
||||
rsvp_print(cp, len);
|
||||
return;
|
||||
|
||||
case IPPROTO_NONE:
|
||||
(void)printf("no next header");
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user