]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-eigrp.c
More UNALIGNED_MEM{CPY,CMP} on IP addresses.
[tcpdump] / print-eigrp.c
index 4f941d96629e8517fc0825c6755afa58715082f2..5a8c035d003c46b61d2bc6e1ced88c683f287bde 100644 (file)
  * FOR A PARTICULAR PURPOSE.
  */
 
-#ifndef lint
-static const char rcsid[] _U_ =
-    "@(#) $Header: /tcpdump/master/tcpdump/print-eigrp.c,v 1.7 2005-05-06 02:53:26 guy Exp $";
-#endif
-
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
@@ -115,14 +110,14 @@ struct eigrp_tlv_general_parm_t {
     u_int8_t k5;
     u_int8_t res;
     u_int8_t holdtime[2];
-};          
+};
 
 struct eigrp_tlv_sw_version_t {
     u_int8_t ios_major;
     u_int8_t ios_minor;
     u_int8_t eigrp_major;
     u_int8_t eigrp_minor;
-}; 
+};
 
 struct eigrp_tlv_ip_int_t {
     u_int8_t nexthop[4];
@@ -135,7 +130,7 @@ struct eigrp_tlv_ip_int_t {
     u_int8_t reserved[2];
     u_int8_t plen;
     u_int8_t destination; /* variable length [1-4] bytes encoding */
-}; 
+};
 
 struct eigrp_tlv_ip_ext_t {
     u_int8_t nexthop[4];
@@ -155,7 +150,7 @@ struct eigrp_tlv_ip_ext_t {
     u_int8_t reserved2[2];
     u_int8_t plen;
     u_int8_t destination; /* variable length [1-4] bytes encoding */
-}; 
+};
 
 struct eigrp_tlv_at_cable_setup_t {
     u_int8_t cable_start[2];
@@ -174,7 +169,7 @@ struct eigrp_tlv_at_int_t {
     u_int8_t reserved[2];
     u_int8_t cable_start[2];
     u_int8_t cable_end[2];
-}; 
+};
 
 struct eigrp_tlv_at_ext_t {
     u_int8_t nexthop[4];
@@ -280,7 +275,7 @@ eigrp_print(register const u_char *pptr, register u_int len) {
 
         if (eigrp_tlv_len < sizeof(struct eigrp_tlv_header) ||
             eigrp_tlv_len > tlen) {
-            print_unknown_data(tptr+sizeof(struct eigrp_tlv_header),"\n\t    ",tlen);
+            print_unknown_data(gndo,tptr+sizeof(struct eigrp_tlv_header),"\n\t    ",tlen);
             return;
         }
 
@@ -463,12 +458,12 @@ eigrp_print(register const u_char *pptr, register u_int len) {
 
         default:
             if (vflag <= 1)
-                print_unknown_data(tlv_tptr,"\n\t    ",tlv_tlen);
+                print_unknown_data(gndo,tlv_tptr,"\n\t    ",tlv_tlen);
             break;
         }
         /* do we want to see an additionally hexdump ? */
         if (vflag > 1)
-            print_unknown_data(tptr+sizeof(struct eigrp_tlv_header),"\n\t    ",
+            print_unknown_data(gndo,tptr+sizeof(struct eigrp_tlv_header),"\n\t    ",
                                eigrp_tlv_len-sizeof(struct eigrp_tlv_header));
 
         tptr+=eigrp_tlv_len;