summaryrefslogtreecommitdiffstats
path: root/lib/sockopt.h
diff options
context:
space:
mode:
authorpaul <paul>2004-10-05 14:33:43 +0000
committerpaul <paul>2004-10-05 14:33:43 +0000
commit00324aa4ea7a610016c561f90ca4d051e8f76659 (patch)
treefc1da26f616616a17ec0cc5fe4da51fa72b3fb5d /lib/sockopt.h
parent7b53574d4487b11541c431c04307d99821950ebe (diff)
downloadquagga-00324aa4ea7a610016c561f90ca4d051e8f76659.tar.bz2
quagga-00324aa4ea7a610016c561f90ca4d051e8f76659.tar.xz
2004-10-05 Paul Jakma <paul@dishone.st>
* sockopt.{c,h}: add sockopt_iphdrincl_swab_{htosys,systoh}, functions to change byte order between system IP_HDRINCL order and host order.
Diffstat (limited to 'lib/sockopt.h')
-rw-r--r--lib/sockopt.h7
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 */