X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/11f73ad248fa22461ca040baa8dc94b864509efa..1fb50928ce27360c1c987312774f686b23c69b51:/print-dccp.c?ds=sidebyside diff --git a/print-dccp.c b/print-dccp.c index f552f053..6e252642 100644 --- a/print-dccp.c +++ b/print-dccp.c @@ -7,6 +7,8 @@ * BSD-style license that accompanies tcpdump or the GNU GPL version 2 */ +/* \summary: Datagram Congestion Control Protocol (DCCP) printer */ + #ifdef HAVE_CONFIG_H #include "config.h" #endif @@ -202,9 +204,10 @@ static int dccp_cksum(netdissect_options *ndo, const struct ip *ip, dccp_csum_coverage(dh, len), IPPROTO_DCCP); } -static int dccp6_cksum(const struct ip6_hdr *ip6, const struct dccp_hdr *dh, u_int len) +static int dccp6_cksum(netdissect_options *ndo, const struct ip6_hdr *ip6, + const struct dccp_hdr *dh, u_int len) { - return nextproto6_cksum(ip6, (const uint8_t *)(const void *)dh, len, + return nextproto6_cksum(ndo, ip6, (const uint8_t *)(const void *)dh, len, dccp_csum_coverage(dh, len), IPPROTO_DCCP); } @@ -342,7 +345,7 @@ void dccp_print(netdissect_options *ndo, const u_char *bp, const u_char *data2, if (IP_V(ip) == 4) sum = dccp_cksum(ndo, ip, dh, len); else if (IP_V(ip) == 6) - sum = dccp6_cksum(ip6, dh, len); + sum = dccp6_cksum(ndo, ip6, dh, len); if (sum != 0) ND_PRINT((ndo, "(incorrect -> 0x%04x)",in_cksum_shouldbe(dccp_sum, sum))); else