Changeset View
Changeset View
Standalone View
Standalone View
head/contrib/tcpdump/print-null.c
Show First 20 Lines • Show All 105 Lines • ▼ Show 20 Lines | null_if_print(netdissect_options *ndo, const struct pcap_pkthdr *h, const u_char *p) | ||||
p += NULL_HDRLEN; | p += NULL_HDRLEN; | ||||
switch (family) { | switch (family) { | ||||
case BSD_AFNUM_INET: | case BSD_AFNUM_INET: | ||||
ip_print(ndo, p, length); | ip_print(ndo, p, length); | ||||
break; | break; | ||||
#ifdef INET6 | |||||
case BSD_AFNUM_INET6_BSD: | case BSD_AFNUM_INET6_BSD: | ||||
case BSD_AFNUM_INET6_FREEBSD: | case BSD_AFNUM_INET6_FREEBSD: | ||||
case BSD_AFNUM_INET6_DARWIN: | case BSD_AFNUM_INET6_DARWIN: | ||||
ip6_print(ndo, p, length); | ip6_print(ndo, p, length); | ||||
break; | break; | ||||
#endif | |||||
case BSD_AFNUM_ISO: | case BSD_AFNUM_ISO: | ||||
isoclns_print(ndo, p, length, caplen); | isoclns_print(ndo, p, length, caplen); | ||||
break; | break; | ||||
case BSD_AFNUM_APPLETALK: | case BSD_AFNUM_APPLETALK: | ||||
atalk_print(ndo, p, length); | atalk_print(ndo, p, length); | ||||
break; | break; | ||||
Show All 22 Lines |