summaryrefslogtreecommitdiffstats
path: root/ospfd/ospf_dump.c
diff options
context:
space:
mode:
authorpaul <paul>2004-10-05 16:38:29 +0200
committerpaul <paul>2004-10-05 16:38:29 +0200
commit18b12c387e2bcd8a0e81a8d2635c1ef52c8a9a7d (patch)
tree1fe5f83b587e2848ddb981c625faa5c27ed57662 /ospfd/ospf_dump.c
parent2004-10-05 Paul Jakma <paul@dishone.st> (diff)
downloadfrr-18b12c387e2bcd8a0e81a8d2635c1ef52c8a9a7d.tar.xz
frr-18b12c387e2bcd8a0e81a8d2635c1ef52c8a9a7d.zip
2004-10-05 Paul Jakma <paul@dishone.st>
* ospf_packet.c: replace ospf_swap_iph_to... with sockopt_iphdrincl_swab_...
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 248cfbbc6..25cb525d9 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);