From 18b12c387e2bcd8a0e81a8d2635c1ef52c8a9a7d Mon Sep 17 00:00:00 2001 From: paul Date: Tue, 5 Oct 2004 14:38:29 +0000 Subject: 2004-10-05 Paul Jakma * ospf_packet.c: replace ospf_swap_iph_to... with sockopt_iphdrincl_swab_... --- ospfd/ospf_dump.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'ospfd/ospf_dump.c') 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); -- cgit v1.2.1