summaryrefslogtreecommitdiff
path: root/print-mobile.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2014-04-04 00:43:46 -0700
committerGuy Harris <guy@alum.mit.edu>2014-04-04 00:43:46 -0700
commit1cde6435df23876fb88998e38739def0dc7dca47 (patch)
treebdd17f2de3c9b1588da3ef07daf803f51761db0c /print-mobile.c
parented58b28d5400642cbd797e280d12b3f1b638e850 (diff)
downloadtcpdump-1cde6435df23876fb88998e38739def0dc7dca47.tar.gz
Netdissectify the to-name resolution routines.
Have them take a netdissect_options * argument, and get the "no name resolution" flag from it. Move the declaration of dnaddr_string to addrtoname.h, along with the other XXX-to-string routines.
Diffstat (limited to 'print-mobile.c')
-rw-r--r--print-mobile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/print-mobile.c b/print-mobile.c
index 64c7d556..42f0aa1f 100644
--- a/print-mobile.c
+++ b/print-mobile.c
@@ -86,12 +86,12 @@ mobile_print(netdissect_options *ndo, const u_char *bp, u_int length)
if (osp) {
ND_PRINT((ndo, "[S] "));
if (ndo->ndo_vflag)
- ND_PRINT((ndo, "%s ", ipaddr_string(&mob->osrc)));
+ ND_PRINT((ndo, "%s ", ipaddr_string(ndo, &mob->osrc)));
} else {
ND_PRINT((ndo, "[] "));
}
if (ndo->ndo_vflag) {
- ND_PRINT((ndo, "> %s ", ipaddr_string(&mob->odst)));
+ ND_PRINT((ndo, "> %s ", ipaddr_string(ndo, &mob->odst)));
ND_PRINT((ndo, "(oproto=%d)", proto>>8));
}
vec[0].ptr = (const u_int8_t *)(void *)mob;