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.
diff --git a/lib/sockopt.h b/lib/sockopt.h
index 3f4a705..f6a4315 100644
--- a/lib/sockopt.h
+++ b/lib/sockopt.h
@@ -92,4 +92,11 @@
/* 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 */