Skip to content

Commit d277a88

Browse files
committed
Define SO_PROTOCOL and SO_DOMAIN on OpenBSD.
This follows the definitions [here]. [here]: https://github.com/openbsd/src/blob/c5ac8393b86d7549b2b878fd46deeb0e8ee06ae0/sys/sys/socket.h#L116
1 parent 28ab9b9 commit d277a88

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

libc-test/semver/openbsd.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -778,8 +778,10 @@ SOCK_RAW
778778
SOCK_RDM
779779
SOMAXCONN
780780
SO_BINDANY
781+
SO_DOMAIN
781782
SO_NETPROC
782783
SO_PEERCRED
784+
SO_PROTOCOL
783785
SO_RTABLE
784786
SO_SPLICE
785787
SO_TIMESTAMP

src/unix/bsd/netbsdlike/openbsd/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -999,6 +999,8 @@ pub const SO_NETPROC: ::c_int = 0x1020;
999999
pub const SO_RTABLE: ::c_int = 0x1021;
10001000
pub const SO_PEERCRED: ::c_int = 0x1022;
10011001
pub const SO_SPLICE: ::c_int = 0x1023;
1002+
pub const SO_DOMAIN: ::c_int = 0x1024;
1003+
pub const SO_PROTOCOL: ::c_int = 0x1025;
10021004

10031005
// sys/netinet/in.h
10041006
// Protocols (RFC 1700)

0 commit comments

Comments
 (0)