"ether_ntohost()" - the only reason we include it is to get
"ether_ntohost()" declared.
We only include <net/if.h> to get "struct ifnet" in "struct arpcom"
defined on Solaris, so that we don't get errors when including
<netinet/if_ether.h>, so don't include that unless we're including
<netinet/if_ether.h>.
We only need incomplete definitions for "struct mbuf" and "struct
rtentry" if we're including <net/if.h>, so don't define them unless
we're including <netinet/if_ether.h>.
the request header and the file handle.
"parsestatus()" should only return NULL if the packet was truncated, so
that its callers can distinguish "packet truncated" from "NFS reply
status reports an error".
NFS-request-or-reply parsing routines that call "parsestatus()" should
not return 0 if "parsestatus()" returns a non-zero NFS reply status, so
that non-truncated packets with a non-zero NFS reply status aren't
printed as truncated NFS packets.
Fix some "TCHECK2()" calls to pass an object, not a pointer to an
object, as the first argument (the TCHECK/TTEST macros take objects, not
addresses, as the test argument).
NFS-request-or-reply parsing routines should return 0 for truncated
packets and 1 for non-truncated packets, not *vice versa*.
it in the routines, called by the top-level routines, to dissect
Ethernet, FDDI, or Token Ring packets, as those routines might also be
called for bridged frames over ATM, and the interface print routine for
ATM will also do "-x" printing.
"success", not "failure" - there's no special "end of list" parameter.
Get rid of the check for a parameter tag of 0xff, for the same reason.
Take out an extra space between the "[" and the list of rates in a
"supported rates" tagged parameter, and don't print the "[" or the "
Mbit]", or the leading space if there are no supported rates (or there
is no "supported rates" parameter.
Use "fn_print" to print the SSID, in case there are non-printable
characters in it.
Show the channel number in decimal, not hex, as that's how it's given in
the IEEE 802.11 spec.
Show the supported rates in a probe response, if present.
Get rid of random extra trailing space in tagged parameter output.
following problem:
According to the ASN.1 documents, OIDs of the form 2.100.3 are
correctly encoded as 0x0603813403. tcpdump fails to properly
decode them - it displays the value 4.20.3 instead of 2.100.3.
The VLAN ID calculation was wrong (either I had a bug in the
switch I tested the original code against, or I was just stupid)
- the "-1" offset doesn't belong there.
In addition, there are some new TLV values that Cisco has
started using.
quantities are stuffed into it.
Add an unsigned 8-bit variable as well, for 8-bit unsigned quantities.
Stuff unsigned 16-bit quantities into 16-bit variables.
Print unsigned values with "%u".
pointers from "char *" to "u_char *", to eliminate signed vs. unsigned
complaints from some compilers.
Don't use "++"s in initialization, to avoid warnings from the Sun C
compiler.