[01/10] inet: raw -- Add constants needed to fetch properties of a raw socket

Submitted by Cyrill Gorcunov on March 22, 2018, 9:13 a.m.

Details

Message ID 20180322091349.8867-2-gorcunov@gmail.com
State New
Series "inet: raw -- Add initial support for raw sockets"
Headers show

Commit Message

Cyrill Gorcunov March 22, 2018, 9:13 a.m.
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
---
 criu/include/sk-inet.h | 12 ++++++++++++
 1 file changed, 12 insertions(+)

Patch hide | download patch | download mbox

diff --git a/criu/include/sk-inet.h b/criu/include/sk-inet.h
index 180f48e359e3..79966517bfac 100644
--- a/criu/include/sk-inet.h
+++ b/criu/include/sk-inet.h
@@ -16,6 +16,18 @@ 
 #define TCP_REPAIR_OPTIONS	22
 #endif
 
+#ifndef IP_HDRINCL
+# define IP_HDRINCL		3
+#endif
+
+#ifndef IP_NODEFRAG
+# define IP_NODEFRAG		22
+#endif
+
+#ifndef IPV6_HDRINCL
+# define IPV6_HDRINCL		36
+#endif
+
 struct inet_sk_desc {
 	struct socket_desc	sd;
 	unsigned int		type;