summaryrefslogtreecommitdiff
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
commit96e27c9928b5078526f2a7564700dbdafe2c8d42 (patch)
tree5697279fc355244f385da4fbf6e313feb215f06a /lib/sockopt.h
parent7347a2ad7c05a86fcd9b7593a9d58b93ad50ef6a (diff)
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 */