-#ifdef WORDS_BIGENDIAN
- u_int ig_v:4; /* protocol version number */
- u_int ig_op:4; /* opcode */
-#else
- u_int ig_op:4; /* opcode */
- u_int ig_v:4; /* protocol version number */
-#endif
- u_char ig_ed; /* edition number */
- u_short ig_as; /* autonomous system number */
- u_short ig_ni; /* number of subnet in local net */
- u_short ig_ns; /* number of networks in AS */
- u_short ig_nx; /* number of networks ouside AS */
- u_short ig_sum; /* checksum of IGRP header & data */
+ u_int8_t ig_vop; /* protocol version number / opcode */
+#define IGRP_V(x) (((x) & 0xf0) >> 4)
+#define IGRP_OP(x) ((x) & 0x0f)
+ u_int8_t ig_ed; /* edition number */
+ u_int16_t ig_as; /* autonomous system number */
+ u_int16_t ig_ni; /* number of subnet in local net */
+ u_int16_t ig_ns; /* number of networks in AS */
+ u_int16_t ig_nx; /* number of networks ouside AS */
+ u_int16_t ig_sum; /* checksum of IGRP header & data */