@@ -1866,6 +1866,8 @@ pub const IFF_TUN: ::c_int = 0x0001;
18661866pub const IFF_TAP : :: c_int = 0x0002 ;
18671867pub const IFF_NAPI : :: c_int = 0x0010 ;
18681868pub const IFF_NAPI_FRAGS : :: c_int = 0x0020 ;
1869+ // Used in TUNSETIFF to bring up tun/tap without carrier
1870+ pub const IFF_NO_CARRIER : :: c_int = 0x0040 ;
18691871pub const IFF_NO_PI : :: c_int = 0x1000 ;
18701872// Read queue size
18711873pub const TUN_READQ_SIZE : :: c_short = 500 ;
@@ -1886,11 +1888,13 @@ pub const IFF_NOFILTER: ::c_int = 0x1000;
18861888// Socket options
18871889pub const TUN_TX_TIMESTAMP : :: c_int = 1 ;
18881890// Features for GSO (TUNSETOFFLOAD)
1889- pub const TUN_F_CSUM : :: c_ushort = 0x01 ; /* You can hand me unchecksummed packets. */
1890- pub const TUN_F_TSO4 : :: c_ushort = 0x02 ; /* I can handle TSO for IPv4 packets */
1891- pub const TUN_F_TSO6 : :: c_ushort = 0x04 ; /* I can handle TSO for IPv6 packets */
1892- pub const TUN_F_TSO_ECN : :: c_ushort = 0x08 ; /* I can handle TSO with ECN bits. */
1893- pub const TUN_F_UFO : :: c_ushort = 0x10 ; /* I can handle UFO packets */
1891+ pub const TUN_F_CSUM : :: c_uint = 0x01 ;
1892+ pub const TUN_F_TSO4 : :: c_uint = 0x02 ;
1893+ pub const TUN_F_TSO6 : :: c_uint = 0x04 ;
1894+ pub const TUN_F_TSO_ECN : :: c_uint = 0x08 ;
1895+ pub const TUN_F_UFO : :: c_uint = 0x10 ;
1896+ pub const TUN_F_USO4 : :: c_uint = 0x20 ;
1897+ pub const TUN_F_USO6 : :: c_uint = 0x40 ;
18941898// Protocol info prepended to the packets (when IFF_NO_PI is not set)
18951899pub const TUN_PKT_STRIP : :: c_int = 0x0001 ;
18961900// Accept all multicast packets
0 commit comments