From 74c5118c7b50494087423c9f3f6e17264f0e4dbb Mon Sep 17 00:00:00 2001 From: Xin LI Date: Fri, 31 May 2013 22:53:44 +0000 Subject: [PATCH] Apply vendor commit 654f1b3fc5, this is slight different from our version as discussed with upstream. --- print-rip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/print-rip.c b/print-rip.c index 327f057a4a62..e941947dd37c 100644 --- a/print-rip.c +++ b/print-rip.c @@ -141,7 +141,7 @@ rip_entry_print_v2(register const struct rip_netinfo *ni, const unsigned remaini putchar (isprint(*p) ? *p : '.'); } else if (auth_type == 3) { printf("\n\t Auth header:"); - printf(" Packet Len %u,", EXTRACT_16BITS(&ni->rip_dest)); + printf(" Packet Len %u,", EXTRACT_16BITS((u_int8_t *)ni + 4)); printf(" Key-ID %u,", *((u_int8_t *)ni + 6)); printf(" Auth Data Len %u,", *((u_int8_t *)ni + 7)); printf(" SeqNo %u,", EXTRACT_32BITS(&ni->rip_dest_mask));