#include "ethertype.h"
struct symantec_header {
- uint8_t stuff1[6];
- uint16_t ether_type;
- uint8_t stuff2[36];
+ nd_byte stuff1[6];
+ nd_uint16_t ether_type;
+ nd_byte stuff2[36];
};
static inline void
sp = (const struct symantec_header *)bp;
- etype = EXTRACT_BE_U_2(&sp->ether_type);
+ etype = EXTRACT_BE_U_2(sp->ether_type);
if (!ndo->ndo_qflag) {
if (etype <= MAX_ETHERNET_LENGTH_VAL)
ND_PRINT((ndo, "invalid ethertype %u", etype));
sp = (const struct symantec_header *)p;
p += sizeof (struct symantec_header);
- ether_type = EXTRACT_BE_U_2(&sp->ether_type);
+ ether_type = EXTRACT_BE_U_2(sp->ether_type);
if (ether_type <= MAX_ETHERNET_LENGTH_VAL) {
/* ether_type not known, print raw packet */