@@ -1866,6 +1866,8 @@ pub const IFF_TUN: ::c_int = 0x0001;
1866
1866
pub const IFF_TAP : :: c_int = 0x0002 ;
1867
1867
pub const IFF_NAPI : :: c_int = 0x0010 ;
1868
1868
pub 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 ;
1869
1871
pub const IFF_NO_PI : :: c_int = 0x1000 ;
1870
1872
// Read queue size
1871
1873
pub const TUN_READQ_SIZE : :: c_short = 500 ;
@@ -1886,11 +1888,13 @@ pub const IFF_NOFILTER: ::c_int = 0x1000;
1886
1888
// Socket options
1887
1889
pub const TUN_TX_TIMESTAMP : :: c_int = 1 ;
1888
1890
// 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 ;
1894
1898
// Protocol info prepended to the packets (when IFF_NO_PI is not set)
1895
1899
pub const TUN_PKT_STRIP : :: c_int = 0x0001 ;
1896
1900
// Accept all multicast packets
0 commit comments