]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-dccp.c
NDOize AODV, IPv4 and SCTP decoders
[tcpdump] / print-dccp.c
index e9b246b01a1ec7960fa1330cef37de48ac0d30f6..d8a98755a49ef09c402421af90618f39bf8ce6e5 100644 (file)
@@ -183,10 +183,10 @@ static inline u_int dccp_csum_coverage(const struct dccp_hdr* dh, u_int len)
        return (cov > len)? len : cov;
 }
 
-static int dccp_cksum(const struct ip *ip,
+static int dccp_cksum(netdissect_options *ndo, const struct ip *ip,
        const struct dccp_hdr *dh, u_int len)
 {
-       return nextproto4_cksum(ip, (const u_int8_t *)(void *)dh, len,
+       return nextproto4_cksum(ndo, ip, (const u_int8_t *)(void *)dh, len,
                                dccp_csum_coverage(dh, len), IPPROTO_DCCP);
 }
 
@@ -334,7 +334,7 @@ void dccp_print(netdissect_options *ndo, const u_char *bp, const u_char *data2,
                dccp_sum = EXTRACT_16BITS(&dh->dccph_checksum);
                ND_PRINT((ndo, "cksum 0x%04x ", dccp_sum));
                if (IP_V(ip) == 4)
-                       sum = dccp_cksum(ip, dh, len);
+                       sum = dccp_cksum(ndo, ip, dh, len);
 #ifdef INET6
                else if (IP_V(ip) == 6)
                        sum = dccp6_cksum(ip6, dh, len);