summaryrefslogtreecommitdiff
path: root/print-tcp.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-tcp.c
parent38bd52133279d4ed3d0f4416b7325350d9f306c8 (diff)
downloadtcpdump-e847135d66e822a96198a8d15771cf3a827b1ee9.tar.gz
Functions in libnetdissect must use ndo_error() function
Diffstat (limited to 'print-tcp.c')
-rw-r--r--print-tcp.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/print-tcp.c b/print-tcp.c
index 5374e8a4..a1d68a8a 100644
--- a/print-tcp.c
+++ b/print-tcp.c
@@ -194,12 +194,12 @@ tcp_print(netdissect_options *ndo,
if (ip6->ip6_nxt == IPPROTO_TCP) {
ND_PRINT((ndo, "%s.%s > %s.%s: ",
ip6addr_string(ndo, &ip6->ip6_src),
- tcpport_string(sport),
+ tcpport_string(ndo, sport),
ip6addr_string(ndo, &ip6->ip6_dst),
- tcpport_string(dport)));
+ tcpport_string(ndo, dport)));
} else {
ND_PRINT((ndo, "%s > %s: ",
- tcpport_string(sport), tcpport_string(dport)));
+ tcpport_string(ndo, sport), tcpport_string(ndo, dport)));
}
} else
#endif /*INET6*/
@@ -207,12 +207,12 @@ tcp_print(netdissect_options *ndo,
if (ip->ip_p == IPPROTO_TCP) {
ND_PRINT((ndo, "%s.%s > %s.%s: ",
ipaddr_string(ndo, &ip->ip_src),
- tcpport_string(sport),
+ tcpport_string(ndo, sport),
ipaddr_string(ndo, &ip->ip_dst),
- tcpport_string(dport)));
+ tcpport_string(ndo, dport)));
} else {
ND_PRINT((ndo, "%s > %s: ",
- tcpport_string(sport), tcpport_string(dport)));
+ tcpport_string(ndo, sport), tcpport_string(ndo, dport)));
}
}