From: Evan Nemerson Date: Mon, 3 Nov 2014 06:06:33 +0000 (-0800) Subject: posix: add IPPROTO_* bindings X-Git-Tag: 0.27.1~57 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ee7070b7f425eedbd8b192a95e1cd09718183883;p=thirdparty%2Fvala.git posix: add IPPROTO_* bindings --- diff --git a/vapi/posix.vapi b/vapi/posix.vapi index c7a8cef26..49311cf91 100644 --- a/vapi/posix.vapi +++ b/vapi/posix.vapi @@ -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")]