diff options
author | Guy Harris <guy@alum.mit.edu> | 2014-04-04 00:43:46 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2014-04-04 00:43:46 -0700 |
commit | 1cde6435df23876fb88998e38739def0dc7dca47 (patch) | |
tree | bdd17f2de3c9b1588da3ef07daf803f51761db0c /print-llc.c | |
parent | ed58b28d5400642cbd797e280d12b3f1b638e850 (diff) | |
download | tcpdump-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-llc.c')
-rw-r--r-- | print-llc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/print-llc.c b/print-llc.c index 5619730a..00d9268b 100644 --- a/print-llc.c +++ b/print-llc.c @@ -312,8 +312,8 @@ llc_print(netdissect_options *ndo, const u_char *p, u_int length, u_int caplen, ND_PRINT((ndo, "%s ", tok2str(llc_values, "Unknown DSAP 0x%02x", dsap))); else ND_PRINT((ndo, "%s > %s %s ", - etheraddr_string(esrc), - etheraddr_string(edst), + etheraddr_string(ndo, esrc), + etheraddr_string(ndo, edst), tok2str(llc_values, "Unknown DSAP 0x%02x", dsap))); } else { if (esrc == NULL || edst == NULL) @@ -322,9 +322,9 @@ llc_print(netdissect_options *ndo, const u_char *p, u_int length, u_int caplen, tok2str(llc_values, "Unknown DSAP 0x%02x", dsap))); else ND_PRINT((ndo, "%s %s > %s %s ", - etheraddr_string(esrc), + etheraddr_string(ndo, esrc), tok2str(llc_values, "Unknown SSAP 0x%02x", ssap), - etheraddr_string(edst), + etheraddr_string(ndo, edst), tok2str(llc_values, "Unknown DSAP 0x%02x", dsap))); } } |