Skip to content

Commit 599645f

Browse files
pvachonwycats
authored andcommitted
Add IPPROTO_IP for level, based on existing SOL_IP
The SOL_IP name isn't really consistent with what the Kernel define is.
1 parent 81dba17 commit 599645f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/sys/socket.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,10 @@ mod consts {
5858
pub type SockLevel = c_int;
5959

6060
pub const SOL_IP: SockLevel = 0;
61+
pub const IPPROTO_IP: SockLevel = SOL_IP;
6162
pub const SOL_SOCKET: SockLevel = 1;
6263
pub const SOL_TCP: SockLevel = 6;
63-
pub static IPPROTO_TCP: SockLevel = SOL_TCP;
64+
pub const IPPROTO_TCP: SockLevel = SOL_TCP;
6465
pub const SOL_UDP: SockLevel = 17;
6566
pub const SOL_IPV6: SockLevel = 41;
6667

0 commit comments

Comments
 (0)