The TLV structures in a CDP packet aren't necessarily aligned on 2-byte
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 6 Jan 1999 23:07:42 +0000 (23:07 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 6 Jan 1999 23:07:42 +0000 (23:07 +0000)
commite7b1b1e1b69d7df8f03ccfacdb00d7572d0cea26
tree3dd8683f6e3f3b06217a784777faf84eaf453c41
parent2b822f8458bfeec683dcf6bbb0504808f8b7c15a
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.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@161 f5534014-38df-0310-8fa8-9805f1628bb7
packet-cdp.c