* I-D draft-detienne-dmvpn-01 (expired)
*/
-#ifdef HAVE_CONFIG_H
#include <config.h>
-#endif
#include "netdissect-stdinc.h"
#include "addrtoname.h"
#include "af.h"
#include "ethertype.h"
-#include "interface.h"
#include "extract.h"
#define NHRP_VER_RFC2332 1
nhrp_mac_addr_string(netdissect_options *ndo, const u_char *addr, u_int addrlen)
{
if (addrlen == 6)
- return (GET_ETHERADDR_STRING(addr));
+ return (GET_MAC48_STRING(addr));
else
return (GET_LINKADDR_STRING(addr, LINKADDR_OTHER, addrlen));
}
invalid:
nd_print_invalid(ndo);
+
+ /*
+ * We get here because this CIE goes past the remaining length,
+ * of the mandatory part. We've reported that error; we now
+ * assign the insufficiently-large remaining piece of the
+ * mandatory part to this CIE, so that this CIE finishes up
+ * the mandatory part, and the loop processing the CIEs
+ * terminates. There cannot be any CIEs after this one.
+ */
+ cie_len += mand_part_len;
return (cie_len);
}