/* \summary: Distance Vector Multicast Routing Protocol printer */
#ifdef HAVE_CONFIG_H
-#include "config.h"
+#include <config.h>
#endif
#include "netdissect-stdinc.h"
u_char type;
uint8_t major_version, minor_version;
+ ndo->ndo_protocol = "dvmrp";
ep = ndo->ndo_snapend;
if (bp >= ep)
return;
return;
trunc:
- ND_PRINT("[|dvmrp]");
+ nd_print_trunc(ndo);
return;
}
ND_PRINT(" [|}");
return (0);
}
- genid = (EXTRACT_U_1(bp) << 24) | (EXTRACT_U_1(bp + 1) << 16) |
- (EXTRACT_U_1(bp + 2) << 8) | EXTRACT_U_1(bp + 3);
+ genid = EXTRACT_BE_U_4(bp);
bp += 4;
len -= 4;
ND_PRINT(ndo->ndo_vflag > 1 ? "\n\t" : " ");