authorgravatar for jethro@jethron.id.auJethro Nederhof <jethro@jethron.id.au> 2020-04-07 21:34:15+10:00
committergravatar for jethro@jethron.id.auJethro Nederhof <jethro@jethron.id.au> 2020-05-24 10:08:43+10:00
logb504169fefa5935af6d93c49b40cf71e6a257c22
treeb886e4e2a4f5b480985e2e75866b46ee816cac81
parent63aa9ffedc6ebfa4b461c6e72f57cb52cd0d6a30

FreeBSD: missing networking constants


1 files changed, 41 insertions(+), 0 deletions(-)

lib/std/os/bits/freebsd.zig+41
...@@ -396,6 +396,47 @@ pub const SOCK_SEQPACKET = 5;...@@ -396,6 +396,47 @@ pub const SOCK_SEQPACKET = 5;
396pub const SOCK_CLOEXEC = 0x10000000;396pub const SOCK_CLOEXEC = 0x10000000;
397pub const SOCK_NONBLOCK = 0x20000000;397pub const SOCK_NONBLOCK = 0x20000000;
398398
399pub const SO_DEBUG = 0x00000001;
400pub const SO_ACCEPTCONN = 0x00000002;
401pub const SO_REUSEADDR = 0x00000004;
402pub const SO_KEEPALIVE = 0x00000008;
403pub const SO_DONTROUTE = 0x00000010;
404pub const SO_BROADCAST = 0x00000020;
405pub const SO_USELOOPBACK = 0x00000040;
406pub const SO_LINGER = 0x00000080;
407pub const SO_OOBINLINE = 0x00000100;
408pub const SO_REUSEPORT = 0x00000200;
409pub const SO_TIMESTAMP = 0x00000400;
410pub const SO_NOSIGPIPE = 0x00000800;
411pub const SO_ACCEPTFILTER = 0x00001000;
412pub const SO_BINTIME = 0x00002000;
413pub const SO_NO_OFFLOAD = 0x00004000;
414pub const SO_NO_DDP = 0x00008000;
415pub const SO_REUSEPORT_LB = 0x00010000;
416
417pub const SO_SNDBUF = 0x1001;
418pub const SO_RCVBUF = 0x1002;
419pub const SO_SNDLOWAT = 0x1003;
420pub const SO_RCVLOWAT = 0x1004;
421pub const SO_SNDTIMEO = 0x1005;
422pub const SO_RCVTIMEO = 0x1006;
423pub const SO_ERROR = 0x1007;
424pub const SO_TYPE = 0x1008;
425pub const SO_LABEL = 0x1009;
426pub const SO_PEERLABEL = 0x1010;
427pub const SO_LISTENQLIMIT = 0x1011;
428pub const SO_LISTENQLEN = 0x1012;
429pub const SO_LISTENINCQLEN = 0x1013;
430pub const SO_SETFIB = 0x1014;
431pub const SO_USER_COOKIE = 0x1015;
432pub const SO_PROTOCOL = 0x1016;
433pub const SO_PROTOTYPE = SO_PROTOCOL;
434pub const SO_TS_CLOCK = 0x1017;
435pub const SO_MAX_PACING_RATE = 0x1018;
436pub const SO_DOMAIN = 0x1019;
437
438pub const SOL_SOCKET = 0xffff;
439
399pub const PF_UNSPEC = AF_UNSPEC;440pub const PF_UNSPEC = AF_UNSPEC;
400pub const PF_LOCAL = AF_LOCAL;441pub const PF_LOCAL = AF_LOCAL;
401pub const PF_UNIX = PF_LOCAL;442pub const PF_UNIX = PF_LOCAL;