diff options
Diffstat (limited to 'lib/sockopt.h')
-rw-r--r-- | lib/sockopt.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/sockopt.h b/lib/sockopt.h index 3f4a7050..f6a43158 100644 --- a/lib/sockopt.h +++ b/lib/sockopt.h @@ -92,4 +92,11 @@ int setsockopt_pktinfo (int, int, int); /* Ask for, and get, ifindex, by whatever method is supported. */ int setsockopt_ifindex (int, int, int); int getsockopt_ifindex (int, struct msghdr *); + +/* swab the fields in iph between the host order and system order expected + * for IP_HDRINCL. + */ +void sockopt_iphdrincl_swab_htosys (struct ip *iph); +void sockopt_iphdrincl_swab_systoh (struct ip *iph); + #endif /*_ZEBRA_SOCKOPT_H */ |