]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-ipfc.c
OSPF: Use %zu to print sizeof values
[tcpdump] / print-ipfc.c
index 7add1b7b0965cbdc358fd8d274dcdef19ea4d11d..5222e51248e3207f7e964ef098daaa1fcd753f28 100644 (file)
@@ -139,9 +139,9 @@ trunc:
  * 'h->len' is the length of the packet off the wire, and 'h->caplen'
  * is the number of bytes actually captured.
  */
-u_int
+void
 ipfc_if_print(netdissect_options *ndo, const struct pcap_pkthdr *h, const u_char *p)
 {
-       ndo->ndo_protocol = "ipfc_if";
-       return (ipfc_print(ndo, p, h->len, h->caplen));
+       ndo->ndo_protocol = "ipfc";
+       ndo->ndo_ll_hdr_len += ipfc_print(ndo, p, h->len, h->caplen);
 }