]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
posix: add IPPROTO_* bindings
authorEvan Nemerson <evan@nemerson.com>
Mon, 3 Nov 2014 06:06:33 +0000 (22:06 -0800)
committerEvan Nemerson <evan@nemerson.com>
Mon, 3 Nov 2014 06:06:33 +0000 (22:06 -0800)
vapi/posix.vapi

index c7a8cef269983673d929a6afedcad33439e7cc16..49311cf91ba501d47b1efbb20a1e6af86df75e23 100644 (file)
@@ -360,6 +360,34 @@ namespace Posix {
        [CCode (cheader_filename = "netinet/in.h")]
        public const int INET6_ADDRSTRLEN;
 
+       [CCode (cheader_filename = "netinet/in.h", cname = "int", cprefix = "IPPROTO_", has_type_id = false)]
+       public enum IPProto {
+               IP,
+               ICMP,
+               IGMP,
+               IPIP,
+               TCP,
+               EGP,
+               PUP,
+               UDP,
+               IDP,
+               TP,
+               DCCP,
+               IPV6,
+               RSVP,
+               GRE,
+               ESP,
+               AH,
+               MTP,
+               BEETPH,
+               ENCAP,
+               PIM,
+               COMP,
+               SCTP,
+               UDPLITE,
+               RAW,
+       }
+
        [CCode (cheader_filename = "arpa/inet.h")]
        public uint32 inet_addr (string host);
        [CCode (cheader_filename = "arpa/inet.h")]