]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-arcnet.c
Merge git://github.com/the-tcpdump-group/tcpdump
[tcpdump] / print-arcnet.c
index 640d31beb06fed2b39b543ebac4807593ae34ff6..47d70d8bc7c50d47a0f671fa05c11854f0d82f9d 100644 (file)
  * as given to interface code.
  */
 struct arc_header {
-       u_int8_t  arc_shost;
-       u_int8_t  arc_dhost;
-       u_int8_t  arc_type;
+       uint8_t  arc_shost;
+       uint8_t  arc_dhost;
+       uint8_t  arc_type;
        /*
         * only present for newstyle encoding with LL fragmentation.
         * Don't use sizeof(anything), use ARC_HDR{,NEW}LEN instead.
         */
-       u_int8_t  arc_flag;
-       u_int16_t arc_seqid;
+       uint8_t  arc_flag;
+       uint16_t arc_seqid;
 
        /*
         * only present in exception packets (arc_flag == 0xff)
         */
-       u_int8_t  arc_type2;    /* same as arc_type */
-       u_int8_t  arc_flag2;    /* real flag value */
-       u_int16_t arc_seqid2;   /* real seqid value */
+       uint8_t  arc_type2;     /* same as arc_type */
+       uint8_t  arc_flag2;     /* real flag value */
+       uint16_t arc_seqid2;    /* real seqid value */
 };
 
 #define        ARC_HDRLEN              3
@@ -84,17 +84,17 @@ struct      arc_header {
  * never presents packets that look like exception frames.
  */
 struct arc_linux_header {
-       u_int8_t  arc_shost;
-       u_int8_t  arc_dhost;
-       u_int16_t arc_offset;
-       u_int8_t  arc_type;
+       uint8_t  arc_shost;
+       uint8_t  arc_dhost;
+       uint16_t arc_offset;
+       uint8_t  arc_type;
        /*
         * only present for newstyle encoding with LL fragmentation.
         * Don't use sizeof(anything), use ARC_LINUX_HDR{,NEW}LEN
         * instead.
         */
-       u_int8_t  arc_flag;
-       u_int16_t arc_seqid;
+       uint8_t  arc_flag;
+       uint16_t arc_seqid;
 };
 
 #define        ARC_LINUX_HDRLEN        5
@@ -326,11 +326,9 @@ arcnet_encap_print(netdissect_options *ndo, u_char arctype, const u_char *p,
                ip_print(ndo, p, length);
                return (1);
 
-#ifdef INET6
        case ARCTYPE_INET6:
                ip6_print(ndo, p, length);
                return (1);
-#endif /*INET6*/
 
        case ARCTYPE_ARP_OLD:
        case ARCTYPE_ARP:
@@ -341,7 +339,7 @@ arcnet_encap_print(netdissect_options *ndo, u_char arctype, const u_char *p,
        case ARCTYPE_ATALK:     /* XXX was this ever used? */
                if (ndo->ndo_vflag)
                        ND_PRINT((ndo, "et1 "));
-               atalk_print(p, length);
+               atalk_print(ndo, p, length);
                return (1);
 
        case ARCTYPE_IPX: