summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorTomoyuki Sahara <[email protected]>2015-02-13 11:35:36 +0900
committerTomoyuki Sahara <[email protected]>2015-02-13 11:35:36 +0900
commit1629e860634ea4fb56644d5dace0ee55e59c3ce4 (patch)
treefd403b19a35a124d6c280ec6d2bdb3c9d9574d22 /src
parente4006cb53ab807e0c72466752bdbb550ebca2c99 (diff)
downloadmruby-1629e860634ea4fb56644d5dace0ee55e59c3ce4.tar.gz
mruby-1629e860634ea4fb56644d5dace0ee55e59c3ce4.zip
add IPv6 constants defined in RFC3493.
Diffstat (limited to 'src')
-rw-r--r--src/const.cstub21
-rw-r--r--src/const.def8
2 files changed, 29 insertions, 0 deletions
diff --git a/src/const.cstub b/src/const.cstub
index b3a2ee468..553e47f8c 100644
--- a/src/const.cstub
+++ b/src/const.cstub
@@ -175,6 +175,27 @@
#ifdef IP_XFRM_POLICY
define_const(IP_XFRM_POLICY);
#endif
+#ifdef IPV6_JOIN_GROUP
+ define_const(IPV6_JOIN_GROUP);
+#endif
+#ifdef IPV6_LEAVE_GROUP
+ define_const(IPV6_LEAVE_GROUP);
+#endif
+#ifdef IPV6_MULTICAST_HOPS
+ define_const(IPV6_MULTICAST_HOPS);
+#endif
+#ifdef IPV6_MULTICAST_IF
+ define_const(IPV6_MULTICAST_IF);
+#endif
+#ifdef IPV6_MULTICAST_LOOP
+ define_const(IPV6_MULTICAST_LOOP);
+#endif
+#ifdef IPV6_UNICAST_HOPS
+ define_const(IPV6_UNICAST_HOPS);
+#endif
+#ifdef IPV6_V6ONLY
+ define_const(IPV6_V6ONLY);
+#endif
#ifdef IPPROTO_AH
define_const(IPPROTO_AH);
#endif
diff --git a/src/const.def b/src/const.def
index 1508a143e..e0ee5e2a4 100644
--- a/src/const.def
+++ b/src/const.def
@@ -60,6 +60,14 @@ IP_TTL
IP_UNBLOCK_SOURCE
IP_XFRM_POLICY
+IPV6_JOIN_GROUP
+IPV6_LEAVE_GROUP
+IPV6_MULTICAST_HOPS
+IPV6_MULTICAST_IF
+IPV6_MULTICAST_LOOP
+IPV6_UNICAST_HOPS
+IPV6_V6ONLY
+
IPPROTO_AH
IPPROTO_DSTOPTS
IPPROTO_ESP