diff options
author | Guy Harris <guy@alum.mit.edu> | 1999-01-06 23:07:42 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 1999-01-06 23:07:42 +0000 |
commit | f8046a1f2976386b093d24b69c6b934c21107dad (patch) | |
tree | 3dd8683f6e3f3b06217a784777faf84eaf453c41 /wiretap/ngsniffer.c | |
parent | 464949dc2a72a8311df9ad144499844ffce2d52b (diff) |
The TLV structures in a CDP packet aren't necessarily aligned on 2-byte
boundaries, so use "pntohs()" to extract data from them, so that you
don't do unaligned accesses (which some processors don't handle).
Put the "IOS version" field out as multiple tree items, one per line of
text in the version description.
Use "memset()" rather than "bzero()" - "memset()" is used elsewhere, and
we already include the header file that declares it.
Use "ip_to_str()" rather than "inet_ntoa()" to display IP addresses as
text; that's what's used elsewhere in Ethereal.
svn path=/trunk/; revision=161
Diffstat (limited to 'wiretap/ngsniffer.c')
0 files changed, 0 insertions, 0 deletions