summaryrefslogtreecommitdiff
path: root/ospfd/ospf_dump.c
diff options
context:
space:
mode:
Diffstat (limited to 'ospfd/ospf_dump.c')
-rw-r--r--ospfd/ospf_dump.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/ospfd/ospf_dump.c b/ospfd/ospf_dump.c
index 248cfbbc..25cb525d 100644
--- a/ospfd/ospf_dump.c
+++ b/ospfd/ospf_dump.c
@@ -607,14 +607,8 @@ ospf_ip_header_dump (struct stream *s)
iph = (struct ip *) STREAM_PNT (s);
-#ifdef HAVE_IP_HDRINCL_BSD_ORDER
- length = iph->ip_len;
- offset = iph->ip_off;
-#else /* !HAVE_IP_HDRINCL_BSD_ORDER */
- length = ntohs (iph->ip_len);
- offset = ntohs (iph->ip_off);
-#endif /* HAVE_IP_HDRINCL_BSD_ORDER */
-
+ sockopt_iphdrincl_swab_systoh (iph);
+
/* IP Header dump. */
zlog_info ("ip_v %d", iph->ip_v);
zlog_info ("ip_hl %d", iph->ip_hl);