diff options
author | Francois-Xavier Le Bail <fx.lebail@yahoo.com> | 2015-09-05 22:28:04 +0200 |
---|---|---|
committer | Francois-Xavier Le Bail <fx.lebail@yahoo.com> | 2015-09-05 22:52:11 +0200 |
commit | e847135d66e822a96198a8d15771cf3a827b1ee9 (patch) | |
tree | 23a125fd30aab72b8233c073834606302f32c503 /print-pgm.c | |
parent | 38bd52133279d4ed3d0f4416b7325350d9f306c8 (diff) | |
download | tcpdump-e847135d66e822a96198a8d15771cf3a827b1ee9.tar.gz |
Functions in libnetdissect must use ndo_error() function
Diffstat (limited to 'print-pgm.c')
-rw-r--r-- | print-pgm.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/print-pgm.c b/print-pgm.c index fc2b0ccc..1821c2ba 100644 --- a/print-pgm.c +++ b/print-pgm.c @@ -201,12 +201,12 @@ pgm_print(netdissect_options *ndo, if (ip6->ip6_nxt == IPPROTO_PGM) { 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*/ @@ -214,12 +214,12 @@ pgm_print(netdissect_options *ndo, if (ip->ip_p == IPPROTO_PGM) { 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))); } } |