diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2022-04-14 03:05:04 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2022-04-14 03:05:04 +0000 |
commit | 44d878beb5772f3bce2046b2d6b3d243607c6c01 (patch) | |
tree | 42c63d3c7f2dabaa187e9fcaf0afa7f51e18d349 | |
parent | aa83e2ca070b59bb587313c3c22420d8f88bc89e (diff) | |
parent | 38318dae2c8290f71bfe26e04e9c9f47a5923a33 (diff) | |
download | libc-android13-d2-release.tar.gz |
Snap for 8451773 from 38318dae2c8290f71bfe26e04e9c9f47a5923a33 to tm-d2-releaseandroid-13.0.0_r55android13-d2-release
Change-Id: Ib7f1d786f3172d9d172020f892fc6e5a1b966342
-rw-r--r-- | patches/if_tun.diff | 25 | ||||
-rw-r--r-- | src/unix/linux_like/android/mod.rs | 11 |
2 files changed, 36 insertions, 0 deletions
diff --git a/patches/if_tun.diff b/patches/if_tun.diff new file mode 100644 index 00000000..1e790763 --- /dev/null +++ b/patches/if_tun.diff @@ -0,0 +1,25 @@ +diff --git a/src/unix/linux_like/android/mod.rs b/src/unix/linux_like/android/mod.rs +index 236f57a4..fe2d2096 100644 +--- a/src/unix/linux_like/android/mod.rs ++++ b/src/unix/linux_like/android/mod.rs +@@ -2168,9 +2168,20 @@ pub const NFT_TRACETYPE_RULE: ::c_int = 3; + pub const NFT_NG_INCREMENTAL: ::c_int = 0; + pub const NFT_NG_RANDOM: ::c_int = 1; + ++// bionic/libc/kernel/uapi/linux/if_tun.h + pub const IFF_TUN: ::c_int = 0x0001; + pub const IFF_TAP: ::c_int = 0x0002; ++pub const IFF_NAPI: ::c_int = 0x0010; ++pub const IFF_NAPI_FRAGS: ::c_int = 0x0020; + pub const IFF_NO_PI: ::c_int = 0x1000; ++pub const IFF_ONE_QUEUE: ::c_int = 0x2000; ++pub const IFF_VNET_HDR: ::c_int = 0x4000; ++pub const IFF_TUN_EXCL: ::c_int = 0x8000; ++pub const IFF_MULTI_QUEUE: ::c_int = 0x0100; ++pub const IFF_ATTACH_QUEUE: ::c_int = 0x0200; ++pub const IFF_DETACH_QUEUE: ::c_int = 0x0400; ++pub const IFF_PERSIST: ::c_int = 0x0800; ++pub const IFF_NOFILTER: ::c_int = 0x1000; + + // start android/platform/bionic/libc/kernel/uapi/linux/if_ether.h + // from https://android.googlesource.com/ diff --git a/src/unix/linux_like/android/mod.rs b/src/unix/linux_like/android/mod.rs index 236f57a4..fe2d2096 100644 --- a/src/unix/linux_like/android/mod.rs +++ b/src/unix/linux_like/android/mod.rs @@ -2168,9 +2168,20 @@ pub const NFT_TRACETYPE_RULE: ::c_int = 3; pub const NFT_NG_INCREMENTAL: ::c_int = 0; pub const NFT_NG_RANDOM: ::c_int = 1; +// bionic/libc/kernel/uapi/linux/if_tun.h pub const IFF_TUN: ::c_int = 0x0001; pub const IFF_TAP: ::c_int = 0x0002; +pub const IFF_NAPI: ::c_int = 0x0010; +pub const IFF_NAPI_FRAGS: ::c_int = 0x0020; pub const IFF_NO_PI: ::c_int = 0x1000; +pub const IFF_ONE_QUEUE: ::c_int = 0x2000; +pub const IFF_VNET_HDR: ::c_int = 0x4000; +pub const IFF_TUN_EXCL: ::c_int = 0x8000; +pub const IFF_MULTI_QUEUE: ::c_int = 0x0100; +pub const IFF_ATTACH_QUEUE: ::c_int = 0x0200; +pub const IFF_DETACH_QUEUE: ::c_int = 0x0400; +pub const IFF_PERSIST: ::c_int = 0x0800; +pub const IFF_NOFILTER: ::c_int = 0x1000; // start android/platform/bionic/libc/kernel/uapi/linux/if_ether.h // from https://android.googlesource.com/ |