]> The Tcpdump Group git mirrors - tcpdump/commit
Make a buffer a "u_char" buffer, to avoid the warning some compilers
authorguy <guy>
Sun, 24 Sep 2000 07:59:35 +0000 (07:59 +0000)
committerguy <guy>
Sun, 24 Sep 2000 07:59:35 +0000 (07:59 +0000)
commit09a08a47f6329b6782c5f547738980f67ed30bfe
tree3015750d17447d617bcc1b3a41f16e2d9558852d
parentb3dd87de7e667064ea1e8d235f7a41958791ecd2
Make a buffer a "u_char" buffer, to avoid the warning some compilers
give when a "u_char *" is assigned a pointer to the first element of
that buffer.

Set the "ni" variable in the RIP "version 0" handler before using it.
(Note, though, that RFC 1058 says, in section 3.4:

      0   Datagrams whose version number is zero are to be ignored.
          These are from a previous version of the protocol, whose
          packet format was machine-specific.

so it's not clear that a version number of 0 should be printed in that
fashion.)
print-rip.c