]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-enc.c
DNS: Sync types with IANA
[tcpdump] / print-enc.c
index 9f541c3ccc569b85d7331da319f493bc8ae89bf7..928b02c8870e0eb83534b2d71db45b987edbbc4c 100644 (file)
@@ -100,7 +100,6 @@ enc_if_print(netdissect_options *ndo,
              const struct pcap_pkthdr *h, const u_char *p)
 {
        u_int length = h->len;
-       u_int caplen = h->caplen;
        u_int af, flags;
        const struct enchdr *hdr;
 
@@ -144,7 +143,6 @@ enc_if_print(netdissect_options *ndo,
        ND_PRINT("SPI 0x%08x: ", GET_BE_U_4(hdr->spi));
 
        length -= ENC_HDRLEN;
-       caplen -= ENC_HDRLEN;
        p += ENC_HDRLEN;
 
        switch (af) {