add remaining pktinfo consts/structs for the other BSDs
This commit is contained in:
parent
297fc414c3
commit
6f0e67abb9
|
@ -175,6 +175,11 @@ s! {
|
|||
pub type_: ::c_ushort,
|
||||
pub prio: ::c_ushort,
|
||||
}
|
||||
|
||||
pub struct in6_pktinfo {
|
||||
pub ipi6_addr: ::in6_addr,
|
||||
pub ipi6_ifindex: ::c_uint,
|
||||
}
|
||||
}
|
||||
|
||||
pub const AIO_LISTIO_MAX: ::c_int = 16;
|
||||
|
@ -635,10 +640,14 @@ pub const SOCK_NONBLOCK: ::c_int = 0x20000000;
|
|||
pub const SOCK_MAXADDRLEN: ::c_int = 255;
|
||||
pub const IP_TTL: ::c_int = 4;
|
||||
pub const IP_HDRINCL: ::c_int = 2;
|
||||
pub const IP_RECVDSTADDR: ::c_int = 7;
|
||||
pub const IP_SENDSRCADDR: ::c_int = IP_RECVDSTADDR;
|
||||
pub const IP_ADD_MEMBERSHIP: ::c_int = 12;
|
||||
pub const IP_DROP_MEMBERSHIP: ::c_int = 13;
|
||||
pub const IPV6_JOIN_GROUP: ::c_int = 12;
|
||||
pub const IPV6_LEAVE_GROUP: ::c_int = 13;
|
||||
pub const IPV6_RECVPKTINFO: ::c_int = 36;
|
||||
pub const IPV6_PKTINFO: ::c_int = 46;
|
||||
|
||||
pub const TCP_NODELAY: ::c_int = 1;
|
||||
pub const TCP_KEEPIDLE: ::c_int = 256;
|
||||
|
|
|
@ -35,6 +35,11 @@ s! {
|
|||
pub sin_zero: [::int8_t; 8],
|
||||
}
|
||||
|
||||
pub struct in6_pktinfo {
|
||||
pub ipi6_addr: ::in6_addr,
|
||||
pub ipi6_ifindex: ::c_uint,
|
||||
}
|
||||
|
||||
pub struct termios {
|
||||
pub c_iflag: ::tcflag_t,
|
||||
pub c_oflag: ::tcflag_t,
|
||||
|
@ -412,6 +417,8 @@ pub const IP_TTL: ::c_int = 4;
|
|||
pub const IP_HDRINCL: ::c_int = 2;
|
||||
pub const IP_ADD_MEMBERSHIP: ::c_int = 12;
|
||||
pub const IP_DROP_MEMBERSHIP: ::c_int = 13;
|
||||
pub const IPV6_RECVPKTINFO: ::c_int = 36;
|
||||
pub const IPV6_PKTINFO: ::c_int = 46;
|
||||
|
||||
pub const TCP_NODELAY: ::c_int = 0x01;
|
||||
pub const SOL_SOCKET: ::c_int = 0xffff;
|
||||
|
|
|
@ -313,6 +313,11 @@ s! {
|
|||
pub sdl_slen: ::uint8_t,
|
||||
pub sdl_data: [::c_char; 12],
|
||||
}
|
||||
|
||||
pub struct in_pktinfo {
|
||||
pub ipi_addr: ::in_addr,
|
||||
pub ipi_ifindex: ::c_uint,
|
||||
}
|
||||
}
|
||||
|
||||
pub const AT_FDCWD: ::c_int = -100;
|
||||
|
@ -371,6 +376,8 @@ pub const F_GETNOSIGPIPE: ::c_int = 13;
|
|||
pub const F_SETNOSIGPIPE: ::c_int = 14;
|
||||
pub const F_MAXFD: ::c_int = 11;
|
||||
|
||||
pub const IP_PKTINFO: ::c_int = 25;
|
||||
pub const IP_RECVPKTINFO: ::c_int = 26;
|
||||
pub const IPV6_JOIN_GROUP: ::c_int = 12;
|
||||
pub const IPV6_LEAVE_GROUP: ::c_int = 13;
|
||||
|
||||
|
|
|
@ -308,6 +308,9 @@ pub const IPPROTO_MAX: ::c_int = 256;
|
|||
/// Divert sockets
|
||||
pub const IPPROTO_DIVERT: ::c_int = 258;
|
||||
|
||||
pub const IP_RECVDSTADDR: ::c_int = 7;
|
||||
pub const IP_SENDSRCADDR: ::c_int = IP_RECVDSTADDR;
|
||||
|
||||
pub const AF_ECMA: ::c_int = 8;
|
||||
pub const AF_ROUTE: ::c_int = 17;
|
||||
pub const AF_ENCAP: ::c_int = 28;
|
||||
|
|
Loading…
Reference in a new issue