summaryrefslogtreecommitdiff
path: root/print-icmp.c
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <fx.lebail@yahoo.com>2015-09-05 22:28:04 +0200
committerFrancois-Xavier Le Bail <fx.lebail@yahoo.com>2015-09-05 22:52:11 +0200
commite847135d66e822a96198a8d15771cf3a827b1ee9 (patch)
tree23a125fd30aab72b8233c073834606302f32c503 /print-icmp.c
parent38bd52133279d4ed3d0f4416b7325350d9f306c8 (diff)
downloadtcpdump-e847135d66e822a96198a8d15771cf3a827b1ee9.tar.gz
Functions in libnetdissect must use ndo_error() function
Diffstat (limited to 'print-icmp.c')
-rw-r--r--print-icmp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/print-icmp.c b/print-icmp.c
index a2911561..e270cde1 100644
--- a/print-icmp.c
+++ b/print-icmp.c
@@ -386,14 +386,14 @@ icmp_print(netdissect_options *ndo, const u_char *bp, u_int plen, const u_char *
(void)snprintf(buf, sizeof(buf),
"%s tcp port %s unreachable",
ipaddr_string(ndo, &oip->ip_dst),
- tcpport_string(dport));
+ tcpport_string(ndo, dport));
break;
case IPPROTO_UDP:
(void)snprintf(buf, sizeof(buf),
"%s udp port %s unreachable",
ipaddr_string(ndo, &oip->ip_dst),
- udpport_string(dport));
+ udpport_string(ndo, dport));
break;
default:
@@ -556,7 +556,7 @@ icmp_print(netdissect_options *ndo, const u_char *bp, u_int plen, const u_char *
ND_PRINT((ndo, "ICMP %s, length %u", str, plen));
if (ndo->ndo_vflag && !fragmented) { /* don't attempt checksumming if this is a frag */
uint16_t sum, icmp_sum;
-
+
if (ND_TTEST2(*bp, plen)) {
vec[0].ptr = (const uint8_t *)(const void *)dp;
vec[0].len = plen;