Report an error if the source or destination addressing mode has the
reserved value. Also, squelch a warning.
p+= hdrlen;
caplen -= hdrlen;
} else {
p+= hdrlen;
caplen -= hdrlen;
} else {
switch ((fc >> 10) & 0x3) {
case 0x00:
ND_PRINT((ndo,"none "));
break;
switch ((fc >> 10) & 0x3) {
case 0x00:
ND_PRINT((ndo,"none "));
break;
+ case 0x01:
+ ND_PRINT((ndo,"reserved destination addressing mode"));
+ return 0;
case 0x02:
panid = EXTRACT_LE_16BITS(p);
p += 2;
case 0x02:
panid = EXTRACT_LE_16BITS(p);
p += 2;
case 0x00:
ND_PRINT((ndo,"none "));
break;
case 0x00:
ND_PRINT((ndo,"none "));
break;
+ case 0x01:
+ ND_PRINT((ndo,"reserved source addressing mode"));
+ return 0;
case 0x02:
if (!(fc & (1 << 6))) {
panid = EXTRACT_LE_16BITS(p);
case 0x02:
if (!(fc & (1 << 6))) {
panid = EXTRACT_LE_16BITS(p);