summaryrefslogtreecommitdiffstats
path: root/vendor/linux-raw-sys
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/linux-raw-sys')
-rw-r--r--vendor/linux-raw-sys/.cargo-checksum.json2
-rw-r--r--vendor/linux-raw-sys/Cargo.toml7
-rw-r--r--vendor/linux-raw-sys/src/aarch64/general.rs13
-rw-r--r--vendor/linux-raw-sys/src/aarch64/net.rs591
-rw-r--r--vendor/linux-raw-sys/src/arm/general.rs13
-rw-r--r--vendor/linux-raw-sys/src/arm/net.rs591
-rw-r--r--vendor/linux-raw-sys/src/csky/general.rs13
-rw-r--r--vendor/linux-raw-sys/src/csky/net.rs591
-rw-r--r--vendor/linux-raw-sys/src/elf.rs31
-rw-r--r--vendor/linux-raw-sys/src/loongarch64/general.rs13
-rw-r--r--vendor/linux-raw-sys/src/loongarch64/net.rs591
-rw-r--r--vendor/linux-raw-sys/src/mips/general.rs13
-rw-r--r--vendor/linux-raw-sys/src/mips/net.rs591
-rw-r--r--vendor/linux-raw-sys/src/mips32r6/general.rs13
-rw-r--r--vendor/linux-raw-sys/src/mips32r6/net.rs591
-rw-r--r--vendor/linux-raw-sys/src/mips64/general.rs13
-rw-r--r--vendor/linux-raw-sys/src/mips64/net.rs591
-rw-r--r--vendor/linux-raw-sys/src/mips64r6/general.rs13
-rw-r--r--vendor/linux-raw-sys/src/mips64r6/net.rs591
-rw-r--r--vendor/linux-raw-sys/src/powerpc/general.rs13
-rw-r--r--vendor/linux-raw-sys/src/powerpc/net.rs591
-rw-r--r--vendor/linux-raw-sys/src/powerpc64/general.rs13
-rw-r--r--vendor/linux-raw-sys/src/powerpc64/net.rs591
-rw-r--r--vendor/linux-raw-sys/src/riscv32/general.rs13
-rw-r--r--vendor/linux-raw-sys/src/riscv32/net.rs591
-rw-r--r--vendor/linux-raw-sys/src/riscv64/general.rs13
-rw-r--r--vendor/linux-raw-sys/src/riscv64/net.rs591
-rw-r--r--vendor/linux-raw-sys/src/s390x/general.rs13
-rw-r--r--vendor/linux-raw-sys/src/s390x/net.rs591
-rw-r--r--vendor/linux-raw-sys/src/sparc/general.rs13
-rw-r--r--vendor/linux-raw-sys/src/sparc/net.rs591
-rw-r--r--vendor/linux-raw-sys/src/sparc64/general.rs13
-rw-r--r--vendor/linux-raw-sys/src/sparc64/net.rs591
-rw-r--r--vendor/linux-raw-sys/src/x32/general.rs13
-rw-r--r--vendor/linux-raw-sys/src/x32/net.rs591
-rw-r--r--vendor/linux-raw-sys/src/x86/general.rs13
-rw-r--r--vendor/linux-raw-sys/src/x86/net.rs591
-rw-r--r--vendor/linux-raw-sys/src/x86_64/general.rs13
-rw-r--r--vendor/linux-raw-sys/src/x86_64/net.rs591
39 files changed, 10910 insertions, 2 deletions
diff --git a/vendor/linux-raw-sys/.cargo-checksum.json b/vendor/linux-raw-sys/.cargo-checksum.json
index e5b1b7a43..5aa789af5 100644
--- a/vendor/linux-raw-sys/.cargo-checksum.json
+++ b/vendor/linux-raw-sys/.cargo-checksum.json
@@ -1 +1 @@
-{"files":{"CODE_OF_CONDUCT.md":"ccd9e538ce44713a2486cc8e4c01b8c8b846d1ccff15de728d8d6fa9a7f846cd","COPYRIGHT":"3290ae0fbc9ddb77d2239121d710f0bb9d31b3b4744e6d97fe01e652b4c1870b","Cargo.toml":"53b55bc02bcd7f75bd0be76f9440ffb888294cd35e9287f644188a82252c6ce0","LICENSE-APACHE":"a60eea817514531668d7e00765731449fe14d059d3249e0bc93b36de45f759f2","LICENSE-Apache-2.0_WITH_LLVM-exception":"268872b9816f90fd8e85db5a28d33f8150ebb8dd016653fb39ef1f94f2686bc5","LICENSE-MIT":"23f18e03dc49df91622fe2a76176497404e46ced8a715d9d2b67a7446571cca3","ORG_CODE_OF_CONDUCT.md":"a62b69bf86e605ee1bcbb2f0a12ba79e4cebb6983a7b6491949750aecc4f2178","README.md":"3d4ae2ec9429adfd329b4506f7ca6faa84dca30d1c3b416f8f4e6f57bdb3aa96","src/aarch64/errno.rs":"db283e5ea7fb63e0f57acb241e6471a951b4218660c01ca37b80be9a53629b92","src/aarch64/general.rs":"a5be5de0f98244a28265c46588c324ba3f8dee51717e6222a1241b10a9ac593d","src/aarch64/if_ether.rs":"f558bfec1f5e80235db79f507e4afd3120647a5caddf17a87b7ad5540e5c1462","src/aarch64/io_uring.rs":"9ce4c9005b5b99e041b9d58be6866367605e4bee1e30a7096235cb234ed73e1b","src/aarch64/ioctl.rs":"f83af7f7cab6611c9f316b2289998d3276d844ac8f96111bc65f6c3340c3301a","src/aarch64/net.rs":"b88bcacd7cd153d417cb3adb176bbc441dda1e90880e53d89404439adf47ab88","src/aarch64/netlink.rs":"f6642310b8bd37b5775ba1a52cfe638beddd7c880f8dfacab62c3180255fb75f","src/aarch64/prctl.rs":"a80e2f89aa978210d980538e1d9c5b922bb073d118ee51b1f14c1f397c7cd576","src/aarch64/system.rs":"851a95c0d1b76782970a28c373a313954eea0db35f6ebce562e6047095f587c4","src/arm/errno.rs":"db283e5ea7fb63e0f57acb241e6471a951b4218660c01ca37b80be9a53629b92","src/arm/general.rs":"eb33bd0c5835ecf0a33e582e8460f056ef79d9a2fca06c7607568ed0605d1391","src/arm/if_ether.rs":"3873beb1f57bdcc52da345608c5deda5937d7b92b114b414ce6161784173b925","src/arm/io_uring.rs":"5e2e254d5853ed30568e17fab184f8cc458607465d19dcee6c87ca1b565d6d2d","src/arm/ioctl.rs":"54cb9bdc5fe4ee7cff30e087bb0d04f1d811b55be7604bb056387f859120935a","src/arm/net.rs":"3192a24c15f0f4e4d856678fd05e82d7ae3585921f6243e907c539d603873896","src/arm/netlink.rs":"2f98b8c0349c2d3d538164e4d06c28fa1fb9308f7691aa097526ce2fb3ac176f","src/arm/prctl.rs":"5477c74fec958d9f9d2028f58e95657840ead28445956e53fe0894e45922f8a5","src/arm/system.rs":"9aca94a4a553e09e6d2d43741fb8c120c05a193822e850951dc469bbd89cc703","src/csky/errno.rs":"db283e5ea7fb63e0f57acb241e6471a951b4218660c01ca37b80be9a53629b92","src/csky/general.rs":"dce0451c2876b8ab010026d5f100298c2024b8706dcb459d4799ee2fdbd9200a","src/csky/if_ether.rs":"aac7a069000195b9b18c6d25b2d7c338efb1062347a84e31cda7c93de374b3c6","src/csky/io_uring.rs":"bb7541d82f627cb681ea11f4e5c4162b0d0616ca08fcc6d31bcf22ef813f754d","src/csky/ioctl.rs":"77f30e67f9a4748bc31184454a0ff45fd821c3536cd98dc2411def8eeb59a268","src/csky/net.rs":"6df28547fc867f3e66dab6561e494573a416add67c1968ec2371c43d8e28da86","src/csky/netlink.rs":"9fc99e88df0efc15d39b397c9d653c32b4729e31a2434e730435fbdfcb362da4","src/csky/prctl.rs":"8df2f33387d5b4865d9417f796cc4d43b3cf549cfa41d7ce7d41dd367ed8b6c9","src/csky/system.rs":"a2913685b359e60bbfae413b89a6fd37ea38fa448f980ffadef42d227b33ada5","src/elf.rs":"d78049c38c52dfca608fcf9790613df786a03a18a80e7eb8c7acf4cb19e9a8a9","src/lib.rs":"f3399ba35206764ac4e2d755cfc7e0c580464b8fcc76968f6c4b9f64523a1d02","src/loongarch64/errno.rs":"db283e5ea7fb63e0f57acb241e6471a951b4218660c01ca37b80be9a53629b92","src/loongarch64/general.rs":"95fbc2507feb167109ce386f939e72b8c5f5a16c18f8ab0389a74516c3ca288e","src/loongarch64/if_ether.rs":"a7b0918afc9dbf8e79490f83a809e4bd563af20ab2b3432d58b763ff31418daf","src/loongarch64/io_uring.rs":"ef851913c86bc2d629048e781edc76b59c63e659f8bd4bcd7fa7ff982186ed6d","src/loongarch64/ioctl.rs":"6f631e0ac37f2c2398168683a1523d1559b85369ffe4cdcc284ffe7455672c18","src/loongarch64/net.rs":"50ef111f314db8683e0f2f845f930e7e2209b97a17aa3e9fa774832ee9ef0599","src/loongarch64/netlink.rs":"789357343b94276e6f8fc8f3a32f06f3d3efd464c7850b2568dc609a49d1f305","src/loongarch64/prctl.rs":"624e4d3b8f3b4f1d6dcb1540c124ed03ce47f0580aa3425c0baed431dcd267ea","src/loongarch64/system.rs":"4cfcd4c28481b9ff5fc0330d5c713d637d3615c0184830d3a4391882eaed68f5","src/mips/errno.rs":"9ab1ed2bf371a27401745c2a6f9692f7e66dfd481d032cb40a354826d394ea8e","src/mips/general.rs":"ff31df33aa8a2ff9c1fdca63224130d2503bc3a1ff75bd86c16562069df4e9dd","src/mips/if_ether.rs":"1ecdc654cb3eda633bb7192829b1001a0a5ae5a126110b4208bbee5b41f87f5e","src/mips/io_uring.rs":"c69479bb1f862febe78e0989745c202146aaef7e8ceaa0d7bf291af584748992","src/mips/ioctl.rs":"f7464d2cd0548ab4735a1ca8deba47f13ea0946a9bf86adfec1a77feb3a0f475","src/mips/net.rs":"89b8cc80411dadd23843b037ceb06cef47af1e57244d974a805c3914d7ffa4aa","src/mips/netlink.rs":"5045dece259abaa5b5974500a20a9325e4cd6eb87c344dd7448056dff469994f","src/mips/prctl.rs":"cd59615adf6f561ef6c542df59cf25f75877693ca1c4c489f5e460eb7e798d4d","src/mips/system.rs":"acbc69a1fe7299860f8bd142bc2ff5595a410e1528994139062fc680d1a87e71","src/mips32r6/errno.rs":"9ab1ed2bf371a27401745c2a6f9692f7e66dfd481d032cb40a354826d394ea8e","src/mips32r6/general.rs":"ff31df33aa8a2ff9c1fdca63224130d2503bc3a1ff75bd86c16562069df4e9dd","src/mips32r6/if_ether.rs":"1ecdc654cb3eda633bb7192829b1001a0a5ae5a126110b4208bbee5b41f87f5e","src/mips32r6/io_uring.rs":"c69479bb1f862febe78e0989745c202146aaef7e8ceaa0d7bf291af584748992","src/mips32r6/ioctl.rs":"f7464d2cd0548ab4735a1ca8deba47f13ea0946a9bf86adfec1a77feb3a0f475","src/mips32r6/net.rs":"89b8cc80411dadd23843b037ceb06cef47af1e57244d974a805c3914d7ffa4aa","src/mips32r6/netlink.rs":"5045dece259abaa5b5974500a20a9325e4cd6eb87c344dd7448056dff469994f","src/mips32r6/prctl.rs":"cd59615adf6f561ef6c542df59cf25f75877693ca1c4c489f5e460eb7e798d4d","src/mips32r6/system.rs":"acbc69a1fe7299860f8bd142bc2ff5595a410e1528994139062fc680d1a87e71","src/mips64/errno.rs":"9ab1ed2bf371a27401745c2a6f9692f7e66dfd481d032cb40a354826d394ea8e","src/mips64/general.rs":"c7eaf11b39338a76aa1647a2ca90fbb8657e9811558aa831ad979da56e5a6a60","src/mips64/if_ether.rs":"6d24518acba5bc8fa2a775d039ed9594de8349d6028621134626ccaa8ea18bcd","src/mips64/io_uring.rs":"18bd5d96c53aff44f4a37a71f16fa12c11b7c934b395bf841e47d98283146a50","src/mips64/ioctl.rs":"39f3276ec6f36ba78f5635bd418310b21bc228902d4da889fa01094c26f9b57d","src/mips64/net.rs":"f979c44d7d0bd12847664a2864b2c38bfd8f5b90826e9e31d5c6e64ba6365859","src/mips64/netlink.rs":"18f139573337be18fb9bd56de4d0bd8af5c80828cdf68ef68751c18dcb39c761","src/mips64/prctl.rs":"a8d9ae240ce582d7b66e13937b99df73c7247ce9f69bfdd12109903d7c6dfb0e","src/mips64/system.rs":"95805c533a8eb8f53c28f138e6a2d12064681cc9db55d3042ee748c655a5d7cd","src/mips64r6/errno.rs":"9ab1ed2bf371a27401745c2a6f9692f7e66dfd481d032cb40a354826d394ea8e","src/mips64r6/general.rs":"c7eaf11b39338a76aa1647a2ca90fbb8657e9811558aa831ad979da56e5a6a60","src/mips64r6/if_ether.rs":"6d24518acba5bc8fa2a775d039ed9594de8349d6028621134626ccaa8ea18bcd","src/mips64r6/io_uring.rs":"18bd5d96c53aff44f4a37a71f16fa12c11b7c934b395bf841e47d98283146a50","src/mips64r6/ioctl.rs":"39f3276ec6f36ba78f5635bd418310b21bc228902d4da889fa01094c26f9b57d","src/mips64r6/net.rs":"f979c44d7d0bd12847664a2864b2c38bfd8f5b90826e9e31d5c6e64ba6365859","src/mips64r6/netlink.rs":"18f139573337be18fb9bd56de4d0bd8af5c80828cdf68ef68751c18dcb39c761","src/mips64r6/prctl.rs":"a8d9ae240ce582d7b66e13937b99df73c7247ce9f69bfdd12109903d7c6dfb0e","src/mips64r6/system.rs":"95805c533a8eb8f53c28f138e6a2d12064681cc9db55d3042ee748c655a5d7cd","src/powerpc/errno.rs":"db283e5ea7fb63e0f57acb241e6471a951b4218660c01ca37b80be9a53629b92","src/powerpc/general.rs":"f88e1b68f45f544c80b639d0aa8b9dba1ab79f4a0c47f3f65ece335cf36df8c7","src/powerpc/if_ether.rs":"56ab5fbf8c9d0dd0654412fabdca6759cbb421a876e5cebe2fec10e25728b55c","src/powerpc/io_uring.rs":"38ead79180c96e8af69929dacbc36e8cfbccec96875c61f094e531e6860639db","src/powerpc/ioctl.rs":"513a1dda33b2cd6c57212263c1bf0d8d443e54af6efe75e938fd700c1ca2b630","src/powerpc/net.rs":"86d206a03f980402d580fd872c26c2156acf6ea64cde4cc9379201a36bd3330a","src/powerpc/netlink.rs":"4f10870fbd23de17efd4cba6d5a40ba85564effc5d0b71f9d7f928a42cb77b20","src/powerpc/prctl.rs":"f236987bc8ae993ab2b0e88b2eacbae51eee4da170ac075552070a76c717d803","src/powerpc/system.rs":"3e01e5e145adb87263f04c9e053faac0c0758689fd32917d2c7c2eec1d89f9e6","src/powerpc64/errno.rs":"db283e5ea7fb63e0f57acb241e6471a951b4218660c01ca37b80be9a53629b92","src/powerpc64/general.rs":"87d30f8909dc64b9fa914139db7f0aad8544015b197f2113807a7baa31b1eacf","src/powerpc64/if_ether.rs":"15e12d56b1367cb5c9d8fd1b9995acf1429a923bf603698bd732efe1acc30cd6","src/powerpc64/io_uring.rs":"50018e504d78c584beaec3b1a6d477d30d566d25cb1a40b0a2adfb23d726674f","src/powerpc64/ioctl.rs":"513a1dda33b2cd6c57212263c1bf0d8d443e54af6efe75e938fd700c1ca2b630","src/powerpc64/net.rs":"70622d7df4f2c89941eee6b629e77b09c3b69d7b4b5ad40b1425843a470ab8cd","src/powerpc64/netlink.rs":"352a06995f7de6e4fc1c2ff54c1eccb93a3d833a923e834ec75c6a4d30ea5051","src/powerpc64/prctl.rs":"1fcccc5b6dac472a30b7701b5c9e436c238410077cfe158d600b51d55bcc074a","src/powerpc64/system.rs":"500116b7613a504ebad028cec1ba37323310e29864d885ae62191ccb1f86d333","src/riscv32/errno.rs":"db283e5ea7fb63e0f57acb241e6471a951b4218660c01ca37b80be9a53629b92","src/riscv32/general.rs":"7bd0740d489d74f2e4af6cf17ff4c5a0201bb8b1e074c0ef51c2af2a54a46243","src/riscv32/if_ether.rs":"aac7a069000195b9b18c6d25b2d7c338efb1062347a84e31cda7c93de374b3c6","src/riscv32/io_uring.rs":"5c67dde8fdb3641407d4ebd744171606b82596176343fe6766afd3220eda2ab1","src/riscv32/ioctl.rs":"b2a4c7d649b18a4d2a1142400de687d48c195dcf8a86b58ac261413c33809d7b","src/riscv32/net.rs":"6df28547fc867f3e66dab6561e494573a416add67c1968ec2371c43d8e28da86","src/riscv32/netlink.rs":"9fc99e88df0efc15d39b397c9d653c32b4729e31a2434e730435fbdfcb362da4","src/riscv32/prctl.rs":"8df2f33387d5b4865d9417f796cc4d43b3cf549cfa41d7ce7d41dd367ed8b6c9","src/riscv32/system.rs":"a2913685b359e60bbfae413b89a6fd37ea38fa448f980ffadef42d227b33ada5","src/riscv64/errno.rs":"db283e5ea7fb63e0f57acb241e6471a951b4218660c01ca37b80be9a53629b92","src/riscv64/general.rs":"bb8edd39188ced7f8e3f404c7559af11e1d80c8f18126e83ce03272d89e8ef0d","src/riscv64/if_ether.rs":"a7b0918afc9dbf8e79490f83a809e4bd563af20ab2b3432d58b763ff31418daf","src/riscv64/io_uring.rs":"ef851913c86bc2d629048e781edc76b59c63e659f8bd4bcd7fa7ff982186ed6d","src/riscv64/ioctl.rs":"6f631e0ac37f2c2398168683a1523d1559b85369ffe4cdcc284ffe7455672c18","src/riscv64/net.rs":"50ef111f314db8683e0f2f845f930e7e2209b97a17aa3e9fa774832ee9ef0599","src/riscv64/netlink.rs":"789357343b94276e6f8fc8f3a32f06f3d3efd464c7850b2568dc609a49d1f305","src/riscv64/prctl.rs":"624e4d3b8f3b4f1d6dcb1540c124ed03ce47f0580aa3425c0baed431dcd267ea","src/riscv64/system.rs":"4cfcd4c28481b9ff5fc0330d5c713d637d3615c0184830d3a4391882eaed68f5","src/s390x/errno.rs":"db283e5ea7fb63e0f57acb241e6471a951b4218660c01ca37b80be9a53629b92","src/s390x/general.rs":"f7fb19059aca9182d4cc97a807fbe1727b4082791e316c63365d115803948d18","src/s390x/if_ether.rs":"2a6b2132be1aebe126eb64ea230a82c2ab18433ece37226c9dacd81392ad6ca2","src/s390x/io_uring.rs":"57790b4ce46a4a2a87a329ff935033dfb430117bcc2154fa066c5d681f115319","src/s390x/ioctl.rs":"f806407c91520bc994c7cd638576686710700a4cfa30c8ca3f81d55ce1d6ecdd","src/s390x/net.rs":"28abfbe5beca5dff444ed226f90ea9e37e2f7bb5c12e564c1efb59600322d773","src/s390x/netlink.rs":"c3c11102a55d15dfb534d748c8bc8ece58c9d56170b6afe07d1f2cc783fd6372","src/s390x/prctl.rs":"6fe9f5349f9a694b391f309f208235c1d4669430d3f051ef64467576e91df7a1","src/s390x/system.rs":"f68e8afbd02bc87a8fec2cae4e367f296873f2c1a651032da4ccc4f1c0ed4670","src/sparc/errno.rs":"b3c5e1a6c8378d613c6ef3dd44e2199ea7455da65e83d6bb19582a79de880f80","src/sparc/general.rs":"13c5b4e0c6f9f2cfb9c062de637f88ff0b9114aaf940278cd7b4161b3d52c0c4","src/sparc/if_ether.rs":"c574c6d1ea11a8bb213b18928fe2d342c897d8ff04458991a5192eb401fbbc57","src/sparc/io_uring.rs":"d813aabc93f383c8522773ed431209627d810c78bcdb4dae931a702aae55e09f","src/sparc/ioctl.rs":"b2a4c7d649b18a4d2a1142400de687d48c195dcf8a86b58ac261413c33809d7b","src/sparc/net.rs":"aee68381686374b66f05b33d2b8235530af957831121c17c4583caef2e515855","src/sparc/netlink.rs":"0f176c24de7b2b19ac16dd95625947b8047d48bc7b871e12a3acd31f8e97c6f5","src/sparc/prctl.rs":"5f5686fe04d8cc5e746d789340331095044f244c123ecf1468dcb089bbb931cd","src/sparc/system.rs":"6f1f8ce9978693845621880031ac4805f00027315a691cfe1d466703c7a96e8d","src/sparc64/errno.rs":"b3c5e1a6c8378d613c6ef3dd44e2199ea7455da65e83d6bb19582a79de880f80","src/sparc64/general.rs":"a026441b0dbfc2dd3138bd7fc15c99a0843b13ff194a610dbe97498d068ef769","src/sparc64/if_ether.rs":"e51661cb54922c3c01853617a61b3d141768adf5b94162c4aefb326d31ef55f5","src/sparc64/io_uring.rs":"688f4678c259eb940aa0216c0183843d436b918d214e13bed56a38ddb55132db","src/sparc64/ioctl.rs":"b2a4c7d649b18a4d2a1142400de687d48c195dcf8a86b58ac261413c33809d7b","src/sparc64/net.rs":"a9ee3df43212c6f5016fd59b8fcf28b8b49016b4e143e2de97b7b60093f326d5","src/sparc64/netlink.rs":"7cec2a77af7ec17cad96d63027fd4a9164f0e6503f2e6cc2a99e79aa1bba3147","src/sparc64/prctl.rs":"ff897312b99274ce4eefecccc9797e34accc69efce1299712ab631e9542cb8ca","src/sparc64/system.rs":"becb2e706ed6df77860a2a3884b28181dca606db22fcd604a8a1803f937e8baf","src/x32/errno.rs":"db283e5ea7fb63e0f57acb241e6471a951b4218660c01ca37b80be9a53629b92","src/x32/general.rs":"ab1327fc01e9529abded9429e6720ec84b441744b68898f1a1cf8ce48d7de85d","src/x32/if_ether.rs":"859047581be4a3ae923b88516e86230a4f9a447a5203285dd8bcc539038c5c4f","src/x32/io_uring.rs":"40834d29cf819e43a23f9a2e075e2ea0c001be817f7200aa059c24eae6d29123","src/x32/ioctl.rs":"085227ec906237903b5e8b2e90b80fd078ddb4f9e44bbd6c9bee54ea7d5d6b1a","src/x32/net.rs":"c3133d3ac4cafff36bf8e0e374a788bd6aae6b36d0cd28be0cc1ee140529962a","src/x32/netlink.rs":"f74042f6cf0eabccfa6b8008a89ee7ab347fb7eaa89499757a786b13b2403982","src/x32/prctl.rs":"2d1eb6873dc5b72a8252f12e695d98a045e01026f730302a6515f53a394bba7c","src/x32/system.rs":"69c125aea6b21f2c4981f3386602283a691524671fef1da7d67de3b67fffdc42","src/x86/errno.rs":"db283e5ea7fb63e0f57acb241e6471a951b4218660c01ca37b80be9a53629b92","src/x86/general.rs":"8f48e3f5136a3aadf0282674937c4748dabc59dbb3cce4b9f2f73f8d2d25d52f","src/x86/if_ether.rs":"3873beb1f57bdcc52da345608c5deda5937d7b92b114b414ce6161784173b925","src/x86/io_uring.rs":"3f60400dfc11a5eafa5a54466f7f9ca74a63219feda2278c388529bf40c0a6a3","src/x86/ioctl.rs":"8dd0afaa7c3017c3866e579705699be75acc1a095694232b2903a12b3c07a770","src/x86/net.rs":"3192a24c15f0f4e4d856678fd05e82d7ae3585921f6243e907c539d603873896","src/x86/netlink.rs":"2f98b8c0349c2d3d538164e4d06c28fa1fb9308f7691aa097526ce2fb3ac176f","src/x86/prctl.rs":"5477c74fec958d9f9d2028f58e95657840ead28445956e53fe0894e45922f8a5","src/x86/system.rs":"9aca94a4a553e09e6d2d43741fb8c120c05a193822e850951dc469bbd89cc703","src/x86_64/errno.rs":"db283e5ea7fb63e0f57acb241e6471a951b4218660c01ca37b80be9a53629b92","src/x86_64/general.rs":"24f147e5800b36d49645997571cffab9d6e562c4b317000278f743dc41e3ef71","src/x86_64/if_ether.rs":"feb5362d90fbd5113b6f1f22fcc77a7b3bb7c8f5081be7eacb2e270d2f24a293","src/x86_64/io_uring.rs":"6c008c59b6905b7872b788e30d546efa3b5bb03a0fe17e33b90bfc8beec23f29","src/x86_64/ioctl.rs":"085227ec906237903b5e8b2e90b80fd078ddb4f9e44bbd6c9bee54ea7d5d6b1a","src/x86_64/net.rs":"d0f08df0ce735b8c75b6a7f466b97a199330395ccc04e8a8d5899f8426a9e798","src/x86_64/netlink.rs":"d47b8b117007b1c29db325dad68ed1b92562b98f90916b1b192f57a935a98038","src/x86_64/prctl.rs":"6d0f63fff8d76cc2f4678f38e40a68d072d7da4094d5217ce92872370bb4df9b","src/x86_64/system.rs":"6a415f104e7dd34829b36c19ad89e0cfcfbc69a846c87f81e202411386d46966"},"package":"1a9bad9f94746442c783ca431b22403b519cd7fbeed0533fdd6328b2f2212128"} \ No newline at end of file
+{"files":{"CODE_OF_CONDUCT.md":"ccd9e538ce44713a2486cc8e4c01b8c8b846d1ccff15de728d8d6fa9a7f846cd","COPYRIGHT":"3290ae0fbc9ddb77d2239121d710f0bb9d31b3b4744e6d97fe01e652b4c1870b","Cargo.toml":"0d02ea4bc018631a52900423cb7466bc905571bd1d767769739bde626360c123","LICENSE-APACHE":"a60eea817514531668d7e00765731449fe14d059d3249e0bc93b36de45f759f2","LICENSE-Apache-2.0_WITH_LLVM-exception":"268872b9816f90fd8e85db5a28d33f8150ebb8dd016653fb39ef1f94f2686bc5","LICENSE-MIT":"23f18e03dc49df91622fe2a76176497404e46ced8a715d9d2b67a7446571cca3","ORG_CODE_OF_CONDUCT.md":"a62b69bf86e605ee1bcbb2f0a12ba79e4cebb6983a7b6491949750aecc4f2178","README.md":"3d4ae2ec9429adfd329b4506f7ca6faa84dca30d1c3b416f8f4e6f57bdb3aa96","src/aarch64/errno.rs":"db283e5ea7fb63e0f57acb241e6471a951b4218660c01ca37b80be9a53629b92","src/aarch64/general.rs":"0cc1ed00b1ef7efb16a7109138acdf679d591325458938cee150b221af063822","src/aarch64/if_ether.rs":"f558bfec1f5e80235db79f507e4afd3120647a5caddf17a87b7ad5540e5c1462","src/aarch64/io_uring.rs":"9ce4c9005b5b99e041b9d58be6866367605e4bee1e30a7096235cb234ed73e1b","src/aarch64/ioctl.rs":"f83af7f7cab6611c9f316b2289998d3276d844ac8f96111bc65f6c3340c3301a","src/aarch64/net.rs":"9c5fe44f91072b08899a6304cb22a51545034adde444740b67b8b310f3906a30","src/aarch64/netlink.rs":"f6642310b8bd37b5775ba1a52cfe638beddd7c880f8dfacab62c3180255fb75f","src/aarch64/prctl.rs":"a80e2f89aa978210d980538e1d9c5b922bb073d118ee51b1f14c1f397c7cd576","src/aarch64/system.rs":"851a95c0d1b76782970a28c373a313954eea0db35f6ebce562e6047095f587c4","src/arm/errno.rs":"db283e5ea7fb63e0f57acb241e6471a951b4218660c01ca37b80be9a53629b92","src/arm/general.rs":"bdbb40ba5630044c9555fe38a3640638f3ff7f437d94f82428e2bedad32e180f","src/arm/if_ether.rs":"3873beb1f57bdcc52da345608c5deda5937d7b92b114b414ce6161784173b925","src/arm/io_uring.rs":"5e2e254d5853ed30568e17fab184f8cc458607465d19dcee6c87ca1b565d6d2d","src/arm/ioctl.rs":"54cb9bdc5fe4ee7cff30e087bb0d04f1d811b55be7604bb056387f859120935a","src/arm/net.rs":"c79f443ab6585f81a71eff3350700ece82098264206eb79f78714153d6e43529","src/arm/netlink.rs":"2f98b8c0349c2d3d538164e4d06c28fa1fb9308f7691aa097526ce2fb3ac176f","src/arm/prctl.rs":"5477c74fec958d9f9d2028f58e95657840ead28445956e53fe0894e45922f8a5","src/arm/system.rs":"9aca94a4a553e09e6d2d43741fb8c120c05a193822e850951dc469bbd89cc703","src/csky/errno.rs":"db283e5ea7fb63e0f57acb241e6471a951b4218660c01ca37b80be9a53629b92","src/csky/general.rs":"94aba82d2a76a9ca272b4766f8d2f5f14e10bc2166e03d695a5b8b5d207e6755","src/csky/if_ether.rs":"aac7a069000195b9b18c6d25b2d7c338efb1062347a84e31cda7c93de374b3c6","src/csky/io_uring.rs":"bb7541d82f627cb681ea11f4e5c4162b0d0616ca08fcc6d31bcf22ef813f754d","src/csky/ioctl.rs":"77f30e67f9a4748bc31184454a0ff45fd821c3536cd98dc2411def8eeb59a268","src/csky/net.rs":"2796ca3744e82cecd816b4d1b1fba0bcb389fbc4603e0af7b6cdc562c666b512","src/csky/netlink.rs":"9fc99e88df0efc15d39b397c9d653c32b4729e31a2434e730435fbdfcb362da4","src/csky/prctl.rs":"8df2f33387d5b4865d9417f796cc4d43b3cf549cfa41d7ce7d41dd367ed8b6c9","src/csky/system.rs":"a2913685b359e60bbfae413b89a6fd37ea38fa448f980ffadef42d227b33ada5","src/elf.rs":"441bcf378b5603f957e053369d18d95c1efe981665846c220bca82123c04843a","src/lib.rs":"f3399ba35206764ac4e2d755cfc7e0c580464b8fcc76968f6c4b9f64523a1d02","src/loongarch64/errno.rs":"db283e5ea7fb63e0f57acb241e6471a951b4218660c01ca37b80be9a53629b92","src/loongarch64/general.rs":"fadd5884c6ad645300540dd30150984857819a986772fca4eba1e1fc0c3f4f1e","src/loongarch64/if_ether.rs":"a7b0918afc9dbf8e79490f83a809e4bd563af20ab2b3432d58b763ff31418daf","src/loongarch64/io_uring.rs":"ef851913c86bc2d629048e781edc76b59c63e659f8bd4bcd7fa7ff982186ed6d","src/loongarch64/ioctl.rs":"6f631e0ac37f2c2398168683a1523d1559b85369ffe4cdcc284ffe7455672c18","src/loongarch64/net.rs":"21add3f1bfa5898d9a5ef91342f6cd94ad4585df6525b9a4cf6cdf743345a9c7","src/loongarch64/netlink.rs":"789357343b94276e6f8fc8f3a32f06f3d3efd464c7850b2568dc609a49d1f305","src/loongarch64/prctl.rs":"624e4d3b8f3b4f1d6dcb1540c124ed03ce47f0580aa3425c0baed431dcd267ea","src/loongarch64/system.rs":"4cfcd4c28481b9ff5fc0330d5c713d637d3615c0184830d3a4391882eaed68f5","src/mips/errno.rs":"9ab1ed2bf371a27401745c2a6f9692f7e66dfd481d032cb40a354826d394ea8e","src/mips/general.rs":"1c16f4e0a015eaf27e9a30f4b74ec824220798f47c535d3aaf322ad799c054ab","src/mips/if_ether.rs":"1ecdc654cb3eda633bb7192829b1001a0a5ae5a126110b4208bbee5b41f87f5e","src/mips/io_uring.rs":"c69479bb1f862febe78e0989745c202146aaef7e8ceaa0d7bf291af584748992","src/mips/ioctl.rs":"f7464d2cd0548ab4735a1ca8deba47f13ea0946a9bf86adfec1a77feb3a0f475","src/mips/net.rs":"843204e91d8d6c34ddf4d29e1e822980b3e058ff7fc55ecc5f2b0fdf4a72825d","src/mips/netlink.rs":"5045dece259abaa5b5974500a20a9325e4cd6eb87c344dd7448056dff469994f","src/mips/prctl.rs":"cd59615adf6f561ef6c542df59cf25f75877693ca1c4c489f5e460eb7e798d4d","src/mips/system.rs":"acbc69a1fe7299860f8bd142bc2ff5595a410e1528994139062fc680d1a87e71","src/mips32r6/errno.rs":"9ab1ed2bf371a27401745c2a6f9692f7e66dfd481d032cb40a354826d394ea8e","src/mips32r6/general.rs":"1c16f4e0a015eaf27e9a30f4b74ec824220798f47c535d3aaf322ad799c054ab","src/mips32r6/if_ether.rs":"1ecdc654cb3eda633bb7192829b1001a0a5ae5a126110b4208bbee5b41f87f5e","src/mips32r6/io_uring.rs":"c69479bb1f862febe78e0989745c202146aaef7e8ceaa0d7bf291af584748992","src/mips32r6/ioctl.rs":"f7464d2cd0548ab4735a1ca8deba47f13ea0946a9bf86adfec1a77feb3a0f475","src/mips32r6/net.rs":"843204e91d8d6c34ddf4d29e1e822980b3e058ff7fc55ecc5f2b0fdf4a72825d","src/mips32r6/netlink.rs":"5045dece259abaa5b5974500a20a9325e4cd6eb87c344dd7448056dff469994f","src/mips32r6/prctl.rs":"cd59615adf6f561ef6c542df59cf25f75877693ca1c4c489f5e460eb7e798d4d","src/mips32r6/system.rs":"acbc69a1fe7299860f8bd142bc2ff5595a410e1528994139062fc680d1a87e71","src/mips64/errno.rs":"9ab1ed2bf371a27401745c2a6f9692f7e66dfd481d032cb40a354826d394ea8e","src/mips64/general.rs":"700b52614c604ce58aa8a5bb1ebd46221c0106ec2d8d6600d681d1594a89118a","src/mips64/if_ether.rs":"6d24518acba5bc8fa2a775d039ed9594de8349d6028621134626ccaa8ea18bcd","src/mips64/io_uring.rs":"18bd5d96c53aff44f4a37a71f16fa12c11b7c934b395bf841e47d98283146a50","src/mips64/ioctl.rs":"39f3276ec6f36ba78f5635bd418310b21bc228902d4da889fa01094c26f9b57d","src/mips64/net.rs":"e641379a7004ded90413b084504468148ecdbea4f753cbca83a4d22698cd7bab","src/mips64/netlink.rs":"18f139573337be18fb9bd56de4d0bd8af5c80828cdf68ef68751c18dcb39c761","src/mips64/prctl.rs":"a8d9ae240ce582d7b66e13937b99df73c7247ce9f69bfdd12109903d7c6dfb0e","src/mips64/system.rs":"95805c533a8eb8f53c28f138e6a2d12064681cc9db55d3042ee748c655a5d7cd","src/mips64r6/errno.rs":"9ab1ed2bf371a27401745c2a6f9692f7e66dfd481d032cb40a354826d394ea8e","src/mips64r6/general.rs":"700b52614c604ce58aa8a5bb1ebd46221c0106ec2d8d6600d681d1594a89118a","src/mips64r6/if_ether.rs":"6d24518acba5bc8fa2a775d039ed9594de8349d6028621134626ccaa8ea18bcd","src/mips64r6/io_uring.rs":"18bd5d96c53aff44f4a37a71f16fa12c11b7c934b395bf841e47d98283146a50","src/mips64r6/ioctl.rs":"39f3276ec6f36ba78f5635bd418310b21bc228902d4da889fa01094c26f9b57d","src/mips64r6/net.rs":"e641379a7004ded90413b084504468148ecdbea4f753cbca83a4d22698cd7bab","src/mips64r6/netlink.rs":"18f139573337be18fb9bd56de4d0bd8af5c80828cdf68ef68751c18dcb39c761","src/mips64r6/prctl.rs":"a8d9ae240ce582d7b66e13937b99df73c7247ce9f69bfdd12109903d7c6dfb0e","src/mips64r6/system.rs":"95805c533a8eb8f53c28f138e6a2d12064681cc9db55d3042ee748c655a5d7cd","src/powerpc/errno.rs":"db283e5ea7fb63e0f57acb241e6471a951b4218660c01ca37b80be9a53629b92","src/powerpc/general.rs":"7940ad742585d501f4742af51c6310ecf651863a8aaa0305193e9c8ee07aca90","src/powerpc/if_ether.rs":"56ab5fbf8c9d0dd0654412fabdca6759cbb421a876e5cebe2fec10e25728b55c","src/powerpc/io_uring.rs":"38ead79180c96e8af69929dacbc36e8cfbccec96875c61f094e531e6860639db","src/powerpc/ioctl.rs":"513a1dda33b2cd6c57212263c1bf0d8d443e54af6efe75e938fd700c1ca2b630","src/powerpc/net.rs":"b0228b15161fb750596d6e7e8e612381d9cf2acfed208715b93e8bb4b3340dc7","src/powerpc/netlink.rs":"4f10870fbd23de17efd4cba6d5a40ba85564effc5d0b71f9d7f928a42cb77b20","src/powerpc/prctl.rs":"f236987bc8ae993ab2b0e88b2eacbae51eee4da170ac075552070a76c717d803","src/powerpc/system.rs":"3e01e5e145adb87263f04c9e053faac0c0758689fd32917d2c7c2eec1d89f9e6","src/powerpc64/errno.rs":"db283e5ea7fb63e0f57acb241e6471a951b4218660c01ca37b80be9a53629b92","src/powerpc64/general.rs":"7862eb3dfac845331b624b3322bdeb3441bb86e914719e125dd5dc7b3860db43","src/powerpc64/if_ether.rs":"15e12d56b1367cb5c9d8fd1b9995acf1429a923bf603698bd732efe1acc30cd6","src/powerpc64/io_uring.rs":"50018e504d78c584beaec3b1a6d477d30d566d25cb1a40b0a2adfb23d726674f","src/powerpc64/ioctl.rs":"513a1dda33b2cd6c57212263c1bf0d8d443e54af6efe75e938fd700c1ca2b630","src/powerpc64/net.rs":"0a1468b8a270470a619e492fd6c50c59ea9eeaccd1c7827a0a0d55a0ae981cd4","src/powerpc64/netlink.rs":"352a06995f7de6e4fc1c2ff54c1eccb93a3d833a923e834ec75c6a4d30ea5051","src/powerpc64/prctl.rs":"1fcccc5b6dac472a30b7701b5c9e436c238410077cfe158d600b51d55bcc074a","src/powerpc64/system.rs":"500116b7613a504ebad028cec1ba37323310e29864d885ae62191ccb1f86d333","src/riscv32/errno.rs":"db283e5ea7fb63e0f57acb241e6471a951b4218660c01ca37b80be9a53629b92","src/riscv32/general.rs":"16ffe747a8f75ac6594dc7afddef4fbb89735da50af9f19f152fd2f04b509463","src/riscv32/if_ether.rs":"aac7a069000195b9b18c6d25b2d7c338efb1062347a84e31cda7c93de374b3c6","src/riscv32/io_uring.rs":"5c67dde8fdb3641407d4ebd744171606b82596176343fe6766afd3220eda2ab1","src/riscv32/ioctl.rs":"b2a4c7d649b18a4d2a1142400de687d48c195dcf8a86b58ac261413c33809d7b","src/riscv32/net.rs":"2796ca3744e82cecd816b4d1b1fba0bcb389fbc4603e0af7b6cdc562c666b512","src/riscv32/netlink.rs":"9fc99e88df0efc15d39b397c9d653c32b4729e31a2434e730435fbdfcb362da4","src/riscv32/prctl.rs":"8df2f33387d5b4865d9417f796cc4d43b3cf549cfa41d7ce7d41dd367ed8b6c9","src/riscv32/system.rs":"a2913685b359e60bbfae413b89a6fd37ea38fa448f980ffadef42d227b33ada5","src/riscv64/errno.rs":"db283e5ea7fb63e0f57acb241e6471a951b4218660c01ca37b80be9a53629b92","src/riscv64/general.rs":"8ec4907ac81b62e21451731a468e5f4fe7a37a46d80c56b33e0969d2d059d442","src/riscv64/if_ether.rs":"a7b0918afc9dbf8e79490f83a809e4bd563af20ab2b3432d58b763ff31418daf","src/riscv64/io_uring.rs":"ef851913c86bc2d629048e781edc76b59c63e659f8bd4bcd7fa7ff982186ed6d","src/riscv64/ioctl.rs":"6f631e0ac37f2c2398168683a1523d1559b85369ffe4cdcc284ffe7455672c18","src/riscv64/net.rs":"21add3f1bfa5898d9a5ef91342f6cd94ad4585df6525b9a4cf6cdf743345a9c7","src/riscv64/netlink.rs":"789357343b94276e6f8fc8f3a32f06f3d3efd464c7850b2568dc609a49d1f305","src/riscv64/prctl.rs":"624e4d3b8f3b4f1d6dcb1540c124ed03ce47f0580aa3425c0baed431dcd267ea","src/riscv64/system.rs":"4cfcd4c28481b9ff5fc0330d5c713d637d3615c0184830d3a4391882eaed68f5","src/s390x/errno.rs":"db283e5ea7fb63e0f57acb241e6471a951b4218660c01ca37b80be9a53629b92","src/s390x/general.rs":"687f6e3d4502d31aaec08a41335b6a368f0949049875d939065a66df86e06b8a","src/s390x/if_ether.rs":"2a6b2132be1aebe126eb64ea230a82c2ab18433ece37226c9dacd81392ad6ca2","src/s390x/io_uring.rs":"57790b4ce46a4a2a87a329ff935033dfb430117bcc2154fa066c5d681f115319","src/s390x/ioctl.rs":"f806407c91520bc994c7cd638576686710700a4cfa30c8ca3f81d55ce1d6ecdd","src/s390x/net.rs":"3f89cf2040475eb446daa3f54b5cd016ca8d2d3966f02efb3f0f2f425ccc7adb","src/s390x/netlink.rs":"c3c11102a55d15dfb534d748c8bc8ece58c9d56170b6afe07d1f2cc783fd6372","src/s390x/prctl.rs":"6fe9f5349f9a694b391f309f208235c1d4669430d3f051ef64467576e91df7a1","src/s390x/system.rs":"f68e8afbd02bc87a8fec2cae4e367f296873f2c1a651032da4ccc4f1c0ed4670","src/sparc/errno.rs":"b3c5e1a6c8378d613c6ef3dd44e2199ea7455da65e83d6bb19582a79de880f80","src/sparc/general.rs":"a38a371e8ceeecc4384999b4cc8ee6d65a35a20542c96c62e04c24b2b2953858","src/sparc/if_ether.rs":"c574c6d1ea11a8bb213b18928fe2d342c897d8ff04458991a5192eb401fbbc57","src/sparc/io_uring.rs":"d813aabc93f383c8522773ed431209627d810c78bcdb4dae931a702aae55e09f","src/sparc/ioctl.rs":"b2a4c7d649b18a4d2a1142400de687d48c195dcf8a86b58ac261413c33809d7b","src/sparc/net.rs":"00115a0deec75249c34bf61c76d4a95181be21ac3a1b5200875186d5ea501dac","src/sparc/netlink.rs":"0f176c24de7b2b19ac16dd95625947b8047d48bc7b871e12a3acd31f8e97c6f5","src/sparc/prctl.rs":"5f5686fe04d8cc5e746d789340331095044f244c123ecf1468dcb089bbb931cd","src/sparc/system.rs":"6f1f8ce9978693845621880031ac4805f00027315a691cfe1d466703c7a96e8d","src/sparc64/errno.rs":"b3c5e1a6c8378d613c6ef3dd44e2199ea7455da65e83d6bb19582a79de880f80","src/sparc64/general.rs":"d4138f0e663833811365fdc2e1008525df0f21044b5e31ab80d97d63fcb9f45f","src/sparc64/if_ether.rs":"e51661cb54922c3c01853617a61b3d141768adf5b94162c4aefb326d31ef55f5","src/sparc64/io_uring.rs":"688f4678c259eb940aa0216c0183843d436b918d214e13bed56a38ddb55132db","src/sparc64/ioctl.rs":"b2a4c7d649b18a4d2a1142400de687d48c195dcf8a86b58ac261413c33809d7b","src/sparc64/net.rs":"e1b51c9efe4a00b645100f2b4aa6f2349a50627521fa020370b1bf8ab0b3a575","src/sparc64/netlink.rs":"7cec2a77af7ec17cad96d63027fd4a9164f0e6503f2e6cc2a99e79aa1bba3147","src/sparc64/prctl.rs":"ff897312b99274ce4eefecccc9797e34accc69efce1299712ab631e9542cb8ca","src/sparc64/system.rs":"becb2e706ed6df77860a2a3884b28181dca606db22fcd604a8a1803f937e8baf","src/x32/errno.rs":"db283e5ea7fb63e0f57acb241e6471a951b4218660c01ca37b80be9a53629b92","src/x32/general.rs":"c2aeaf3096d559a86d3f72e0ec4a91245edfce35e85c51b50d13e115ec357974","src/x32/if_ether.rs":"859047581be4a3ae923b88516e86230a4f9a447a5203285dd8bcc539038c5c4f","src/x32/io_uring.rs":"40834d29cf819e43a23f9a2e075e2ea0c001be817f7200aa059c24eae6d29123","src/x32/ioctl.rs":"085227ec906237903b5e8b2e90b80fd078ddb4f9e44bbd6c9bee54ea7d5d6b1a","src/x32/net.rs":"e2d77e5bbae1fb298e48382204db55e4e49de2039369e3b2b77097029006c9d1","src/x32/netlink.rs":"f74042f6cf0eabccfa6b8008a89ee7ab347fb7eaa89499757a786b13b2403982","src/x32/prctl.rs":"2d1eb6873dc5b72a8252f12e695d98a045e01026f730302a6515f53a394bba7c","src/x32/system.rs":"69c125aea6b21f2c4981f3386602283a691524671fef1da7d67de3b67fffdc42","src/x86/errno.rs":"db283e5ea7fb63e0f57acb241e6471a951b4218660c01ca37b80be9a53629b92","src/x86/general.rs":"a9b002ea136dabb9fd1c489c999cd1bfeca62490202aab095221fc70c2b6e30e","src/x86/if_ether.rs":"3873beb1f57bdcc52da345608c5deda5937d7b92b114b414ce6161784173b925","src/x86/io_uring.rs":"3f60400dfc11a5eafa5a54466f7f9ca74a63219feda2278c388529bf40c0a6a3","src/x86/ioctl.rs":"8dd0afaa7c3017c3866e579705699be75acc1a095694232b2903a12b3c07a770","src/x86/net.rs":"c79f443ab6585f81a71eff3350700ece82098264206eb79f78714153d6e43529","src/x86/netlink.rs":"2f98b8c0349c2d3d538164e4d06c28fa1fb9308f7691aa097526ce2fb3ac176f","src/x86/prctl.rs":"5477c74fec958d9f9d2028f58e95657840ead28445956e53fe0894e45922f8a5","src/x86/system.rs":"9aca94a4a553e09e6d2d43741fb8c120c05a193822e850951dc469bbd89cc703","src/x86_64/errno.rs":"db283e5ea7fb63e0f57acb241e6471a951b4218660c01ca37b80be9a53629b92","src/x86_64/general.rs":"f0c763abb8d7e7bd594c674d2774b272844829ecee4e3ed42932004616a2380e","src/x86_64/if_ether.rs":"feb5362d90fbd5113b6f1f22fcc77a7b3bb7c8f5081be7eacb2e270d2f24a293","src/x86_64/io_uring.rs":"6c008c59b6905b7872b788e30d546efa3b5bb03a0fe17e33b90bfc8beec23f29","src/x86_64/ioctl.rs":"085227ec906237903b5e8b2e90b80fd078ddb4f9e44bbd6c9bee54ea7d5d6b1a","src/x86_64/net.rs":"0f81db11e3497486f0d2022a8302716816d2442bf7ffd25fa88a25a9bdc1ca83","src/x86_64/netlink.rs":"d47b8b117007b1c29db325dad68ed1b92562b98f90916b1b192f57a935a98038","src/x86_64/prctl.rs":"6d0f63fff8d76cc2f4678f38e40a68d072d7da4094d5217ce92872370bb4df9b","src/x86_64/system.rs":"6a415f104e7dd34829b36c19ad89e0cfcfbc69a846c87f81e202411386d46966"},"package":"da2479e8c062e40bf0066ffa0bc823de0a9368974af99c9f6df941d2c231e03f"} \ No newline at end of file
diff --git a/vendor/linux-raw-sys/Cargo.toml b/vendor/linux-raw-sys/Cargo.toml
index 55baa0be1..f9f8e707d 100644
--- a/vendor/linux-raw-sys/Cargo.toml
+++ b/vendor/linux-raw-sys/Cargo.toml
@@ -13,7 +13,7 @@
edition = "2021"
rust-version = "1.63"
name = "linux-raw-sys"
-version = "0.4.7"
+version = "0.4.10"
authors = ["Dan Gohman <dev@sunfishcode.online>"]
exclude = [
"/gen",
@@ -36,6 +36,11 @@ features = [
"default",
"ioctl",
"netlink",
+ "io_uring",
+ "if_ether",
+ "net",
+ "prctl",
+ "elf",
]
targets = [
"x86_64-unknown-linux-gnu",
diff --git a/vendor/linux-raw-sys/src/aarch64/general.rs b/vendor/linux-raw-sys/src/aarch64/general.rs
index 812c1bab9..7dc18427d 100644
--- a/vendor/linux-raw-sys/src/aarch64/general.rs
+++ b/vendor/linux-raw-sys/src/aarch64/general.rs
@@ -1570,6 +1570,19 @@ pub const POLLRDHUP: u32 = 8192;
pub const GRND_NONBLOCK: u32 = 1;
pub const GRND_RANDOM: u32 = 2;
pub const GRND_INSECURE: u32 = 4;
+pub const LINUX_REBOOT_MAGIC1: u32 = 4276215469;
+pub const LINUX_REBOOT_MAGIC2: u32 = 672274793;
+pub const LINUX_REBOOT_MAGIC2A: u32 = 85072278;
+pub const LINUX_REBOOT_MAGIC2B: u32 = 369367448;
+pub const LINUX_REBOOT_MAGIC2C: u32 = 537993216;
+pub const LINUX_REBOOT_CMD_RESTART: u32 = 19088743;
+pub const LINUX_REBOOT_CMD_HALT: u32 = 3454992675;
+pub const LINUX_REBOOT_CMD_CAD_ON: u32 = 2309737967;
+pub const LINUX_REBOOT_CMD_CAD_OFF: u32 = 0;
+pub const LINUX_REBOOT_CMD_POWER_OFF: u32 = 1126301404;
+pub const LINUX_REBOOT_CMD_RESTART2: u32 = 2712847316;
+pub const LINUX_REBOOT_CMD_SW_SUSPEND: u32 = 3489725666;
+pub const LINUX_REBOOT_CMD_KEXEC: u32 = 1163412803;
pub const ITIMER_REAL: u32 = 0;
pub const ITIMER_VIRTUAL: u32 = 1;
pub const ITIMER_PROF: u32 = 2;
diff --git a/vendor/linux-raw-sys/src/aarch64/net.rs b/vendor/linux-raw-sys/src/aarch64/net.rs
index 4675e03e4..97e44faa3 100644
--- a/vendor/linux-raw-sys/src/aarch64/net.rs
+++ b/vendor/linux-raw-sys/src/aarch64/net.rs
@@ -476,6 +476,255 @@ pub __storage: __kernel_sockaddr_storage,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
+pub struct sync_serial_settings {
+pub clock_rate: crate::ctypes::c_uint,
+pub clock_type: crate::ctypes::c_uint,
+pub loopback: crate::ctypes::c_ushort,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct te1_settings {
+pub clock_rate: crate::ctypes::c_uint,
+pub clock_type: crate::ctypes::c_uint,
+pub loopback: crate::ctypes::c_ushort,
+pub slot_map: crate::ctypes::c_uint,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct raw_hdlc_proto {
+pub encoding: crate::ctypes::c_ushort,
+pub parity: crate::ctypes::c_ushort,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct fr_proto {
+pub t391: crate::ctypes::c_uint,
+pub t392: crate::ctypes::c_uint,
+pub n391: crate::ctypes::c_uint,
+pub n392: crate::ctypes::c_uint,
+pub n393: crate::ctypes::c_uint,
+pub lmi: crate::ctypes::c_ushort,
+pub dce: crate::ctypes::c_ushort,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct fr_proto_pvc {
+pub dlci: crate::ctypes::c_uint,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct fr_proto_pvc_info {
+pub dlci: crate::ctypes::c_uint,
+pub master: [crate::ctypes::c_char; 16usize],
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct cisco_proto {
+pub interval: crate::ctypes::c_uint,
+pub timeout: crate::ctypes::c_uint,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct x25_hdlc_proto {
+pub dce: crate::ctypes::c_ushort,
+pub modulo: crate::ctypes::c_uint,
+pub window: crate::ctypes::c_uint,
+pub t1: crate::ctypes::c_uint,
+pub t2: crate::ctypes::c_uint,
+pub n2: crate::ctypes::c_uint,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct ifmap {
+pub mem_start: crate::ctypes::c_ulong,
+pub mem_end: crate::ctypes::c_ulong,
+pub base_addr: crate::ctypes::c_ushort,
+pub irq: crate::ctypes::c_uchar,
+pub dma: crate::ctypes::c_uchar,
+pub port: crate::ctypes::c_uchar,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub struct if_settings {
+pub type_: crate::ctypes::c_uint,
+pub size: crate::ctypes::c_uint,
+pub ifs_ifsu: if_settings__bindgen_ty_1,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub struct ifreq {
+pub ifr_ifrn: ifreq__bindgen_ty_1,
+pub ifr_ifru: ifreq__bindgen_ty_2,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub struct ifconf {
+pub ifc_len: crate::ctypes::c_int,
+pub ifc_ifcu: ifconf__bindgen_ty_1,
+}
+#[repr(C)]
+pub struct xt_entry_match {
+pub u: xt_entry_match__bindgen_ty_1,
+pub data: __IncompleteArrayField<crate::ctypes::c_uchar>,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_entry_match__bindgen_ty_1__bindgen_ty_1 {
+pub match_size: __u16,
+pub name: [crate::ctypes::c_char; 29usize],
+pub revision: __u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_entry_match__bindgen_ty_1__bindgen_ty_2 {
+pub match_size: __u16,
+pub match_: *mut xt_match,
+}
+#[repr(C)]
+pub struct xt_entry_target {
+pub u: xt_entry_target__bindgen_ty_1,
+pub data: __IncompleteArrayField<crate::ctypes::c_uchar>,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_entry_target__bindgen_ty_1__bindgen_ty_1 {
+pub target_size: __u16,
+pub name: [crate::ctypes::c_char; 29usize],
+pub revision: __u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_entry_target__bindgen_ty_1__bindgen_ty_2 {
+pub target_size: __u16,
+pub target: *mut xt_target,
+}
+#[repr(C)]
+pub struct xt_standard_target {
+pub target: xt_entry_target,
+pub verdict: crate::ctypes::c_int,
+}
+#[repr(C)]
+pub struct xt_error_target {
+pub target: xt_entry_target,
+pub errorname: [crate::ctypes::c_char; 30usize],
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_get_revision {
+pub name: [crate::ctypes::c_char; 29usize],
+pub revision: __u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct _xt_align {
+pub u8_: __u8,
+pub u16_: __u16,
+pub u32_: __u32,
+pub u64_: __u64,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_counters {
+pub pcnt: __u64,
+pub bcnt: __u64,
+}
+#[repr(C)]
+#[derive(Debug)]
+pub struct xt_counters_info {
+pub name: [crate::ctypes::c_char; 32usize],
+pub num_counters: crate::ctypes::c_uint,
+pub counters: __IncompleteArrayField<xt_counters>,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_tcp {
+pub spts: [__u16; 2usize],
+pub dpts: [__u16; 2usize],
+pub option: __u8,
+pub flg_mask: __u8,
+pub flg_cmp: __u8,
+pub invflags: __u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_udp {
+pub spts: [__u16; 2usize],
+pub dpts: [__u16; 2usize],
+pub invflags: __u8,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub struct ip6t_ip6 {
+pub src: in6_addr,
+pub dst: in6_addr,
+pub smsk: in6_addr,
+pub dmsk: in6_addr,
+pub iniface: [crate::ctypes::c_char; 16usize],
+pub outiface: [crate::ctypes::c_char; 16usize],
+pub iniface_mask: [crate::ctypes::c_uchar; 16usize],
+pub outiface_mask: [crate::ctypes::c_uchar; 16usize],
+pub proto: __u16,
+pub tos: __u8,
+pub flags: __u8,
+pub invflags: __u8,
+}
+#[repr(C)]
+pub struct ip6t_entry {
+pub ipv6: ip6t_ip6,
+pub nfcache: crate::ctypes::c_uint,
+pub target_offset: __u16,
+pub next_offset: __u16,
+pub comefrom: crate::ctypes::c_uint,
+pub counters: xt_counters,
+pub elems: __IncompleteArrayField<crate::ctypes::c_uchar>,
+}
+#[repr(C)]
+pub struct ip6t_standard {
+pub entry: ip6t_entry,
+pub target: xt_standard_target,
+}
+#[repr(C)]
+pub struct ip6t_error {
+pub entry: ip6t_entry,
+pub target: xt_error_target,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct ip6t_icmp {
+pub type_: __u8,
+pub code: [__u8; 2usize],
+pub invflags: __u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct ip6t_getinfo {
+pub name: [crate::ctypes::c_char; 32usize],
+pub valid_hooks: crate::ctypes::c_uint,
+pub hook_entry: [crate::ctypes::c_uint; 5usize],
+pub underflow: [crate::ctypes::c_uint; 5usize],
+pub num_entries: crate::ctypes::c_uint,
+pub size: crate::ctypes::c_uint,
+}
+#[repr(C)]
+pub struct ip6t_replace {
+pub name: [crate::ctypes::c_char; 32usize],
+pub valid_hooks: crate::ctypes::c_uint,
+pub num_entries: crate::ctypes::c_uint,
+pub size: crate::ctypes::c_uint,
+pub hook_entry: [crate::ctypes::c_uint; 5usize],
+pub underflow: [crate::ctypes::c_uint; 5usize],
+pub num_counters: crate::ctypes::c_uint,
+pub counters: *mut xt_counters,
+pub entries: __IncompleteArrayField<ip6t_entry>,
+}
+#[repr(C)]
+pub struct ip6t_get_entries {
+pub name: [crate::ctypes::c_char; 32usize],
+pub size: crate::ctypes::c_uint,
+pub entrytable: __IncompleteArrayField<ip6t_entry>,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
pub struct linger {
pub l_onoff: crate::ctypes::c_int,
pub l_linger: crate::ctypes::c_int,
@@ -513,6 +762,16 @@ pub msg_len: crate::ctypes::c_uint,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
+pub struct xt_match {
+pub _address: u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_target {
+pub _address: u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
pub struct iovec {
pub _address: u8,
}
@@ -935,6 +1194,135 @@ pub const TCP_MD5SIG_FLAG_PREFIX: u32 = 1;
pub const TCP_MD5SIG_FLAG_IFINDEX: u32 = 2;
pub const TCP_RECEIVE_ZEROCOPY_FLAG_TLB_CLEAN_HINT: u32 = 1;
pub const UNIX_PATH_MAX: u32 = 108;
+pub const IFNAMSIZ: u32 = 16;
+pub const IFALIASZ: u32 = 256;
+pub const ALTIFNAMSIZ: u32 = 128;
+pub const GENERIC_HDLC_VERSION: u32 = 4;
+pub const CLOCK_DEFAULT: u32 = 0;
+pub const CLOCK_EXT: u32 = 1;
+pub const CLOCK_INT: u32 = 2;
+pub const CLOCK_TXINT: u32 = 3;
+pub const CLOCK_TXFROMRX: u32 = 4;
+pub const ENCODING_DEFAULT: u32 = 0;
+pub const ENCODING_NRZ: u32 = 1;
+pub const ENCODING_NRZI: u32 = 2;
+pub const ENCODING_FM_MARK: u32 = 3;
+pub const ENCODING_FM_SPACE: u32 = 4;
+pub const ENCODING_MANCHESTER: u32 = 5;
+pub const PARITY_DEFAULT: u32 = 0;
+pub const PARITY_NONE: u32 = 1;
+pub const PARITY_CRC16_PR0: u32 = 2;
+pub const PARITY_CRC16_PR1: u32 = 3;
+pub const PARITY_CRC16_PR0_CCITT: u32 = 4;
+pub const PARITY_CRC16_PR1_CCITT: u32 = 5;
+pub const PARITY_CRC32_PR0_CCITT: u32 = 6;
+pub const PARITY_CRC32_PR1_CCITT: u32 = 7;
+pub const LMI_DEFAULT: u32 = 0;
+pub const LMI_NONE: u32 = 1;
+pub const LMI_ANSI: u32 = 2;
+pub const LMI_CCITT: u32 = 3;
+pub const LMI_CISCO: u32 = 4;
+pub const IF_GET_IFACE: u32 = 1;
+pub const IF_GET_PROTO: u32 = 2;
+pub const IF_IFACE_V35: u32 = 4096;
+pub const IF_IFACE_V24: u32 = 4097;
+pub const IF_IFACE_X21: u32 = 4098;
+pub const IF_IFACE_T1: u32 = 4099;
+pub const IF_IFACE_E1: u32 = 4100;
+pub const IF_IFACE_SYNC_SERIAL: u32 = 4101;
+pub const IF_IFACE_X21D: u32 = 4102;
+pub const IF_PROTO_HDLC: u32 = 8192;
+pub const IF_PROTO_PPP: u32 = 8193;
+pub const IF_PROTO_CISCO: u32 = 8194;
+pub const IF_PROTO_FR: u32 = 8195;
+pub const IF_PROTO_FR_ADD_PVC: u32 = 8196;
+pub const IF_PROTO_FR_DEL_PVC: u32 = 8197;
+pub const IF_PROTO_X25: u32 = 8198;
+pub const IF_PROTO_HDLC_ETH: u32 = 8199;
+pub const IF_PROTO_FR_ADD_ETH_PVC: u32 = 8200;
+pub const IF_PROTO_FR_DEL_ETH_PVC: u32 = 8201;
+pub const IF_PROTO_FR_PVC: u32 = 8202;
+pub const IF_PROTO_FR_ETH_PVC: u32 = 8203;
+pub const IF_PROTO_RAW: u32 = 8204;
+pub const IFHWADDRLEN: u32 = 6;
+pub const NF_DROP: u32 = 0;
+pub const NF_ACCEPT: u32 = 1;
+pub const NF_STOLEN: u32 = 2;
+pub const NF_QUEUE: u32 = 3;
+pub const NF_REPEAT: u32 = 4;
+pub const NF_STOP: u32 = 5;
+pub const NF_MAX_VERDICT: u32 = 5;
+pub const NF_VERDICT_MASK: u32 = 255;
+pub const NF_VERDICT_FLAG_QUEUE_BYPASS: u32 = 32768;
+pub const NF_VERDICT_QMASK: u32 = 4294901760;
+pub const NF_VERDICT_QBITS: u32 = 16;
+pub const NF_VERDICT_BITS: u32 = 16;
+pub const NF_IP6_PRE_ROUTING: u32 = 0;
+pub const NF_IP6_LOCAL_IN: u32 = 1;
+pub const NF_IP6_FORWARD: u32 = 2;
+pub const NF_IP6_LOCAL_OUT: u32 = 3;
+pub const NF_IP6_POST_ROUTING: u32 = 4;
+pub const NF_IP6_NUMHOOKS: u32 = 5;
+pub const XT_FUNCTION_MAXNAMELEN: u32 = 30;
+pub const XT_EXTENSION_MAXNAMELEN: u32 = 29;
+pub const XT_TABLE_MAXNAMELEN: u32 = 32;
+pub const XT_CONTINUE: u32 = 4294967295;
+pub const XT_RETURN: i32 = -5;
+pub const XT_STANDARD_TARGET: &[u8; 1] = b"\0";
+pub const XT_ERROR_TARGET: &[u8; 6] = b"ERROR\0";
+pub const XT_INV_PROTO: u32 = 64;
+pub const IP6T_FUNCTION_MAXNAMELEN: u32 = 30;
+pub const IP6T_TABLE_MAXNAMELEN: u32 = 32;
+pub const IP6T_CONTINUE: u32 = 4294967295;
+pub const IP6T_RETURN: i32 = -5;
+pub const XT_TCP_INV_SRCPT: u32 = 1;
+pub const XT_TCP_INV_DSTPT: u32 = 2;
+pub const XT_TCP_INV_FLAGS: u32 = 4;
+pub const XT_TCP_INV_OPTION: u32 = 8;
+pub const XT_TCP_INV_MASK: u32 = 15;
+pub const XT_UDP_INV_SRCPT: u32 = 1;
+pub const XT_UDP_INV_DSTPT: u32 = 2;
+pub const XT_UDP_INV_MASK: u32 = 3;
+pub const IP6T_TCP_INV_SRCPT: u32 = 1;
+pub const IP6T_TCP_INV_DSTPT: u32 = 2;
+pub const IP6T_TCP_INV_FLAGS: u32 = 4;
+pub const IP6T_TCP_INV_OPTION: u32 = 8;
+pub const IP6T_TCP_INV_MASK: u32 = 15;
+pub const IP6T_UDP_INV_SRCPT: u32 = 1;
+pub const IP6T_UDP_INV_DSTPT: u32 = 2;
+pub const IP6T_UDP_INV_MASK: u32 = 3;
+pub const IP6T_STANDARD_TARGET: &[u8; 1] = b"\0";
+pub const IP6T_ERROR_TARGET: &[u8; 6] = b"ERROR\0";
+pub const IP6T_F_PROTO: u32 = 1;
+pub const IP6T_F_TOS: u32 = 2;
+pub const IP6T_F_GOTO: u32 = 4;
+pub const IP6T_F_MASK: u32 = 7;
+pub const IP6T_INV_VIA_IN: u32 = 1;
+pub const IP6T_INV_VIA_OUT: u32 = 2;
+pub const IP6T_INV_TOS: u32 = 4;
+pub const IP6T_INV_SRCIP: u32 = 8;
+pub const IP6T_INV_DSTIP: u32 = 16;
+pub const IP6T_INV_FRAG: u32 = 32;
+pub const IP6T_INV_PROTO: u32 = 64;
+pub const IP6T_INV_MASK: u32 = 127;
+pub const IP6T_BASE_CTL: u32 = 64;
+pub const IP6T_SO_SET_REPLACE: u32 = 64;
+pub const IP6T_SO_SET_ADD_COUNTERS: u32 = 65;
+pub const IP6T_SO_SET_MAX: u32 = 65;
+pub const IP6T_SO_GET_INFO: u32 = 64;
+pub const IP6T_SO_GET_ENTRIES: u32 = 65;
+pub const IP6T_SO_GET_REVISION_MATCH: u32 = 68;
+pub const IP6T_SO_GET_REVISION_TARGET: u32 = 69;
+pub const IP6T_SO_GET_MAX: u32 = 69;
+pub const IP6T_SO_ORIGINAL_DST: u32 = 80;
+pub const IP6T_ICMP_INV: u32 = 1;
+pub const NF_IP_PRE_ROUTING: u32 = 0;
+pub const NF_IP_LOCAL_IN: u32 = 1;
+pub const NF_IP_FORWARD: u32 = 2;
+pub const NF_IP_LOCAL_OUT: u32 = 3;
+pub const NF_IP_POST_ROUTING: u32 = 4;
+pub const NF_IP_NUMHOOKS: u32 = 5;
+pub const SO_ORIGINAL_DST: u32 = 80;
pub const SHUT_RD: u32 = 0;
pub const SHUT_WR: u32 = 1;
pub const SHUT_RDWR: u32 = 2;
@@ -1163,6 +1551,25 @@ pub const TCP_NLA_BYTES_NOTSENT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_NO
pub const TCP_NLA_EDT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_EDT;
pub const TCP_NLA_TTL: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TTL;
pub const TCP_NLA_REHASH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REHASH;
+pub const IF_OPER_UNKNOWN: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_UNKNOWN;
+pub const IF_OPER_NOTPRESENT: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_NOTPRESENT;
+pub const IF_OPER_DOWN: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_DOWN;
+pub const IF_OPER_LOWERLAYERDOWN: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_LOWERLAYERDOWN;
+pub const IF_OPER_TESTING: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_TESTING;
+pub const IF_OPER_DORMANT: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_DORMANT;
+pub const IF_OPER_UP: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_UP;
+pub const IF_LINK_MODE_DEFAULT: _bindgen_ty_8 = _bindgen_ty_8::IF_LINK_MODE_DEFAULT;
+pub const IF_LINK_MODE_DORMANT: _bindgen_ty_8 = _bindgen_ty_8::IF_LINK_MODE_DORMANT;
+pub const IF_LINK_MODE_TESTING: _bindgen_ty_8 = _bindgen_ty_8::IF_LINK_MODE_TESTING;
+pub const NFPROTO_UNSPEC: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_UNSPEC;
+pub const NFPROTO_INET: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_INET;
+pub const NFPROTO_IPV4: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_IPV4;
+pub const NFPROTO_ARP: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_ARP;
+pub const NFPROTO_NETDEV: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_NETDEV;
+pub const NFPROTO_BRIDGE: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_BRIDGE;
+pub const NFPROTO_IPV6: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_IPV6;
+pub const NFPROTO_DECNET: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_DECNET;
+pub const NFPROTO_NUMPROTO: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_NUMPROTO;
#[repr(u32)]
#[non_exhaustive]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
@@ -1386,6 +1793,121 @@ TCP_NLA_EDT = 25,
TCP_NLA_TTL = 26,
TCP_NLA_REHASH = 27,
}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum net_device_flags {
+IFF_UP = 1,
+IFF_BROADCAST = 2,
+IFF_DEBUG = 4,
+IFF_LOOPBACK = 8,
+IFF_POINTOPOINT = 16,
+IFF_NOTRAILERS = 32,
+IFF_RUNNING = 64,
+IFF_NOARP = 128,
+IFF_PROMISC = 256,
+IFF_ALLMULTI = 512,
+IFF_MASTER = 1024,
+IFF_SLAVE = 2048,
+IFF_MULTICAST = 4096,
+IFF_PORTSEL = 8192,
+IFF_AUTOMEDIA = 16384,
+IFF_DYNAMIC = 32768,
+IFF_LOWER_UP = 65536,
+IFF_DORMANT = 131072,
+IFF_ECHO = 262144,
+}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum _bindgen_ty_7 {
+IF_OPER_UNKNOWN = 0,
+IF_OPER_NOTPRESENT = 1,
+IF_OPER_DOWN = 2,
+IF_OPER_LOWERLAYERDOWN = 3,
+IF_OPER_TESTING = 4,
+IF_OPER_DORMANT = 5,
+IF_OPER_UP = 6,
+}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum _bindgen_ty_8 {
+IF_LINK_MODE_DEFAULT = 0,
+IF_LINK_MODE_DORMANT = 1,
+IF_LINK_MODE_TESTING = 2,
+}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum nf_inet_hooks {
+NF_INET_PRE_ROUTING = 0,
+NF_INET_LOCAL_IN = 1,
+NF_INET_FORWARD = 2,
+NF_INET_LOCAL_OUT = 3,
+NF_INET_POST_ROUTING = 4,
+NF_INET_NUMHOOKS = 5,
+}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum nf_dev_hooks {
+NF_NETDEV_INGRESS = 0,
+NF_NETDEV_EGRESS = 1,
+NF_NETDEV_NUMHOOKS = 2,
+}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum _bindgen_ty_9 {
+NFPROTO_UNSPEC = 0,
+NFPROTO_INET = 1,
+NFPROTO_IPV4 = 2,
+NFPROTO_ARP = 3,
+NFPROTO_NETDEV = 5,
+NFPROTO_BRIDGE = 7,
+NFPROTO_IPV6 = 10,
+NFPROTO_DECNET = 12,
+NFPROTO_NUMPROTO = 13,
+}
+#[repr(i32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum nf_ip6_hook_priorities {
+NF_IP6_PRI_FIRST = -2147483648,
+NF_IP6_PRI_RAW_BEFORE_DEFRAG = -450,
+NF_IP6_PRI_CONNTRACK_DEFRAG = -400,
+NF_IP6_PRI_RAW = -300,
+NF_IP6_PRI_SELINUX_FIRST = -225,
+NF_IP6_PRI_CONNTRACK = -200,
+NF_IP6_PRI_MANGLE = -150,
+NF_IP6_PRI_NAT_DST = -100,
+NF_IP6_PRI_FILTER = 0,
+NF_IP6_PRI_SECURITY = 50,
+NF_IP6_PRI_NAT_SRC = 100,
+NF_IP6_PRI_SELINUX_LAST = 225,
+NF_IP6_PRI_CONNTRACK_HELPER = 300,
+NF_IP6_PRI_LAST = 2147483647,
+}
+#[repr(i32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum nf_ip_hook_priorities {
+NF_IP_PRI_FIRST = -2147483648,
+NF_IP_PRI_RAW_BEFORE_DEFRAG = -450,
+NF_IP_PRI_CONNTRACK_DEFRAG = -400,
+NF_IP_PRI_RAW = -300,
+NF_IP_PRI_SELINUX_FIRST = -225,
+NF_IP_PRI_CONNTRACK = -200,
+NF_IP_PRI_MANGLE = -150,
+NF_IP_PRI_NAT_DST = -100,
+NF_IP_PRI_FILTER = 0,
+NF_IP_PRI_SECURITY = 50,
+NF_IP_PRI_NAT_SRC = 100,
+NF_IP_PRI_SELINUX_LAST = 225,
+NF_IP_PRI_CONNTRACK_HELPER = 300,
+NF_IP_PRI_CONNTRACK_CONFIRM = 2147483647,
+}
#[repr(C)]
#[derive(Copy, Clone)]
pub union __kernel_sockaddr_storage__bindgen_ty_1 {
@@ -1417,6 +1939,69 @@ pub union tcp_word_hdr {
pub hdr: tcphdr,
pub words: [__be32; 5usize],
}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union if_settings__bindgen_ty_1 {
+pub raw_hdlc: *mut raw_hdlc_proto,
+pub cisco: *mut cisco_proto,
+pub fr: *mut fr_proto,
+pub fr_pvc: *mut fr_proto_pvc,
+pub fr_pvc_info: *mut fr_proto_pvc_info,
+pub x25: *mut x25_hdlc_proto,
+pub sync: *mut sync_serial_settings,
+pub te1: *mut te1_settings,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union ifreq__bindgen_ty_1 {
+pub ifrn_name: [crate::ctypes::c_char; 16usize],
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union ifreq__bindgen_ty_2 {
+pub ifru_addr: sockaddr,
+pub ifru_dstaddr: sockaddr,
+pub ifru_broadaddr: sockaddr,
+pub ifru_netmask: sockaddr,
+pub ifru_hwaddr: sockaddr,
+pub ifru_flags: crate::ctypes::c_short,
+pub ifru_ivalue: crate::ctypes::c_int,
+pub ifru_mtu: crate::ctypes::c_int,
+pub ifru_map: ifmap,
+pub ifru_slave: [crate::ctypes::c_char; 16usize],
+pub ifru_newname: [crate::ctypes::c_char; 16usize],
+pub ifru_data: *mut crate::ctypes::c_void,
+pub ifru_settings: if_settings,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union ifconf__bindgen_ty_1 {
+pub ifcu_buf: *mut crate::ctypes::c_char,
+pub ifcu_req: *mut ifreq,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union nf_inet_addr {
+pub all: [__u32; 4usize],
+pub ip: __be32,
+pub ip6: [__be32; 4usize],
+pub in_: in_addr,
+pub in6: in6_addr,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union xt_entry_match__bindgen_ty_1 {
+pub user: xt_entry_match__bindgen_ty_1__bindgen_ty_1,
+pub kernel: xt_entry_match__bindgen_ty_1__bindgen_ty_2,
+pub match_size: __u16,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union xt_entry_target__bindgen_ty_1 {
+pub user: xt_entry_target__bindgen_ty_1__bindgen_ty_1,
+pub kernel: xt_entry_target__bindgen_ty_1__bindgen_ty_2,
+pub target_size: __u16,
+}
impl<Storage> __BindgenBitfieldUnit<Storage> {
#[inline]
pub const fn new(storage: Storage) -> Self {
@@ -1842,3 +2427,9 @@ tcpi_fastopen_client_fail as u64
__bindgen_bitfield_unit
}
}
+impl nf_inet_hooks {
+pub const NF_INET_INGRESS: nf_inet_hooks = nf_inet_hooks::NF_INET_NUMHOOKS;
+}
+impl nf_ip_hook_priorities {
+pub const NF_IP_PRI_LAST: nf_ip_hook_priorities = nf_ip_hook_priorities::NF_IP_PRI_CONNTRACK_CONFIRM;
+}
diff --git a/vendor/linux-raw-sys/src/arm/general.rs b/vendor/linux-raw-sys/src/arm/general.rs
index 3d282a09a..11cc8a0b8 100644
--- a/vendor/linux-raw-sys/src/arm/general.rs
+++ b/vendor/linux-raw-sys/src/arm/general.rs
@@ -1601,6 +1601,19 @@ pub const POLLRDHUP: u32 = 8192;
pub const GRND_NONBLOCK: u32 = 1;
pub const GRND_RANDOM: u32 = 2;
pub const GRND_INSECURE: u32 = 4;
+pub const LINUX_REBOOT_MAGIC1: u32 = 4276215469;
+pub const LINUX_REBOOT_MAGIC2: u32 = 672274793;
+pub const LINUX_REBOOT_MAGIC2A: u32 = 85072278;
+pub const LINUX_REBOOT_MAGIC2B: u32 = 369367448;
+pub const LINUX_REBOOT_MAGIC2C: u32 = 537993216;
+pub const LINUX_REBOOT_CMD_RESTART: u32 = 19088743;
+pub const LINUX_REBOOT_CMD_HALT: u32 = 3454992675;
+pub const LINUX_REBOOT_CMD_CAD_ON: u32 = 2309737967;
+pub const LINUX_REBOOT_CMD_CAD_OFF: u32 = 0;
+pub const LINUX_REBOOT_CMD_POWER_OFF: u32 = 1126301404;
+pub const LINUX_REBOOT_CMD_RESTART2: u32 = 2712847316;
+pub const LINUX_REBOOT_CMD_SW_SUSPEND: u32 = 3489725666;
+pub const LINUX_REBOOT_CMD_KEXEC: u32 = 1163412803;
pub const ITIMER_REAL: u32 = 0;
pub const ITIMER_VIRTUAL: u32 = 1;
pub const ITIMER_PROF: u32 = 2;
diff --git a/vendor/linux-raw-sys/src/arm/net.rs b/vendor/linux-raw-sys/src/arm/net.rs
index 86228098f..77c92c318 100644
--- a/vendor/linux-raw-sys/src/arm/net.rs
+++ b/vendor/linux-raw-sys/src/arm/net.rs
@@ -476,6 +476,255 @@ pub __storage: __kernel_sockaddr_storage,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
+pub struct sync_serial_settings {
+pub clock_rate: crate::ctypes::c_uint,
+pub clock_type: crate::ctypes::c_uint,
+pub loopback: crate::ctypes::c_ushort,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct te1_settings {
+pub clock_rate: crate::ctypes::c_uint,
+pub clock_type: crate::ctypes::c_uint,
+pub loopback: crate::ctypes::c_ushort,
+pub slot_map: crate::ctypes::c_uint,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct raw_hdlc_proto {
+pub encoding: crate::ctypes::c_ushort,
+pub parity: crate::ctypes::c_ushort,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct fr_proto {
+pub t391: crate::ctypes::c_uint,
+pub t392: crate::ctypes::c_uint,
+pub n391: crate::ctypes::c_uint,
+pub n392: crate::ctypes::c_uint,
+pub n393: crate::ctypes::c_uint,
+pub lmi: crate::ctypes::c_ushort,
+pub dce: crate::ctypes::c_ushort,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct fr_proto_pvc {
+pub dlci: crate::ctypes::c_uint,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct fr_proto_pvc_info {
+pub dlci: crate::ctypes::c_uint,
+pub master: [crate::ctypes::c_char; 16usize],
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct cisco_proto {
+pub interval: crate::ctypes::c_uint,
+pub timeout: crate::ctypes::c_uint,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct x25_hdlc_proto {
+pub dce: crate::ctypes::c_ushort,
+pub modulo: crate::ctypes::c_uint,
+pub window: crate::ctypes::c_uint,
+pub t1: crate::ctypes::c_uint,
+pub t2: crate::ctypes::c_uint,
+pub n2: crate::ctypes::c_uint,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct ifmap {
+pub mem_start: crate::ctypes::c_ulong,
+pub mem_end: crate::ctypes::c_ulong,
+pub base_addr: crate::ctypes::c_ushort,
+pub irq: crate::ctypes::c_uchar,
+pub dma: crate::ctypes::c_uchar,
+pub port: crate::ctypes::c_uchar,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub struct if_settings {
+pub type_: crate::ctypes::c_uint,
+pub size: crate::ctypes::c_uint,
+pub ifs_ifsu: if_settings__bindgen_ty_1,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub struct ifreq {
+pub ifr_ifrn: ifreq__bindgen_ty_1,
+pub ifr_ifru: ifreq__bindgen_ty_2,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub struct ifconf {
+pub ifc_len: crate::ctypes::c_int,
+pub ifc_ifcu: ifconf__bindgen_ty_1,
+}
+#[repr(C)]
+pub struct xt_entry_match {
+pub u: xt_entry_match__bindgen_ty_1,
+pub data: __IncompleteArrayField<crate::ctypes::c_uchar>,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_entry_match__bindgen_ty_1__bindgen_ty_1 {
+pub match_size: __u16,
+pub name: [crate::ctypes::c_char; 29usize],
+pub revision: __u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_entry_match__bindgen_ty_1__bindgen_ty_2 {
+pub match_size: __u16,
+pub match_: *mut xt_match,
+}
+#[repr(C)]
+pub struct xt_entry_target {
+pub u: xt_entry_target__bindgen_ty_1,
+pub data: __IncompleteArrayField<crate::ctypes::c_uchar>,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_entry_target__bindgen_ty_1__bindgen_ty_1 {
+pub target_size: __u16,
+pub name: [crate::ctypes::c_char; 29usize],
+pub revision: __u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_entry_target__bindgen_ty_1__bindgen_ty_2 {
+pub target_size: __u16,
+pub target: *mut xt_target,
+}
+#[repr(C)]
+pub struct xt_standard_target {
+pub target: xt_entry_target,
+pub verdict: crate::ctypes::c_int,
+}
+#[repr(C)]
+pub struct xt_error_target {
+pub target: xt_entry_target,
+pub errorname: [crate::ctypes::c_char; 30usize],
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_get_revision {
+pub name: [crate::ctypes::c_char; 29usize],
+pub revision: __u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct _xt_align {
+pub u8_: __u8,
+pub u16_: __u16,
+pub u32_: __u32,
+pub u64_: __u64,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_counters {
+pub pcnt: __u64,
+pub bcnt: __u64,
+}
+#[repr(C)]
+#[derive(Debug)]
+pub struct xt_counters_info {
+pub name: [crate::ctypes::c_char; 32usize],
+pub num_counters: crate::ctypes::c_uint,
+pub counters: __IncompleteArrayField<xt_counters>,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_tcp {
+pub spts: [__u16; 2usize],
+pub dpts: [__u16; 2usize],
+pub option: __u8,
+pub flg_mask: __u8,
+pub flg_cmp: __u8,
+pub invflags: __u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_udp {
+pub spts: [__u16; 2usize],
+pub dpts: [__u16; 2usize],
+pub invflags: __u8,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub struct ip6t_ip6 {
+pub src: in6_addr,
+pub dst: in6_addr,
+pub smsk: in6_addr,
+pub dmsk: in6_addr,
+pub iniface: [crate::ctypes::c_char; 16usize],
+pub outiface: [crate::ctypes::c_char; 16usize],
+pub iniface_mask: [crate::ctypes::c_uchar; 16usize],
+pub outiface_mask: [crate::ctypes::c_uchar; 16usize],
+pub proto: __u16,
+pub tos: __u8,
+pub flags: __u8,
+pub invflags: __u8,
+}
+#[repr(C)]
+pub struct ip6t_entry {
+pub ipv6: ip6t_ip6,
+pub nfcache: crate::ctypes::c_uint,
+pub target_offset: __u16,
+pub next_offset: __u16,
+pub comefrom: crate::ctypes::c_uint,
+pub counters: xt_counters,
+pub elems: __IncompleteArrayField<crate::ctypes::c_uchar>,
+}
+#[repr(C)]
+pub struct ip6t_standard {
+pub entry: ip6t_entry,
+pub target: xt_standard_target,
+}
+#[repr(C)]
+pub struct ip6t_error {
+pub entry: ip6t_entry,
+pub target: xt_error_target,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct ip6t_icmp {
+pub type_: __u8,
+pub code: [__u8; 2usize],
+pub invflags: __u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct ip6t_getinfo {
+pub name: [crate::ctypes::c_char; 32usize],
+pub valid_hooks: crate::ctypes::c_uint,
+pub hook_entry: [crate::ctypes::c_uint; 5usize],
+pub underflow: [crate::ctypes::c_uint; 5usize],
+pub num_entries: crate::ctypes::c_uint,
+pub size: crate::ctypes::c_uint,
+}
+#[repr(C)]
+pub struct ip6t_replace {
+pub name: [crate::ctypes::c_char; 32usize],
+pub valid_hooks: crate::ctypes::c_uint,
+pub num_entries: crate::ctypes::c_uint,
+pub size: crate::ctypes::c_uint,
+pub hook_entry: [crate::ctypes::c_uint; 5usize],
+pub underflow: [crate::ctypes::c_uint; 5usize],
+pub num_counters: crate::ctypes::c_uint,
+pub counters: *mut xt_counters,
+pub entries: __IncompleteArrayField<ip6t_entry>,
+}
+#[repr(C)]
+pub struct ip6t_get_entries {
+pub name: [crate::ctypes::c_char; 32usize],
+pub size: crate::ctypes::c_uint,
+pub entrytable: __IncompleteArrayField<ip6t_entry>,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
pub struct linger {
pub l_onoff: crate::ctypes::c_int,
pub l_linger: crate::ctypes::c_int,
@@ -513,6 +762,16 @@ pub msg_len: crate::ctypes::c_uint,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
+pub struct xt_match {
+pub _address: u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_target {
+pub _address: u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
pub struct iovec {
pub _address: u8,
}
@@ -927,6 +1186,135 @@ pub const TCP_MD5SIG_FLAG_PREFIX: u32 = 1;
pub const TCP_MD5SIG_FLAG_IFINDEX: u32 = 2;
pub const TCP_RECEIVE_ZEROCOPY_FLAG_TLB_CLEAN_HINT: u32 = 1;
pub const UNIX_PATH_MAX: u32 = 108;
+pub const IFNAMSIZ: u32 = 16;
+pub const IFALIASZ: u32 = 256;
+pub const ALTIFNAMSIZ: u32 = 128;
+pub const GENERIC_HDLC_VERSION: u32 = 4;
+pub const CLOCK_DEFAULT: u32 = 0;
+pub const CLOCK_EXT: u32 = 1;
+pub const CLOCK_INT: u32 = 2;
+pub const CLOCK_TXINT: u32 = 3;
+pub const CLOCK_TXFROMRX: u32 = 4;
+pub const ENCODING_DEFAULT: u32 = 0;
+pub const ENCODING_NRZ: u32 = 1;
+pub const ENCODING_NRZI: u32 = 2;
+pub const ENCODING_FM_MARK: u32 = 3;
+pub const ENCODING_FM_SPACE: u32 = 4;
+pub const ENCODING_MANCHESTER: u32 = 5;
+pub const PARITY_DEFAULT: u32 = 0;
+pub const PARITY_NONE: u32 = 1;
+pub const PARITY_CRC16_PR0: u32 = 2;
+pub const PARITY_CRC16_PR1: u32 = 3;
+pub const PARITY_CRC16_PR0_CCITT: u32 = 4;
+pub const PARITY_CRC16_PR1_CCITT: u32 = 5;
+pub const PARITY_CRC32_PR0_CCITT: u32 = 6;
+pub const PARITY_CRC32_PR1_CCITT: u32 = 7;
+pub const LMI_DEFAULT: u32 = 0;
+pub const LMI_NONE: u32 = 1;
+pub const LMI_ANSI: u32 = 2;
+pub const LMI_CCITT: u32 = 3;
+pub const LMI_CISCO: u32 = 4;
+pub const IF_GET_IFACE: u32 = 1;
+pub const IF_GET_PROTO: u32 = 2;
+pub const IF_IFACE_V35: u32 = 4096;
+pub const IF_IFACE_V24: u32 = 4097;
+pub const IF_IFACE_X21: u32 = 4098;
+pub const IF_IFACE_T1: u32 = 4099;
+pub const IF_IFACE_E1: u32 = 4100;
+pub const IF_IFACE_SYNC_SERIAL: u32 = 4101;
+pub const IF_IFACE_X21D: u32 = 4102;
+pub const IF_PROTO_HDLC: u32 = 8192;
+pub const IF_PROTO_PPP: u32 = 8193;
+pub const IF_PROTO_CISCO: u32 = 8194;
+pub const IF_PROTO_FR: u32 = 8195;
+pub const IF_PROTO_FR_ADD_PVC: u32 = 8196;
+pub const IF_PROTO_FR_DEL_PVC: u32 = 8197;
+pub const IF_PROTO_X25: u32 = 8198;
+pub const IF_PROTO_HDLC_ETH: u32 = 8199;
+pub const IF_PROTO_FR_ADD_ETH_PVC: u32 = 8200;
+pub const IF_PROTO_FR_DEL_ETH_PVC: u32 = 8201;
+pub const IF_PROTO_FR_PVC: u32 = 8202;
+pub const IF_PROTO_FR_ETH_PVC: u32 = 8203;
+pub const IF_PROTO_RAW: u32 = 8204;
+pub const IFHWADDRLEN: u32 = 6;
+pub const NF_DROP: u32 = 0;
+pub const NF_ACCEPT: u32 = 1;
+pub const NF_STOLEN: u32 = 2;
+pub const NF_QUEUE: u32 = 3;
+pub const NF_REPEAT: u32 = 4;
+pub const NF_STOP: u32 = 5;
+pub const NF_MAX_VERDICT: u32 = 5;
+pub const NF_VERDICT_MASK: u32 = 255;
+pub const NF_VERDICT_FLAG_QUEUE_BYPASS: u32 = 32768;
+pub const NF_VERDICT_QMASK: u32 = 4294901760;
+pub const NF_VERDICT_QBITS: u32 = 16;
+pub const NF_VERDICT_BITS: u32 = 16;
+pub const NF_IP6_PRE_ROUTING: u32 = 0;
+pub const NF_IP6_LOCAL_IN: u32 = 1;
+pub const NF_IP6_FORWARD: u32 = 2;
+pub const NF_IP6_LOCAL_OUT: u32 = 3;
+pub const NF_IP6_POST_ROUTING: u32 = 4;
+pub const NF_IP6_NUMHOOKS: u32 = 5;
+pub const XT_FUNCTION_MAXNAMELEN: u32 = 30;
+pub const XT_EXTENSION_MAXNAMELEN: u32 = 29;
+pub const XT_TABLE_MAXNAMELEN: u32 = 32;
+pub const XT_CONTINUE: u32 = 4294967295;
+pub const XT_RETURN: i32 = -5;
+pub const XT_STANDARD_TARGET: &[u8; 1] = b"\0";
+pub const XT_ERROR_TARGET: &[u8; 6] = b"ERROR\0";
+pub const XT_INV_PROTO: u32 = 64;
+pub const IP6T_FUNCTION_MAXNAMELEN: u32 = 30;
+pub const IP6T_TABLE_MAXNAMELEN: u32 = 32;
+pub const IP6T_CONTINUE: u32 = 4294967295;
+pub const IP6T_RETURN: i32 = -5;
+pub const XT_TCP_INV_SRCPT: u32 = 1;
+pub const XT_TCP_INV_DSTPT: u32 = 2;
+pub const XT_TCP_INV_FLAGS: u32 = 4;
+pub const XT_TCP_INV_OPTION: u32 = 8;
+pub const XT_TCP_INV_MASK: u32 = 15;
+pub const XT_UDP_INV_SRCPT: u32 = 1;
+pub const XT_UDP_INV_DSTPT: u32 = 2;
+pub const XT_UDP_INV_MASK: u32 = 3;
+pub const IP6T_TCP_INV_SRCPT: u32 = 1;
+pub const IP6T_TCP_INV_DSTPT: u32 = 2;
+pub const IP6T_TCP_INV_FLAGS: u32 = 4;
+pub const IP6T_TCP_INV_OPTION: u32 = 8;
+pub const IP6T_TCP_INV_MASK: u32 = 15;
+pub const IP6T_UDP_INV_SRCPT: u32 = 1;
+pub const IP6T_UDP_INV_DSTPT: u32 = 2;
+pub const IP6T_UDP_INV_MASK: u32 = 3;
+pub const IP6T_STANDARD_TARGET: &[u8; 1] = b"\0";
+pub const IP6T_ERROR_TARGET: &[u8; 6] = b"ERROR\0";
+pub const IP6T_F_PROTO: u32 = 1;
+pub const IP6T_F_TOS: u32 = 2;
+pub const IP6T_F_GOTO: u32 = 4;
+pub const IP6T_F_MASK: u32 = 7;
+pub const IP6T_INV_VIA_IN: u32 = 1;
+pub const IP6T_INV_VIA_OUT: u32 = 2;
+pub const IP6T_INV_TOS: u32 = 4;
+pub const IP6T_INV_SRCIP: u32 = 8;
+pub const IP6T_INV_DSTIP: u32 = 16;
+pub const IP6T_INV_FRAG: u32 = 32;
+pub const IP6T_INV_PROTO: u32 = 64;
+pub const IP6T_INV_MASK: u32 = 127;
+pub const IP6T_BASE_CTL: u32 = 64;
+pub const IP6T_SO_SET_REPLACE: u32 = 64;
+pub const IP6T_SO_SET_ADD_COUNTERS: u32 = 65;
+pub const IP6T_SO_SET_MAX: u32 = 65;
+pub const IP6T_SO_GET_INFO: u32 = 64;
+pub const IP6T_SO_GET_ENTRIES: u32 = 65;
+pub const IP6T_SO_GET_REVISION_MATCH: u32 = 68;
+pub const IP6T_SO_GET_REVISION_TARGET: u32 = 69;
+pub const IP6T_SO_GET_MAX: u32 = 69;
+pub const IP6T_SO_ORIGINAL_DST: u32 = 80;
+pub const IP6T_ICMP_INV: u32 = 1;
+pub const NF_IP_PRE_ROUTING: u32 = 0;
+pub const NF_IP_LOCAL_IN: u32 = 1;
+pub const NF_IP_FORWARD: u32 = 2;
+pub const NF_IP_LOCAL_OUT: u32 = 3;
+pub const NF_IP_POST_ROUTING: u32 = 4;
+pub const NF_IP_NUMHOOKS: u32 = 5;
+pub const SO_ORIGINAL_DST: u32 = 80;
pub const SHUT_RD: u32 = 0;
pub const SHUT_WR: u32 = 1;
pub const SHUT_RDWR: u32 = 2;
@@ -1155,6 +1543,25 @@ pub const TCP_NLA_BYTES_NOTSENT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_NO
pub const TCP_NLA_EDT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_EDT;
pub const TCP_NLA_TTL: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TTL;
pub const TCP_NLA_REHASH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REHASH;
+pub const IF_OPER_UNKNOWN: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_UNKNOWN;
+pub const IF_OPER_NOTPRESENT: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_NOTPRESENT;
+pub const IF_OPER_DOWN: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_DOWN;
+pub const IF_OPER_LOWERLAYERDOWN: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_LOWERLAYERDOWN;
+pub const IF_OPER_TESTING: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_TESTING;
+pub const IF_OPER_DORMANT: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_DORMANT;
+pub const IF_OPER_UP: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_UP;
+pub const IF_LINK_MODE_DEFAULT: _bindgen_ty_8 = _bindgen_ty_8::IF_LINK_MODE_DEFAULT;
+pub const IF_LINK_MODE_DORMANT: _bindgen_ty_8 = _bindgen_ty_8::IF_LINK_MODE_DORMANT;
+pub const IF_LINK_MODE_TESTING: _bindgen_ty_8 = _bindgen_ty_8::IF_LINK_MODE_TESTING;
+pub const NFPROTO_UNSPEC: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_UNSPEC;
+pub const NFPROTO_INET: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_INET;
+pub const NFPROTO_IPV4: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_IPV4;
+pub const NFPROTO_ARP: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_ARP;
+pub const NFPROTO_NETDEV: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_NETDEV;
+pub const NFPROTO_BRIDGE: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_BRIDGE;
+pub const NFPROTO_IPV6: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_IPV6;
+pub const NFPROTO_DECNET: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_DECNET;
+pub const NFPROTO_NUMPROTO: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_NUMPROTO;
#[repr(u32)]
#[non_exhaustive]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
@@ -1378,6 +1785,121 @@ TCP_NLA_EDT = 25,
TCP_NLA_TTL = 26,
TCP_NLA_REHASH = 27,
}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum net_device_flags {
+IFF_UP = 1,
+IFF_BROADCAST = 2,
+IFF_DEBUG = 4,
+IFF_LOOPBACK = 8,
+IFF_POINTOPOINT = 16,
+IFF_NOTRAILERS = 32,
+IFF_RUNNING = 64,
+IFF_NOARP = 128,
+IFF_PROMISC = 256,
+IFF_ALLMULTI = 512,
+IFF_MASTER = 1024,
+IFF_SLAVE = 2048,
+IFF_MULTICAST = 4096,
+IFF_PORTSEL = 8192,
+IFF_AUTOMEDIA = 16384,
+IFF_DYNAMIC = 32768,
+IFF_LOWER_UP = 65536,
+IFF_DORMANT = 131072,
+IFF_ECHO = 262144,
+}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum _bindgen_ty_7 {
+IF_OPER_UNKNOWN = 0,
+IF_OPER_NOTPRESENT = 1,
+IF_OPER_DOWN = 2,
+IF_OPER_LOWERLAYERDOWN = 3,
+IF_OPER_TESTING = 4,
+IF_OPER_DORMANT = 5,
+IF_OPER_UP = 6,
+}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum _bindgen_ty_8 {
+IF_LINK_MODE_DEFAULT = 0,
+IF_LINK_MODE_DORMANT = 1,
+IF_LINK_MODE_TESTING = 2,
+}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum nf_inet_hooks {
+NF_INET_PRE_ROUTING = 0,
+NF_INET_LOCAL_IN = 1,
+NF_INET_FORWARD = 2,
+NF_INET_LOCAL_OUT = 3,
+NF_INET_POST_ROUTING = 4,
+NF_INET_NUMHOOKS = 5,
+}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum nf_dev_hooks {
+NF_NETDEV_INGRESS = 0,
+NF_NETDEV_EGRESS = 1,
+NF_NETDEV_NUMHOOKS = 2,
+}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum _bindgen_ty_9 {
+NFPROTO_UNSPEC = 0,
+NFPROTO_INET = 1,
+NFPROTO_IPV4 = 2,
+NFPROTO_ARP = 3,
+NFPROTO_NETDEV = 5,
+NFPROTO_BRIDGE = 7,
+NFPROTO_IPV6 = 10,
+NFPROTO_DECNET = 12,
+NFPROTO_NUMPROTO = 13,
+}
+#[repr(i32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum nf_ip6_hook_priorities {
+NF_IP6_PRI_FIRST = -2147483648,
+NF_IP6_PRI_RAW_BEFORE_DEFRAG = -450,
+NF_IP6_PRI_CONNTRACK_DEFRAG = -400,
+NF_IP6_PRI_RAW = -300,
+NF_IP6_PRI_SELINUX_FIRST = -225,
+NF_IP6_PRI_CONNTRACK = -200,
+NF_IP6_PRI_MANGLE = -150,
+NF_IP6_PRI_NAT_DST = -100,
+NF_IP6_PRI_FILTER = 0,
+NF_IP6_PRI_SECURITY = 50,
+NF_IP6_PRI_NAT_SRC = 100,
+NF_IP6_PRI_SELINUX_LAST = 225,
+NF_IP6_PRI_CONNTRACK_HELPER = 300,
+NF_IP6_PRI_LAST = 2147483647,
+}
+#[repr(i32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum nf_ip_hook_priorities {
+NF_IP_PRI_FIRST = -2147483648,
+NF_IP_PRI_RAW_BEFORE_DEFRAG = -450,
+NF_IP_PRI_CONNTRACK_DEFRAG = -400,
+NF_IP_PRI_RAW = -300,
+NF_IP_PRI_SELINUX_FIRST = -225,
+NF_IP_PRI_CONNTRACK = -200,
+NF_IP_PRI_MANGLE = -150,
+NF_IP_PRI_NAT_DST = -100,
+NF_IP_PRI_FILTER = 0,
+NF_IP_PRI_SECURITY = 50,
+NF_IP_PRI_NAT_SRC = 100,
+NF_IP_PRI_SELINUX_LAST = 225,
+NF_IP_PRI_CONNTRACK_HELPER = 300,
+NF_IP_PRI_CONNTRACK_CONFIRM = 2147483647,
+}
#[repr(C)]
#[derive(Copy, Clone)]
pub union __kernel_sockaddr_storage__bindgen_ty_1 {
@@ -1409,6 +1931,69 @@ pub union tcp_word_hdr {
pub hdr: tcphdr,
pub words: [__be32; 5usize],
}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union if_settings__bindgen_ty_1 {
+pub raw_hdlc: *mut raw_hdlc_proto,
+pub cisco: *mut cisco_proto,
+pub fr: *mut fr_proto,
+pub fr_pvc: *mut fr_proto_pvc,
+pub fr_pvc_info: *mut fr_proto_pvc_info,
+pub x25: *mut x25_hdlc_proto,
+pub sync: *mut sync_serial_settings,
+pub te1: *mut te1_settings,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union ifreq__bindgen_ty_1 {
+pub ifrn_name: [crate::ctypes::c_char; 16usize],
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union ifreq__bindgen_ty_2 {
+pub ifru_addr: sockaddr,
+pub ifru_dstaddr: sockaddr,
+pub ifru_broadaddr: sockaddr,
+pub ifru_netmask: sockaddr,
+pub ifru_hwaddr: sockaddr,
+pub ifru_flags: crate::ctypes::c_short,
+pub ifru_ivalue: crate::ctypes::c_int,
+pub ifru_mtu: crate::ctypes::c_int,
+pub ifru_map: ifmap,
+pub ifru_slave: [crate::ctypes::c_char; 16usize],
+pub ifru_newname: [crate::ctypes::c_char; 16usize],
+pub ifru_data: *mut crate::ctypes::c_void,
+pub ifru_settings: if_settings,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union ifconf__bindgen_ty_1 {
+pub ifcu_buf: *mut crate::ctypes::c_char,
+pub ifcu_req: *mut ifreq,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union nf_inet_addr {
+pub all: [__u32; 4usize],
+pub ip: __be32,
+pub ip6: [__be32; 4usize],
+pub in_: in_addr,
+pub in6: in6_addr,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union xt_entry_match__bindgen_ty_1 {
+pub user: xt_entry_match__bindgen_ty_1__bindgen_ty_1,
+pub kernel: xt_entry_match__bindgen_ty_1__bindgen_ty_2,
+pub match_size: __u16,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union xt_entry_target__bindgen_ty_1 {
+pub user: xt_entry_target__bindgen_ty_1__bindgen_ty_1,
+pub kernel: xt_entry_target__bindgen_ty_1__bindgen_ty_2,
+pub target_size: __u16,
+}
impl<Storage> __BindgenBitfieldUnit<Storage> {
#[inline]
pub const fn new(storage: Storage) -> Self {
@@ -1834,3 +2419,9 @@ tcpi_fastopen_client_fail as u64
__bindgen_bitfield_unit
}
}
+impl nf_inet_hooks {
+pub const NF_INET_INGRESS: nf_inet_hooks = nf_inet_hooks::NF_INET_NUMHOOKS;
+}
+impl nf_ip_hook_priorities {
+pub const NF_IP_PRI_LAST: nf_ip_hook_priorities = nf_ip_hook_priorities::NF_IP_PRI_CONNTRACK_CONFIRM;
+}
diff --git a/vendor/linux-raw-sys/src/csky/general.rs b/vendor/linux-raw-sys/src/csky/general.rs
index 6a562ce7e..17c33af6c 100644
--- a/vendor/linux-raw-sys/src/csky/general.rs
+++ b/vendor/linux-raw-sys/src/csky/general.rs
@@ -1592,6 +1592,19 @@ pub const POLLRDHUP: u32 = 8192;
pub const GRND_NONBLOCK: u32 = 1;
pub const GRND_RANDOM: u32 = 2;
pub const GRND_INSECURE: u32 = 4;
+pub const LINUX_REBOOT_MAGIC1: u32 = 4276215469;
+pub const LINUX_REBOOT_MAGIC2: u32 = 672274793;
+pub const LINUX_REBOOT_MAGIC2A: u32 = 85072278;
+pub const LINUX_REBOOT_MAGIC2B: u32 = 369367448;
+pub const LINUX_REBOOT_MAGIC2C: u32 = 537993216;
+pub const LINUX_REBOOT_CMD_RESTART: u32 = 19088743;
+pub const LINUX_REBOOT_CMD_HALT: u32 = 3454992675;
+pub const LINUX_REBOOT_CMD_CAD_ON: u32 = 2309737967;
+pub const LINUX_REBOOT_CMD_CAD_OFF: u32 = 0;
+pub const LINUX_REBOOT_CMD_POWER_OFF: u32 = 1126301404;
+pub const LINUX_REBOOT_CMD_RESTART2: u32 = 2712847316;
+pub const LINUX_REBOOT_CMD_SW_SUSPEND: u32 = 3489725666;
+pub const LINUX_REBOOT_CMD_KEXEC: u32 = 1163412803;
pub const ITIMER_REAL: u32 = 0;
pub const ITIMER_VIRTUAL: u32 = 1;
pub const ITIMER_PROF: u32 = 2;
diff --git a/vendor/linux-raw-sys/src/csky/net.rs b/vendor/linux-raw-sys/src/csky/net.rs
index cfadfa5a2..247e63f0a 100644
--- a/vendor/linux-raw-sys/src/csky/net.rs
+++ b/vendor/linux-raw-sys/src/csky/net.rs
@@ -476,6 +476,255 @@ pub __storage: __kernel_sockaddr_storage,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
+pub struct sync_serial_settings {
+pub clock_rate: crate::ctypes::c_uint,
+pub clock_type: crate::ctypes::c_uint,
+pub loopback: crate::ctypes::c_ushort,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct te1_settings {
+pub clock_rate: crate::ctypes::c_uint,
+pub clock_type: crate::ctypes::c_uint,
+pub loopback: crate::ctypes::c_ushort,
+pub slot_map: crate::ctypes::c_uint,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct raw_hdlc_proto {
+pub encoding: crate::ctypes::c_ushort,
+pub parity: crate::ctypes::c_ushort,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct fr_proto {
+pub t391: crate::ctypes::c_uint,
+pub t392: crate::ctypes::c_uint,
+pub n391: crate::ctypes::c_uint,
+pub n392: crate::ctypes::c_uint,
+pub n393: crate::ctypes::c_uint,
+pub lmi: crate::ctypes::c_ushort,
+pub dce: crate::ctypes::c_ushort,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct fr_proto_pvc {
+pub dlci: crate::ctypes::c_uint,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct fr_proto_pvc_info {
+pub dlci: crate::ctypes::c_uint,
+pub master: [crate::ctypes::c_char; 16usize],
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct cisco_proto {
+pub interval: crate::ctypes::c_uint,
+pub timeout: crate::ctypes::c_uint,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct x25_hdlc_proto {
+pub dce: crate::ctypes::c_ushort,
+pub modulo: crate::ctypes::c_uint,
+pub window: crate::ctypes::c_uint,
+pub t1: crate::ctypes::c_uint,
+pub t2: crate::ctypes::c_uint,
+pub n2: crate::ctypes::c_uint,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct ifmap {
+pub mem_start: crate::ctypes::c_ulong,
+pub mem_end: crate::ctypes::c_ulong,
+pub base_addr: crate::ctypes::c_ushort,
+pub irq: crate::ctypes::c_uchar,
+pub dma: crate::ctypes::c_uchar,
+pub port: crate::ctypes::c_uchar,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub struct if_settings {
+pub type_: crate::ctypes::c_uint,
+pub size: crate::ctypes::c_uint,
+pub ifs_ifsu: if_settings__bindgen_ty_1,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub struct ifreq {
+pub ifr_ifrn: ifreq__bindgen_ty_1,
+pub ifr_ifru: ifreq__bindgen_ty_2,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub struct ifconf {
+pub ifc_len: crate::ctypes::c_int,
+pub ifc_ifcu: ifconf__bindgen_ty_1,
+}
+#[repr(C)]
+pub struct xt_entry_match {
+pub u: xt_entry_match__bindgen_ty_1,
+pub data: __IncompleteArrayField<crate::ctypes::c_uchar>,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_entry_match__bindgen_ty_1__bindgen_ty_1 {
+pub match_size: __u16,
+pub name: [crate::ctypes::c_char; 29usize],
+pub revision: __u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_entry_match__bindgen_ty_1__bindgen_ty_2 {
+pub match_size: __u16,
+pub match_: *mut xt_match,
+}
+#[repr(C)]
+pub struct xt_entry_target {
+pub u: xt_entry_target__bindgen_ty_1,
+pub data: __IncompleteArrayField<crate::ctypes::c_uchar>,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_entry_target__bindgen_ty_1__bindgen_ty_1 {
+pub target_size: __u16,
+pub name: [crate::ctypes::c_char; 29usize],
+pub revision: __u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_entry_target__bindgen_ty_1__bindgen_ty_2 {
+pub target_size: __u16,
+pub target: *mut xt_target,
+}
+#[repr(C)]
+pub struct xt_standard_target {
+pub target: xt_entry_target,
+pub verdict: crate::ctypes::c_int,
+}
+#[repr(C)]
+pub struct xt_error_target {
+pub target: xt_entry_target,
+pub errorname: [crate::ctypes::c_char; 30usize],
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_get_revision {
+pub name: [crate::ctypes::c_char; 29usize],
+pub revision: __u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct _xt_align {
+pub u8_: __u8,
+pub u16_: __u16,
+pub u32_: __u32,
+pub u64_: __u64,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_counters {
+pub pcnt: __u64,
+pub bcnt: __u64,
+}
+#[repr(C)]
+#[derive(Debug)]
+pub struct xt_counters_info {
+pub name: [crate::ctypes::c_char; 32usize],
+pub num_counters: crate::ctypes::c_uint,
+pub counters: __IncompleteArrayField<xt_counters>,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_tcp {
+pub spts: [__u16; 2usize],
+pub dpts: [__u16; 2usize],
+pub option: __u8,
+pub flg_mask: __u8,
+pub flg_cmp: __u8,
+pub invflags: __u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_udp {
+pub spts: [__u16; 2usize],
+pub dpts: [__u16; 2usize],
+pub invflags: __u8,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub struct ip6t_ip6 {
+pub src: in6_addr,
+pub dst: in6_addr,
+pub smsk: in6_addr,
+pub dmsk: in6_addr,
+pub iniface: [crate::ctypes::c_char; 16usize],
+pub outiface: [crate::ctypes::c_char; 16usize],
+pub iniface_mask: [crate::ctypes::c_uchar; 16usize],
+pub outiface_mask: [crate::ctypes::c_uchar; 16usize],
+pub proto: __u16,
+pub tos: __u8,
+pub flags: __u8,
+pub invflags: __u8,
+}
+#[repr(C)]
+pub struct ip6t_entry {
+pub ipv6: ip6t_ip6,
+pub nfcache: crate::ctypes::c_uint,
+pub target_offset: __u16,
+pub next_offset: __u16,
+pub comefrom: crate::ctypes::c_uint,
+pub counters: xt_counters,
+pub elems: __IncompleteArrayField<crate::ctypes::c_uchar>,
+}
+#[repr(C)]
+pub struct ip6t_standard {
+pub entry: ip6t_entry,
+pub target: xt_standard_target,
+}
+#[repr(C)]
+pub struct ip6t_error {
+pub entry: ip6t_entry,
+pub target: xt_error_target,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct ip6t_icmp {
+pub type_: __u8,
+pub code: [__u8; 2usize],
+pub invflags: __u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct ip6t_getinfo {
+pub name: [crate::ctypes::c_char; 32usize],
+pub valid_hooks: crate::ctypes::c_uint,
+pub hook_entry: [crate::ctypes::c_uint; 5usize],
+pub underflow: [crate::ctypes::c_uint; 5usize],
+pub num_entries: crate::ctypes::c_uint,
+pub size: crate::ctypes::c_uint,
+}
+#[repr(C)]
+pub struct ip6t_replace {
+pub name: [crate::ctypes::c_char; 32usize],
+pub valid_hooks: crate::ctypes::c_uint,
+pub num_entries: crate::ctypes::c_uint,
+pub size: crate::ctypes::c_uint,
+pub hook_entry: [crate::ctypes::c_uint; 5usize],
+pub underflow: [crate::ctypes::c_uint; 5usize],
+pub num_counters: crate::ctypes::c_uint,
+pub counters: *mut xt_counters,
+pub entries: __IncompleteArrayField<ip6t_entry>,
+}
+#[repr(C)]
+pub struct ip6t_get_entries {
+pub name: [crate::ctypes::c_char; 32usize],
+pub size: crate::ctypes::c_uint,
+pub entrytable: __IncompleteArrayField<ip6t_entry>,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
pub struct linger {
pub l_onoff: crate::ctypes::c_int,
pub l_linger: crate::ctypes::c_int,
@@ -513,6 +762,16 @@ pub msg_len: crate::ctypes::c_uint,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
+pub struct xt_match {
+pub _address: u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_target {
+pub _address: u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
pub struct iovec {
pub _address: u8,
}
@@ -927,6 +1186,135 @@ pub const TCP_MD5SIG_FLAG_PREFIX: u32 = 1;
pub const TCP_MD5SIG_FLAG_IFINDEX: u32 = 2;
pub const TCP_RECEIVE_ZEROCOPY_FLAG_TLB_CLEAN_HINT: u32 = 1;
pub const UNIX_PATH_MAX: u32 = 108;
+pub const IFNAMSIZ: u32 = 16;
+pub const IFALIASZ: u32 = 256;
+pub const ALTIFNAMSIZ: u32 = 128;
+pub const GENERIC_HDLC_VERSION: u32 = 4;
+pub const CLOCK_DEFAULT: u32 = 0;
+pub const CLOCK_EXT: u32 = 1;
+pub const CLOCK_INT: u32 = 2;
+pub const CLOCK_TXINT: u32 = 3;
+pub const CLOCK_TXFROMRX: u32 = 4;
+pub const ENCODING_DEFAULT: u32 = 0;
+pub const ENCODING_NRZ: u32 = 1;
+pub const ENCODING_NRZI: u32 = 2;
+pub const ENCODING_FM_MARK: u32 = 3;
+pub const ENCODING_FM_SPACE: u32 = 4;
+pub const ENCODING_MANCHESTER: u32 = 5;
+pub const PARITY_DEFAULT: u32 = 0;
+pub const PARITY_NONE: u32 = 1;
+pub const PARITY_CRC16_PR0: u32 = 2;
+pub const PARITY_CRC16_PR1: u32 = 3;
+pub const PARITY_CRC16_PR0_CCITT: u32 = 4;
+pub const PARITY_CRC16_PR1_CCITT: u32 = 5;
+pub const PARITY_CRC32_PR0_CCITT: u32 = 6;
+pub const PARITY_CRC32_PR1_CCITT: u32 = 7;
+pub const LMI_DEFAULT: u32 = 0;
+pub const LMI_NONE: u32 = 1;
+pub const LMI_ANSI: u32 = 2;
+pub const LMI_CCITT: u32 = 3;
+pub const LMI_CISCO: u32 = 4;
+pub const IF_GET_IFACE: u32 = 1;
+pub const IF_GET_PROTO: u32 = 2;
+pub const IF_IFACE_V35: u32 = 4096;
+pub const IF_IFACE_V24: u32 = 4097;
+pub const IF_IFACE_X21: u32 = 4098;
+pub const IF_IFACE_T1: u32 = 4099;
+pub const IF_IFACE_E1: u32 = 4100;
+pub const IF_IFACE_SYNC_SERIAL: u32 = 4101;
+pub const IF_IFACE_X21D: u32 = 4102;
+pub const IF_PROTO_HDLC: u32 = 8192;
+pub const IF_PROTO_PPP: u32 = 8193;
+pub const IF_PROTO_CISCO: u32 = 8194;
+pub const IF_PROTO_FR: u32 = 8195;
+pub const IF_PROTO_FR_ADD_PVC: u32 = 8196;
+pub const IF_PROTO_FR_DEL_PVC: u32 = 8197;
+pub const IF_PROTO_X25: u32 = 8198;
+pub const IF_PROTO_HDLC_ETH: u32 = 8199;
+pub const IF_PROTO_FR_ADD_ETH_PVC: u32 = 8200;
+pub const IF_PROTO_FR_DEL_ETH_PVC: u32 = 8201;
+pub const IF_PROTO_FR_PVC: u32 = 8202;
+pub const IF_PROTO_FR_ETH_PVC: u32 = 8203;
+pub const IF_PROTO_RAW: u32 = 8204;
+pub const IFHWADDRLEN: u32 = 6;
+pub const NF_DROP: u32 = 0;
+pub const NF_ACCEPT: u32 = 1;
+pub const NF_STOLEN: u32 = 2;
+pub const NF_QUEUE: u32 = 3;
+pub const NF_REPEAT: u32 = 4;
+pub const NF_STOP: u32 = 5;
+pub const NF_MAX_VERDICT: u32 = 5;
+pub const NF_VERDICT_MASK: u32 = 255;
+pub const NF_VERDICT_FLAG_QUEUE_BYPASS: u32 = 32768;
+pub const NF_VERDICT_QMASK: u32 = 4294901760;
+pub const NF_VERDICT_QBITS: u32 = 16;
+pub const NF_VERDICT_BITS: u32 = 16;
+pub const NF_IP6_PRE_ROUTING: u32 = 0;
+pub const NF_IP6_LOCAL_IN: u32 = 1;
+pub const NF_IP6_FORWARD: u32 = 2;
+pub const NF_IP6_LOCAL_OUT: u32 = 3;
+pub const NF_IP6_POST_ROUTING: u32 = 4;
+pub const NF_IP6_NUMHOOKS: u32 = 5;
+pub const XT_FUNCTION_MAXNAMELEN: u32 = 30;
+pub const XT_EXTENSION_MAXNAMELEN: u32 = 29;
+pub const XT_TABLE_MAXNAMELEN: u32 = 32;
+pub const XT_CONTINUE: u32 = 4294967295;
+pub const XT_RETURN: i32 = -5;
+pub const XT_STANDARD_TARGET: &[u8; 1] = b"\0";
+pub const XT_ERROR_TARGET: &[u8; 6] = b"ERROR\0";
+pub const XT_INV_PROTO: u32 = 64;
+pub const IP6T_FUNCTION_MAXNAMELEN: u32 = 30;
+pub const IP6T_TABLE_MAXNAMELEN: u32 = 32;
+pub const IP6T_CONTINUE: u32 = 4294967295;
+pub const IP6T_RETURN: i32 = -5;
+pub const XT_TCP_INV_SRCPT: u32 = 1;
+pub const XT_TCP_INV_DSTPT: u32 = 2;
+pub const XT_TCP_INV_FLAGS: u32 = 4;
+pub const XT_TCP_INV_OPTION: u32 = 8;
+pub const XT_TCP_INV_MASK: u32 = 15;
+pub const XT_UDP_INV_SRCPT: u32 = 1;
+pub const XT_UDP_INV_DSTPT: u32 = 2;
+pub const XT_UDP_INV_MASK: u32 = 3;
+pub const IP6T_TCP_INV_SRCPT: u32 = 1;
+pub const IP6T_TCP_INV_DSTPT: u32 = 2;
+pub const IP6T_TCP_INV_FLAGS: u32 = 4;
+pub const IP6T_TCP_INV_OPTION: u32 = 8;
+pub const IP6T_TCP_INV_MASK: u32 = 15;
+pub const IP6T_UDP_INV_SRCPT: u32 = 1;
+pub const IP6T_UDP_INV_DSTPT: u32 = 2;
+pub const IP6T_UDP_INV_MASK: u32 = 3;
+pub const IP6T_STANDARD_TARGET: &[u8; 1] = b"\0";
+pub const IP6T_ERROR_TARGET: &[u8; 6] = b"ERROR\0";
+pub const IP6T_F_PROTO: u32 = 1;
+pub const IP6T_F_TOS: u32 = 2;
+pub const IP6T_F_GOTO: u32 = 4;
+pub const IP6T_F_MASK: u32 = 7;
+pub const IP6T_INV_VIA_IN: u32 = 1;
+pub const IP6T_INV_VIA_OUT: u32 = 2;
+pub const IP6T_INV_TOS: u32 = 4;
+pub const IP6T_INV_SRCIP: u32 = 8;
+pub const IP6T_INV_DSTIP: u32 = 16;
+pub const IP6T_INV_FRAG: u32 = 32;
+pub const IP6T_INV_PROTO: u32 = 64;
+pub const IP6T_INV_MASK: u32 = 127;
+pub const IP6T_BASE_CTL: u32 = 64;
+pub const IP6T_SO_SET_REPLACE: u32 = 64;
+pub const IP6T_SO_SET_ADD_COUNTERS: u32 = 65;
+pub const IP6T_SO_SET_MAX: u32 = 65;
+pub const IP6T_SO_GET_INFO: u32 = 64;
+pub const IP6T_SO_GET_ENTRIES: u32 = 65;
+pub const IP6T_SO_GET_REVISION_MATCH: u32 = 68;
+pub const IP6T_SO_GET_REVISION_TARGET: u32 = 69;
+pub const IP6T_SO_GET_MAX: u32 = 69;
+pub const IP6T_SO_ORIGINAL_DST: u32 = 80;
+pub const IP6T_ICMP_INV: u32 = 1;
+pub const NF_IP_PRE_ROUTING: u32 = 0;
+pub const NF_IP_LOCAL_IN: u32 = 1;
+pub const NF_IP_FORWARD: u32 = 2;
+pub const NF_IP_LOCAL_OUT: u32 = 3;
+pub const NF_IP_POST_ROUTING: u32 = 4;
+pub const NF_IP_NUMHOOKS: u32 = 5;
+pub const SO_ORIGINAL_DST: u32 = 80;
pub const SHUT_RD: u32 = 0;
pub const SHUT_WR: u32 = 1;
pub const SHUT_RDWR: u32 = 2;
@@ -1155,6 +1543,25 @@ pub const TCP_NLA_BYTES_NOTSENT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_NO
pub const TCP_NLA_EDT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_EDT;
pub const TCP_NLA_TTL: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TTL;
pub const TCP_NLA_REHASH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REHASH;
+pub const IF_OPER_UNKNOWN: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_UNKNOWN;
+pub const IF_OPER_NOTPRESENT: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_NOTPRESENT;
+pub const IF_OPER_DOWN: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_DOWN;
+pub const IF_OPER_LOWERLAYERDOWN: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_LOWERLAYERDOWN;
+pub const IF_OPER_TESTING: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_TESTING;
+pub const IF_OPER_DORMANT: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_DORMANT;
+pub const IF_OPER_UP: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_UP;
+pub const IF_LINK_MODE_DEFAULT: _bindgen_ty_8 = _bindgen_ty_8::IF_LINK_MODE_DEFAULT;
+pub const IF_LINK_MODE_DORMANT: _bindgen_ty_8 = _bindgen_ty_8::IF_LINK_MODE_DORMANT;
+pub const IF_LINK_MODE_TESTING: _bindgen_ty_8 = _bindgen_ty_8::IF_LINK_MODE_TESTING;
+pub const NFPROTO_UNSPEC: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_UNSPEC;
+pub const NFPROTO_INET: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_INET;
+pub const NFPROTO_IPV4: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_IPV4;
+pub const NFPROTO_ARP: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_ARP;
+pub const NFPROTO_NETDEV: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_NETDEV;
+pub const NFPROTO_BRIDGE: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_BRIDGE;
+pub const NFPROTO_IPV6: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_IPV6;
+pub const NFPROTO_DECNET: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_DECNET;
+pub const NFPROTO_NUMPROTO: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_NUMPROTO;
#[repr(u32)]
#[non_exhaustive]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
@@ -1378,6 +1785,121 @@ TCP_NLA_EDT = 25,
TCP_NLA_TTL = 26,
TCP_NLA_REHASH = 27,
}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum net_device_flags {
+IFF_UP = 1,
+IFF_BROADCAST = 2,
+IFF_DEBUG = 4,
+IFF_LOOPBACK = 8,
+IFF_POINTOPOINT = 16,
+IFF_NOTRAILERS = 32,
+IFF_RUNNING = 64,
+IFF_NOARP = 128,
+IFF_PROMISC = 256,
+IFF_ALLMULTI = 512,
+IFF_MASTER = 1024,
+IFF_SLAVE = 2048,
+IFF_MULTICAST = 4096,
+IFF_PORTSEL = 8192,
+IFF_AUTOMEDIA = 16384,
+IFF_DYNAMIC = 32768,
+IFF_LOWER_UP = 65536,
+IFF_DORMANT = 131072,
+IFF_ECHO = 262144,
+}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum _bindgen_ty_7 {
+IF_OPER_UNKNOWN = 0,
+IF_OPER_NOTPRESENT = 1,
+IF_OPER_DOWN = 2,
+IF_OPER_LOWERLAYERDOWN = 3,
+IF_OPER_TESTING = 4,
+IF_OPER_DORMANT = 5,
+IF_OPER_UP = 6,
+}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum _bindgen_ty_8 {
+IF_LINK_MODE_DEFAULT = 0,
+IF_LINK_MODE_DORMANT = 1,
+IF_LINK_MODE_TESTING = 2,
+}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum nf_inet_hooks {
+NF_INET_PRE_ROUTING = 0,
+NF_INET_LOCAL_IN = 1,
+NF_INET_FORWARD = 2,
+NF_INET_LOCAL_OUT = 3,
+NF_INET_POST_ROUTING = 4,
+NF_INET_NUMHOOKS = 5,
+}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum nf_dev_hooks {
+NF_NETDEV_INGRESS = 0,
+NF_NETDEV_EGRESS = 1,
+NF_NETDEV_NUMHOOKS = 2,
+}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum _bindgen_ty_9 {
+NFPROTO_UNSPEC = 0,
+NFPROTO_INET = 1,
+NFPROTO_IPV4 = 2,
+NFPROTO_ARP = 3,
+NFPROTO_NETDEV = 5,
+NFPROTO_BRIDGE = 7,
+NFPROTO_IPV6 = 10,
+NFPROTO_DECNET = 12,
+NFPROTO_NUMPROTO = 13,
+}
+#[repr(i32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum nf_ip6_hook_priorities {
+NF_IP6_PRI_FIRST = -2147483648,
+NF_IP6_PRI_RAW_BEFORE_DEFRAG = -450,
+NF_IP6_PRI_CONNTRACK_DEFRAG = -400,
+NF_IP6_PRI_RAW = -300,
+NF_IP6_PRI_SELINUX_FIRST = -225,
+NF_IP6_PRI_CONNTRACK = -200,
+NF_IP6_PRI_MANGLE = -150,
+NF_IP6_PRI_NAT_DST = -100,
+NF_IP6_PRI_FILTER = 0,
+NF_IP6_PRI_SECURITY = 50,
+NF_IP6_PRI_NAT_SRC = 100,
+NF_IP6_PRI_SELINUX_LAST = 225,
+NF_IP6_PRI_CONNTRACK_HELPER = 300,
+NF_IP6_PRI_LAST = 2147483647,
+}
+#[repr(i32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum nf_ip_hook_priorities {
+NF_IP_PRI_FIRST = -2147483648,
+NF_IP_PRI_RAW_BEFORE_DEFRAG = -450,
+NF_IP_PRI_CONNTRACK_DEFRAG = -400,
+NF_IP_PRI_RAW = -300,
+NF_IP_PRI_SELINUX_FIRST = -225,
+NF_IP_PRI_CONNTRACK = -200,
+NF_IP_PRI_MANGLE = -150,
+NF_IP_PRI_NAT_DST = -100,
+NF_IP_PRI_FILTER = 0,
+NF_IP_PRI_SECURITY = 50,
+NF_IP_PRI_NAT_SRC = 100,
+NF_IP_PRI_SELINUX_LAST = 225,
+NF_IP_PRI_CONNTRACK_HELPER = 300,
+NF_IP_PRI_CONNTRACK_CONFIRM = 2147483647,
+}
#[repr(C)]
#[derive(Copy, Clone)]
pub union __kernel_sockaddr_storage__bindgen_ty_1 {
@@ -1409,6 +1931,69 @@ pub union tcp_word_hdr {
pub hdr: tcphdr,
pub words: [__be32; 5usize],
}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union if_settings__bindgen_ty_1 {
+pub raw_hdlc: *mut raw_hdlc_proto,
+pub cisco: *mut cisco_proto,
+pub fr: *mut fr_proto,
+pub fr_pvc: *mut fr_proto_pvc,
+pub fr_pvc_info: *mut fr_proto_pvc_info,
+pub x25: *mut x25_hdlc_proto,
+pub sync: *mut sync_serial_settings,
+pub te1: *mut te1_settings,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union ifreq__bindgen_ty_1 {
+pub ifrn_name: [crate::ctypes::c_char; 16usize],
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union ifreq__bindgen_ty_2 {
+pub ifru_addr: sockaddr,
+pub ifru_dstaddr: sockaddr,
+pub ifru_broadaddr: sockaddr,
+pub ifru_netmask: sockaddr,
+pub ifru_hwaddr: sockaddr,
+pub ifru_flags: crate::ctypes::c_short,
+pub ifru_ivalue: crate::ctypes::c_int,
+pub ifru_mtu: crate::ctypes::c_int,
+pub ifru_map: ifmap,
+pub ifru_slave: [crate::ctypes::c_char; 16usize],
+pub ifru_newname: [crate::ctypes::c_char; 16usize],
+pub ifru_data: *mut crate::ctypes::c_void,
+pub ifru_settings: if_settings,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union ifconf__bindgen_ty_1 {
+pub ifcu_buf: *mut crate::ctypes::c_char,
+pub ifcu_req: *mut ifreq,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union nf_inet_addr {
+pub all: [__u32; 4usize],
+pub ip: __be32,
+pub ip6: [__be32; 4usize],
+pub in_: in_addr,
+pub in6: in6_addr,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union xt_entry_match__bindgen_ty_1 {
+pub user: xt_entry_match__bindgen_ty_1__bindgen_ty_1,
+pub kernel: xt_entry_match__bindgen_ty_1__bindgen_ty_2,
+pub match_size: __u16,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union xt_entry_target__bindgen_ty_1 {
+pub user: xt_entry_target__bindgen_ty_1__bindgen_ty_1,
+pub kernel: xt_entry_target__bindgen_ty_1__bindgen_ty_2,
+pub target_size: __u16,
+}
impl<Storage> __BindgenBitfieldUnit<Storage> {
#[inline]
pub const fn new(storage: Storage) -> Self {
@@ -1834,3 +2419,9 @@ tcpi_fastopen_client_fail as u64
__bindgen_bitfield_unit
}
}
+impl nf_inet_hooks {
+pub const NF_INET_INGRESS: nf_inet_hooks = nf_inet_hooks::NF_INET_NUMHOOKS;
+}
+impl nf_ip_hook_priorities {
+pub const NF_IP_PRI_LAST: nf_ip_hook_priorities = nf_ip_hook_priorities::NF_IP_PRI_CONNTRACK_CONFIRM;
+}
diff --git a/vendor/linux-raw-sys/src/elf.rs b/vendor/linux-raw-sys/src/elf.rs
index 0141329f6..d4a641067 100644
--- a/vendor/linux-raw-sys/src/elf.rs
+++ b/vendor/linux-raw-sys/src/elf.rs
@@ -42,6 +42,9 @@ pub const DT_SYMTAB: usize = 6;
pub const DT_RELA: usize = 7;
pub const DT_RELASZ: usize = 8;
pub const DT_RELAENT: usize = 9;
+pub const DT_REL: usize = 17;
+pub const DT_RELSZ: usize = 18;
+pub const DT_RELENT: usize = 19;
pub const DT_SYMENT: usize = 11;
pub const DT_VERSYM: usize = 0x6fff_fff0;
pub const DT_VERDEF: usize = 0x6fff_fffc;
@@ -233,6 +236,34 @@ impl Elf_Rela {
}
}
+#[cfg(target_pointer_width = "32")]
+#[repr(C)]
+pub struct Elf_Rel {
+ pub r_offset: usize,
+ pub r_info: u32,
+}
+
+#[cfg(target_pointer_width = "64")]
+#[repr(C)]
+pub struct Elf_Rel {
+ pub r_offset: usize,
+ pub r_info: u64,
+}
+
+impl Elf_Rel {
+ #[inline]
+ pub fn type_(&self) -> u32 {
+ #[cfg(target_pointer_width = "32")]
+ {
+ self.r_info & 0xff
+ }
+ #[cfg(target_pointer_width = "64")]
+ {
+ (self.r_info & 0xffff_ffff) as u32
+ }
+ }
+}
+
#[cfg(target_arch = "x86_64")]
pub const R_RELATIVE: u32 = 8; // `R_X86_64_RELATIVE`
#[cfg(target_arch = "x86")]
diff --git a/vendor/linux-raw-sys/src/loongarch64/general.rs b/vendor/linux-raw-sys/src/loongarch64/general.rs
index 893a49235..686d05bb5 100644
--- a/vendor/linux-raw-sys/src/loongarch64/general.rs
+++ b/vendor/linux-raw-sys/src/loongarch64/general.rs
@@ -1566,6 +1566,19 @@ pub const POLLRDHUP: u32 = 8192;
pub const GRND_NONBLOCK: u32 = 1;
pub const GRND_RANDOM: u32 = 2;
pub const GRND_INSECURE: u32 = 4;
+pub const LINUX_REBOOT_MAGIC1: u32 = 4276215469;
+pub const LINUX_REBOOT_MAGIC2: u32 = 672274793;
+pub const LINUX_REBOOT_MAGIC2A: u32 = 85072278;
+pub const LINUX_REBOOT_MAGIC2B: u32 = 369367448;
+pub const LINUX_REBOOT_MAGIC2C: u32 = 537993216;
+pub const LINUX_REBOOT_CMD_RESTART: u32 = 19088743;
+pub const LINUX_REBOOT_CMD_HALT: u32 = 3454992675;
+pub const LINUX_REBOOT_CMD_CAD_ON: u32 = 2309737967;
+pub const LINUX_REBOOT_CMD_CAD_OFF: u32 = 0;
+pub const LINUX_REBOOT_CMD_POWER_OFF: u32 = 1126301404;
+pub const LINUX_REBOOT_CMD_RESTART2: u32 = 2712847316;
+pub const LINUX_REBOOT_CMD_SW_SUSPEND: u32 = 3489725666;
+pub const LINUX_REBOOT_CMD_KEXEC: u32 = 1163412803;
pub const ITIMER_REAL: u32 = 0;
pub const ITIMER_VIRTUAL: u32 = 1;
pub const ITIMER_PROF: u32 = 2;
diff --git a/vendor/linux-raw-sys/src/loongarch64/net.rs b/vendor/linux-raw-sys/src/loongarch64/net.rs
index 77630ebf2..2e3eeacad 100644
--- a/vendor/linux-raw-sys/src/loongarch64/net.rs
+++ b/vendor/linux-raw-sys/src/loongarch64/net.rs
@@ -476,6 +476,255 @@ pub __storage: __kernel_sockaddr_storage,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
+pub struct sync_serial_settings {
+pub clock_rate: crate::ctypes::c_uint,
+pub clock_type: crate::ctypes::c_uint,
+pub loopback: crate::ctypes::c_ushort,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct te1_settings {
+pub clock_rate: crate::ctypes::c_uint,
+pub clock_type: crate::ctypes::c_uint,
+pub loopback: crate::ctypes::c_ushort,
+pub slot_map: crate::ctypes::c_uint,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct raw_hdlc_proto {
+pub encoding: crate::ctypes::c_ushort,
+pub parity: crate::ctypes::c_ushort,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct fr_proto {
+pub t391: crate::ctypes::c_uint,
+pub t392: crate::ctypes::c_uint,
+pub n391: crate::ctypes::c_uint,
+pub n392: crate::ctypes::c_uint,
+pub n393: crate::ctypes::c_uint,
+pub lmi: crate::ctypes::c_ushort,
+pub dce: crate::ctypes::c_ushort,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct fr_proto_pvc {
+pub dlci: crate::ctypes::c_uint,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct fr_proto_pvc_info {
+pub dlci: crate::ctypes::c_uint,
+pub master: [crate::ctypes::c_char; 16usize],
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct cisco_proto {
+pub interval: crate::ctypes::c_uint,
+pub timeout: crate::ctypes::c_uint,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct x25_hdlc_proto {
+pub dce: crate::ctypes::c_ushort,
+pub modulo: crate::ctypes::c_uint,
+pub window: crate::ctypes::c_uint,
+pub t1: crate::ctypes::c_uint,
+pub t2: crate::ctypes::c_uint,
+pub n2: crate::ctypes::c_uint,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct ifmap {
+pub mem_start: crate::ctypes::c_ulong,
+pub mem_end: crate::ctypes::c_ulong,
+pub base_addr: crate::ctypes::c_ushort,
+pub irq: crate::ctypes::c_uchar,
+pub dma: crate::ctypes::c_uchar,
+pub port: crate::ctypes::c_uchar,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub struct if_settings {
+pub type_: crate::ctypes::c_uint,
+pub size: crate::ctypes::c_uint,
+pub ifs_ifsu: if_settings__bindgen_ty_1,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub struct ifreq {
+pub ifr_ifrn: ifreq__bindgen_ty_1,
+pub ifr_ifru: ifreq__bindgen_ty_2,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub struct ifconf {
+pub ifc_len: crate::ctypes::c_int,
+pub ifc_ifcu: ifconf__bindgen_ty_1,
+}
+#[repr(C)]
+pub struct xt_entry_match {
+pub u: xt_entry_match__bindgen_ty_1,
+pub data: __IncompleteArrayField<crate::ctypes::c_uchar>,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_entry_match__bindgen_ty_1__bindgen_ty_1 {
+pub match_size: __u16,
+pub name: [crate::ctypes::c_char; 29usize],
+pub revision: __u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_entry_match__bindgen_ty_1__bindgen_ty_2 {
+pub match_size: __u16,
+pub match_: *mut xt_match,
+}
+#[repr(C)]
+pub struct xt_entry_target {
+pub u: xt_entry_target__bindgen_ty_1,
+pub data: __IncompleteArrayField<crate::ctypes::c_uchar>,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_entry_target__bindgen_ty_1__bindgen_ty_1 {
+pub target_size: __u16,
+pub name: [crate::ctypes::c_char; 29usize],
+pub revision: __u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_entry_target__bindgen_ty_1__bindgen_ty_2 {
+pub target_size: __u16,
+pub target: *mut xt_target,
+}
+#[repr(C)]
+pub struct xt_standard_target {
+pub target: xt_entry_target,
+pub verdict: crate::ctypes::c_int,
+}
+#[repr(C)]
+pub struct xt_error_target {
+pub target: xt_entry_target,
+pub errorname: [crate::ctypes::c_char; 30usize],
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_get_revision {
+pub name: [crate::ctypes::c_char; 29usize],
+pub revision: __u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct _xt_align {
+pub u8_: __u8,
+pub u16_: __u16,
+pub u32_: __u32,
+pub u64_: __u64,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_counters {
+pub pcnt: __u64,
+pub bcnt: __u64,
+}
+#[repr(C)]
+#[derive(Debug)]
+pub struct xt_counters_info {
+pub name: [crate::ctypes::c_char; 32usize],
+pub num_counters: crate::ctypes::c_uint,
+pub counters: __IncompleteArrayField<xt_counters>,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_tcp {
+pub spts: [__u16; 2usize],
+pub dpts: [__u16; 2usize],
+pub option: __u8,
+pub flg_mask: __u8,
+pub flg_cmp: __u8,
+pub invflags: __u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_udp {
+pub spts: [__u16; 2usize],
+pub dpts: [__u16; 2usize],
+pub invflags: __u8,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub struct ip6t_ip6 {
+pub src: in6_addr,
+pub dst: in6_addr,
+pub smsk: in6_addr,
+pub dmsk: in6_addr,
+pub iniface: [crate::ctypes::c_char; 16usize],
+pub outiface: [crate::ctypes::c_char; 16usize],
+pub iniface_mask: [crate::ctypes::c_uchar; 16usize],
+pub outiface_mask: [crate::ctypes::c_uchar; 16usize],
+pub proto: __u16,
+pub tos: __u8,
+pub flags: __u8,
+pub invflags: __u8,
+}
+#[repr(C)]
+pub struct ip6t_entry {
+pub ipv6: ip6t_ip6,
+pub nfcache: crate::ctypes::c_uint,
+pub target_offset: __u16,
+pub next_offset: __u16,
+pub comefrom: crate::ctypes::c_uint,
+pub counters: xt_counters,
+pub elems: __IncompleteArrayField<crate::ctypes::c_uchar>,
+}
+#[repr(C)]
+pub struct ip6t_standard {
+pub entry: ip6t_entry,
+pub target: xt_standard_target,
+}
+#[repr(C)]
+pub struct ip6t_error {
+pub entry: ip6t_entry,
+pub target: xt_error_target,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct ip6t_icmp {
+pub type_: __u8,
+pub code: [__u8; 2usize],
+pub invflags: __u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct ip6t_getinfo {
+pub name: [crate::ctypes::c_char; 32usize],
+pub valid_hooks: crate::ctypes::c_uint,
+pub hook_entry: [crate::ctypes::c_uint; 5usize],
+pub underflow: [crate::ctypes::c_uint; 5usize],
+pub num_entries: crate::ctypes::c_uint,
+pub size: crate::ctypes::c_uint,
+}
+#[repr(C)]
+pub struct ip6t_replace {
+pub name: [crate::ctypes::c_char; 32usize],
+pub valid_hooks: crate::ctypes::c_uint,
+pub num_entries: crate::ctypes::c_uint,
+pub size: crate::ctypes::c_uint,
+pub hook_entry: [crate::ctypes::c_uint; 5usize],
+pub underflow: [crate::ctypes::c_uint; 5usize],
+pub num_counters: crate::ctypes::c_uint,
+pub counters: *mut xt_counters,
+pub entries: __IncompleteArrayField<ip6t_entry>,
+}
+#[repr(C)]
+pub struct ip6t_get_entries {
+pub name: [crate::ctypes::c_char; 32usize],
+pub size: crate::ctypes::c_uint,
+pub entrytable: __IncompleteArrayField<ip6t_entry>,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
pub struct linger {
pub l_onoff: crate::ctypes::c_int,
pub l_linger: crate::ctypes::c_int,
@@ -513,6 +762,16 @@ pub msg_len: crate::ctypes::c_uint,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
+pub struct xt_match {
+pub _address: u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_target {
+pub _address: u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
pub struct iovec {
pub _address: u8,
}
@@ -935,6 +1194,135 @@ pub const TCP_MD5SIG_FLAG_PREFIX: u32 = 1;
pub const TCP_MD5SIG_FLAG_IFINDEX: u32 = 2;
pub const TCP_RECEIVE_ZEROCOPY_FLAG_TLB_CLEAN_HINT: u32 = 1;
pub const UNIX_PATH_MAX: u32 = 108;
+pub const IFNAMSIZ: u32 = 16;
+pub const IFALIASZ: u32 = 256;
+pub const ALTIFNAMSIZ: u32 = 128;
+pub const GENERIC_HDLC_VERSION: u32 = 4;
+pub const CLOCK_DEFAULT: u32 = 0;
+pub const CLOCK_EXT: u32 = 1;
+pub const CLOCK_INT: u32 = 2;
+pub const CLOCK_TXINT: u32 = 3;
+pub const CLOCK_TXFROMRX: u32 = 4;
+pub const ENCODING_DEFAULT: u32 = 0;
+pub const ENCODING_NRZ: u32 = 1;
+pub const ENCODING_NRZI: u32 = 2;
+pub const ENCODING_FM_MARK: u32 = 3;
+pub const ENCODING_FM_SPACE: u32 = 4;
+pub const ENCODING_MANCHESTER: u32 = 5;
+pub const PARITY_DEFAULT: u32 = 0;
+pub const PARITY_NONE: u32 = 1;
+pub const PARITY_CRC16_PR0: u32 = 2;
+pub const PARITY_CRC16_PR1: u32 = 3;
+pub const PARITY_CRC16_PR0_CCITT: u32 = 4;
+pub const PARITY_CRC16_PR1_CCITT: u32 = 5;
+pub const PARITY_CRC32_PR0_CCITT: u32 = 6;
+pub const PARITY_CRC32_PR1_CCITT: u32 = 7;
+pub const LMI_DEFAULT: u32 = 0;
+pub const LMI_NONE: u32 = 1;
+pub const LMI_ANSI: u32 = 2;
+pub const LMI_CCITT: u32 = 3;
+pub const LMI_CISCO: u32 = 4;
+pub const IF_GET_IFACE: u32 = 1;
+pub const IF_GET_PROTO: u32 = 2;
+pub const IF_IFACE_V35: u32 = 4096;
+pub const IF_IFACE_V24: u32 = 4097;
+pub const IF_IFACE_X21: u32 = 4098;
+pub const IF_IFACE_T1: u32 = 4099;
+pub const IF_IFACE_E1: u32 = 4100;
+pub const IF_IFACE_SYNC_SERIAL: u32 = 4101;
+pub const IF_IFACE_X21D: u32 = 4102;
+pub const IF_PROTO_HDLC: u32 = 8192;
+pub const IF_PROTO_PPP: u32 = 8193;
+pub const IF_PROTO_CISCO: u32 = 8194;
+pub const IF_PROTO_FR: u32 = 8195;
+pub const IF_PROTO_FR_ADD_PVC: u32 = 8196;
+pub const IF_PROTO_FR_DEL_PVC: u32 = 8197;
+pub const IF_PROTO_X25: u32 = 8198;
+pub const IF_PROTO_HDLC_ETH: u32 = 8199;
+pub const IF_PROTO_FR_ADD_ETH_PVC: u32 = 8200;
+pub const IF_PROTO_FR_DEL_ETH_PVC: u32 = 8201;
+pub const IF_PROTO_FR_PVC: u32 = 8202;
+pub const IF_PROTO_FR_ETH_PVC: u32 = 8203;
+pub const IF_PROTO_RAW: u32 = 8204;
+pub const IFHWADDRLEN: u32 = 6;
+pub const NF_DROP: u32 = 0;
+pub const NF_ACCEPT: u32 = 1;
+pub const NF_STOLEN: u32 = 2;
+pub const NF_QUEUE: u32 = 3;
+pub const NF_REPEAT: u32 = 4;
+pub const NF_STOP: u32 = 5;
+pub const NF_MAX_VERDICT: u32 = 5;
+pub const NF_VERDICT_MASK: u32 = 255;
+pub const NF_VERDICT_FLAG_QUEUE_BYPASS: u32 = 32768;
+pub const NF_VERDICT_QMASK: u32 = 4294901760;
+pub const NF_VERDICT_QBITS: u32 = 16;
+pub const NF_VERDICT_BITS: u32 = 16;
+pub const NF_IP6_PRE_ROUTING: u32 = 0;
+pub const NF_IP6_LOCAL_IN: u32 = 1;
+pub const NF_IP6_FORWARD: u32 = 2;
+pub const NF_IP6_LOCAL_OUT: u32 = 3;
+pub const NF_IP6_POST_ROUTING: u32 = 4;
+pub const NF_IP6_NUMHOOKS: u32 = 5;
+pub const XT_FUNCTION_MAXNAMELEN: u32 = 30;
+pub const XT_EXTENSION_MAXNAMELEN: u32 = 29;
+pub const XT_TABLE_MAXNAMELEN: u32 = 32;
+pub const XT_CONTINUE: u32 = 4294967295;
+pub const XT_RETURN: i32 = -5;
+pub const XT_STANDARD_TARGET: &[u8; 1] = b"\0";
+pub const XT_ERROR_TARGET: &[u8; 6] = b"ERROR\0";
+pub const XT_INV_PROTO: u32 = 64;
+pub const IP6T_FUNCTION_MAXNAMELEN: u32 = 30;
+pub const IP6T_TABLE_MAXNAMELEN: u32 = 32;
+pub const IP6T_CONTINUE: u32 = 4294967295;
+pub const IP6T_RETURN: i32 = -5;
+pub const XT_TCP_INV_SRCPT: u32 = 1;
+pub const XT_TCP_INV_DSTPT: u32 = 2;
+pub const XT_TCP_INV_FLAGS: u32 = 4;
+pub const XT_TCP_INV_OPTION: u32 = 8;
+pub const XT_TCP_INV_MASK: u32 = 15;
+pub const XT_UDP_INV_SRCPT: u32 = 1;
+pub const XT_UDP_INV_DSTPT: u32 = 2;
+pub const XT_UDP_INV_MASK: u32 = 3;
+pub const IP6T_TCP_INV_SRCPT: u32 = 1;
+pub const IP6T_TCP_INV_DSTPT: u32 = 2;
+pub const IP6T_TCP_INV_FLAGS: u32 = 4;
+pub const IP6T_TCP_INV_OPTION: u32 = 8;
+pub const IP6T_TCP_INV_MASK: u32 = 15;
+pub const IP6T_UDP_INV_SRCPT: u32 = 1;
+pub const IP6T_UDP_INV_DSTPT: u32 = 2;
+pub const IP6T_UDP_INV_MASK: u32 = 3;
+pub const IP6T_STANDARD_TARGET: &[u8; 1] = b"\0";
+pub const IP6T_ERROR_TARGET: &[u8; 6] = b"ERROR\0";
+pub const IP6T_F_PROTO: u32 = 1;
+pub const IP6T_F_TOS: u32 = 2;
+pub const IP6T_F_GOTO: u32 = 4;
+pub const IP6T_F_MASK: u32 = 7;
+pub const IP6T_INV_VIA_IN: u32 = 1;
+pub const IP6T_INV_VIA_OUT: u32 = 2;
+pub const IP6T_INV_TOS: u32 = 4;
+pub const IP6T_INV_SRCIP: u32 = 8;
+pub const IP6T_INV_DSTIP: u32 = 16;
+pub const IP6T_INV_FRAG: u32 = 32;
+pub const IP6T_INV_PROTO: u32 = 64;
+pub const IP6T_INV_MASK: u32 = 127;
+pub const IP6T_BASE_CTL: u32 = 64;
+pub const IP6T_SO_SET_REPLACE: u32 = 64;
+pub const IP6T_SO_SET_ADD_COUNTERS: u32 = 65;
+pub const IP6T_SO_SET_MAX: u32 = 65;
+pub const IP6T_SO_GET_INFO: u32 = 64;
+pub const IP6T_SO_GET_ENTRIES: u32 = 65;
+pub const IP6T_SO_GET_REVISION_MATCH: u32 = 68;
+pub const IP6T_SO_GET_REVISION_TARGET: u32 = 69;
+pub const IP6T_SO_GET_MAX: u32 = 69;
+pub const IP6T_SO_ORIGINAL_DST: u32 = 80;
+pub const IP6T_ICMP_INV: u32 = 1;
+pub const NF_IP_PRE_ROUTING: u32 = 0;
+pub const NF_IP_LOCAL_IN: u32 = 1;
+pub const NF_IP_FORWARD: u32 = 2;
+pub const NF_IP_LOCAL_OUT: u32 = 3;
+pub const NF_IP_POST_ROUTING: u32 = 4;
+pub const NF_IP_NUMHOOKS: u32 = 5;
+pub const SO_ORIGINAL_DST: u32 = 80;
pub const SHUT_RD: u32 = 0;
pub const SHUT_WR: u32 = 1;
pub const SHUT_RDWR: u32 = 2;
@@ -1163,6 +1551,25 @@ pub const TCP_NLA_BYTES_NOTSENT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_NO
pub const TCP_NLA_EDT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_EDT;
pub const TCP_NLA_TTL: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TTL;
pub const TCP_NLA_REHASH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REHASH;
+pub const IF_OPER_UNKNOWN: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_UNKNOWN;
+pub const IF_OPER_NOTPRESENT: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_NOTPRESENT;
+pub const IF_OPER_DOWN: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_DOWN;
+pub const IF_OPER_LOWERLAYERDOWN: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_LOWERLAYERDOWN;
+pub const IF_OPER_TESTING: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_TESTING;
+pub const IF_OPER_DORMANT: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_DORMANT;
+pub const IF_OPER_UP: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_UP;
+pub const IF_LINK_MODE_DEFAULT: _bindgen_ty_8 = _bindgen_ty_8::IF_LINK_MODE_DEFAULT;
+pub const IF_LINK_MODE_DORMANT: _bindgen_ty_8 = _bindgen_ty_8::IF_LINK_MODE_DORMANT;
+pub const IF_LINK_MODE_TESTING: _bindgen_ty_8 = _bindgen_ty_8::IF_LINK_MODE_TESTING;
+pub const NFPROTO_UNSPEC: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_UNSPEC;
+pub const NFPROTO_INET: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_INET;
+pub const NFPROTO_IPV4: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_IPV4;
+pub const NFPROTO_ARP: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_ARP;
+pub const NFPROTO_NETDEV: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_NETDEV;
+pub const NFPROTO_BRIDGE: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_BRIDGE;
+pub const NFPROTO_IPV6: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_IPV6;
+pub const NFPROTO_DECNET: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_DECNET;
+pub const NFPROTO_NUMPROTO: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_NUMPROTO;
#[repr(u32)]
#[non_exhaustive]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
@@ -1386,6 +1793,121 @@ TCP_NLA_EDT = 25,
TCP_NLA_TTL = 26,
TCP_NLA_REHASH = 27,
}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum net_device_flags {
+IFF_UP = 1,
+IFF_BROADCAST = 2,
+IFF_DEBUG = 4,
+IFF_LOOPBACK = 8,
+IFF_POINTOPOINT = 16,
+IFF_NOTRAILERS = 32,
+IFF_RUNNING = 64,
+IFF_NOARP = 128,
+IFF_PROMISC = 256,
+IFF_ALLMULTI = 512,
+IFF_MASTER = 1024,
+IFF_SLAVE = 2048,
+IFF_MULTICAST = 4096,
+IFF_PORTSEL = 8192,
+IFF_AUTOMEDIA = 16384,
+IFF_DYNAMIC = 32768,
+IFF_LOWER_UP = 65536,
+IFF_DORMANT = 131072,
+IFF_ECHO = 262144,
+}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum _bindgen_ty_7 {
+IF_OPER_UNKNOWN = 0,
+IF_OPER_NOTPRESENT = 1,
+IF_OPER_DOWN = 2,
+IF_OPER_LOWERLAYERDOWN = 3,
+IF_OPER_TESTING = 4,
+IF_OPER_DORMANT = 5,
+IF_OPER_UP = 6,
+}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum _bindgen_ty_8 {
+IF_LINK_MODE_DEFAULT = 0,
+IF_LINK_MODE_DORMANT = 1,
+IF_LINK_MODE_TESTING = 2,
+}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum nf_inet_hooks {
+NF_INET_PRE_ROUTING = 0,
+NF_INET_LOCAL_IN = 1,
+NF_INET_FORWARD = 2,
+NF_INET_LOCAL_OUT = 3,
+NF_INET_POST_ROUTING = 4,
+NF_INET_NUMHOOKS = 5,
+}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum nf_dev_hooks {
+NF_NETDEV_INGRESS = 0,
+NF_NETDEV_EGRESS = 1,
+NF_NETDEV_NUMHOOKS = 2,
+}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum _bindgen_ty_9 {
+NFPROTO_UNSPEC = 0,
+NFPROTO_INET = 1,
+NFPROTO_IPV4 = 2,
+NFPROTO_ARP = 3,
+NFPROTO_NETDEV = 5,
+NFPROTO_BRIDGE = 7,
+NFPROTO_IPV6 = 10,
+NFPROTO_DECNET = 12,
+NFPROTO_NUMPROTO = 13,
+}
+#[repr(i32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum nf_ip6_hook_priorities {
+NF_IP6_PRI_FIRST = -2147483648,
+NF_IP6_PRI_RAW_BEFORE_DEFRAG = -450,
+NF_IP6_PRI_CONNTRACK_DEFRAG = -400,
+NF_IP6_PRI_RAW = -300,
+NF_IP6_PRI_SELINUX_FIRST = -225,
+NF_IP6_PRI_CONNTRACK = -200,
+NF_IP6_PRI_MANGLE = -150,
+NF_IP6_PRI_NAT_DST = -100,
+NF_IP6_PRI_FILTER = 0,
+NF_IP6_PRI_SECURITY = 50,
+NF_IP6_PRI_NAT_SRC = 100,
+NF_IP6_PRI_SELINUX_LAST = 225,
+NF_IP6_PRI_CONNTRACK_HELPER = 300,
+NF_IP6_PRI_LAST = 2147483647,
+}
+#[repr(i32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum nf_ip_hook_priorities {
+NF_IP_PRI_FIRST = -2147483648,
+NF_IP_PRI_RAW_BEFORE_DEFRAG = -450,
+NF_IP_PRI_CONNTRACK_DEFRAG = -400,
+NF_IP_PRI_RAW = -300,
+NF_IP_PRI_SELINUX_FIRST = -225,
+NF_IP_PRI_CONNTRACK = -200,
+NF_IP_PRI_MANGLE = -150,
+NF_IP_PRI_NAT_DST = -100,
+NF_IP_PRI_FILTER = 0,
+NF_IP_PRI_SECURITY = 50,
+NF_IP_PRI_NAT_SRC = 100,
+NF_IP_PRI_SELINUX_LAST = 225,
+NF_IP_PRI_CONNTRACK_HELPER = 300,
+NF_IP_PRI_CONNTRACK_CONFIRM = 2147483647,
+}
#[repr(C)]
#[derive(Copy, Clone)]
pub union __kernel_sockaddr_storage__bindgen_ty_1 {
@@ -1417,6 +1939,69 @@ pub union tcp_word_hdr {
pub hdr: tcphdr,
pub words: [__be32; 5usize],
}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union if_settings__bindgen_ty_1 {
+pub raw_hdlc: *mut raw_hdlc_proto,
+pub cisco: *mut cisco_proto,
+pub fr: *mut fr_proto,
+pub fr_pvc: *mut fr_proto_pvc,
+pub fr_pvc_info: *mut fr_proto_pvc_info,
+pub x25: *mut x25_hdlc_proto,
+pub sync: *mut sync_serial_settings,
+pub te1: *mut te1_settings,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union ifreq__bindgen_ty_1 {
+pub ifrn_name: [crate::ctypes::c_char; 16usize],
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union ifreq__bindgen_ty_2 {
+pub ifru_addr: sockaddr,
+pub ifru_dstaddr: sockaddr,
+pub ifru_broadaddr: sockaddr,
+pub ifru_netmask: sockaddr,
+pub ifru_hwaddr: sockaddr,
+pub ifru_flags: crate::ctypes::c_short,
+pub ifru_ivalue: crate::ctypes::c_int,
+pub ifru_mtu: crate::ctypes::c_int,
+pub ifru_map: ifmap,
+pub ifru_slave: [crate::ctypes::c_char; 16usize],
+pub ifru_newname: [crate::ctypes::c_char; 16usize],
+pub ifru_data: *mut crate::ctypes::c_void,
+pub ifru_settings: if_settings,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union ifconf__bindgen_ty_1 {
+pub ifcu_buf: *mut crate::ctypes::c_char,
+pub ifcu_req: *mut ifreq,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union nf_inet_addr {
+pub all: [__u32; 4usize],
+pub ip: __be32,
+pub ip6: [__be32; 4usize],
+pub in_: in_addr,
+pub in6: in6_addr,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union xt_entry_match__bindgen_ty_1 {
+pub user: xt_entry_match__bindgen_ty_1__bindgen_ty_1,
+pub kernel: xt_entry_match__bindgen_ty_1__bindgen_ty_2,
+pub match_size: __u16,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union xt_entry_target__bindgen_ty_1 {
+pub user: xt_entry_target__bindgen_ty_1__bindgen_ty_1,
+pub kernel: xt_entry_target__bindgen_ty_1__bindgen_ty_2,
+pub target_size: __u16,
+}
impl<Storage> __BindgenBitfieldUnit<Storage> {
#[inline]
pub const fn new(storage: Storage) -> Self {
@@ -1842,3 +2427,9 @@ tcpi_fastopen_client_fail as u64
__bindgen_bitfield_unit
}
}
+impl nf_inet_hooks {
+pub const NF_INET_INGRESS: nf_inet_hooks = nf_inet_hooks::NF_INET_NUMHOOKS;
+}
+impl nf_ip_hook_priorities {
+pub const NF_IP_PRI_LAST: nf_ip_hook_priorities = nf_ip_hook_priorities::NF_IP_PRI_CONNTRACK_CONFIRM;
+}
diff --git a/vendor/linux-raw-sys/src/mips/general.rs b/vendor/linux-raw-sys/src/mips/general.rs
index 275eb6536..3ddd66131 100644
--- a/vendor/linux-raw-sys/src/mips/general.rs
+++ b/vendor/linux-raw-sys/src/mips/general.rs
@@ -1619,6 +1619,19 @@ pub const POLLRDHUP: u32 = 8192;
pub const GRND_NONBLOCK: u32 = 1;
pub const GRND_RANDOM: u32 = 2;
pub const GRND_INSECURE: u32 = 4;
+pub const LINUX_REBOOT_MAGIC1: u32 = 4276215469;
+pub const LINUX_REBOOT_MAGIC2: u32 = 672274793;
+pub const LINUX_REBOOT_MAGIC2A: u32 = 85072278;
+pub const LINUX_REBOOT_MAGIC2B: u32 = 369367448;
+pub const LINUX_REBOOT_MAGIC2C: u32 = 537993216;
+pub const LINUX_REBOOT_CMD_RESTART: u32 = 19088743;
+pub const LINUX_REBOOT_CMD_HALT: u32 = 3454992675;
+pub const LINUX_REBOOT_CMD_CAD_ON: u32 = 2309737967;
+pub const LINUX_REBOOT_CMD_CAD_OFF: u32 = 0;
+pub const LINUX_REBOOT_CMD_POWER_OFF: u32 = 1126301404;
+pub const LINUX_REBOOT_CMD_RESTART2: u32 = 2712847316;
+pub const LINUX_REBOOT_CMD_SW_SUSPEND: u32 = 3489725666;
+pub const LINUX_REBOOT_CMD_KEXEC: u32 = 1163412803;
pub const ITIMER_REAL: u32 = 0;
pub const ITIMER_VIRTUAL: u32 = 1;
pub const ITIMER_PROF: u32 = 2;
diff --git a/vendor/linux-raw-sys/src/mips/net.rs b/vendor/linux-raw-sys/src/mips/net.rs
index a0386f4bb..ff3114315 100644
--- a/vendor/linux-raw-sys/src/mips/net.rs
+++ b/vendor/linux-raw-sys/src/mips/net.rs
@@ -476,6 +476,255 @@ pub __storage: __kernel_sockaddr_storage,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
+pub struct sync_serial_settings {
+pub clock_rate: crate::ctypes::c_uint,
+pub clock_type: crate::ctypes::c_uint,
+pub loopback: crate::ctypes::c_ushort,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct te1_settings {
+pub clock_rate: crate::ctypes::c_uint,
+pub clock_type: crate::ctypes::c_uint,
+pub loopback: crate::ctypes::c_ushort,
+pub slot_map: crate::ctypes::c_uint,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct raw_hdlc_proto {
+pub encoding: crate::ctypes::c_ushort,
+pub parity: crate::ctypes::c_ushort,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct fr_proto {
+pub t391: crate::ctypes::c_uint,
+pub t392: crate::ctypes::c_uint,
+pub n391: crate::ctypes::c_uint,
+pub n392: crate::ctypes::c_uint,
+pub n393: crate::ctypes::c_uint,
+pub lmi: crate::ctypes::c_ushort,
+pub dce: crate::ctypes::c_ushort,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct fr_proto_pvc {
+pub dlci: crate::ctypes::c_uint,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct fr_proto_pvc_info {
+pub dlci: crate::ctypes::c_uint,
+pub master: [crate::ctypes::c_char; 16usize],
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct cisco_proto {
+pub interval: crate::ctypes::c_uint,
+pub timeout: crate::ctypes::c_uint,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct x25_hdlc_proto {
+pub dce: crate::ctypes::c_ushort,
+pub modulo: crate::ctypes::c_uint,
+pub window: crate::ctypes::c_uint,
+pub t1: crate::ctypes::c_uint,
+pub t2: crate::ctypes::c_uint,
+pub n2: crate::ctypes::c_uint,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct ifmap {
+pub mem_start: crate::ctypes::c_ulong,
+pub mem_end: crate::ctypes::c_ulong,
+pub base_addr: crate::ctypes::c_ushort,
+pub irq: crate::ctypes::c_uchar,
+pub dma: crate::ctypes::c_uchar,
+pub port: crate::ctypes::c_uchar,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub struct if_settings {
+pub type_: crate::ctypes::c_uint,
+pub size: crate::ctypes::c_uint,
+pub ifs_ifsu: if_settings__bindgen_ty_1,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub struct ifreq {
+pub ifr_ifrn: ifreq__bindgen_ty_1,
+pub ifr_ifru: ifreq__bindgen_ty_2,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub struct ifconf {
+pub ifc_len: crate::ctypes::c_int,
+pub ifc_ifcu: ifconf__bindgen_ty_1,
+}
+#[repr(C)]
+pub struct xt_entry_match {
+pub u: xt_entry_match__bindgen_ty_1,
+pub data: __IncompleteArrayField<crate::ctypes::c_uchar>,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_entry_match__bindgen_ty_1__bindgen_ty_1 {
+pub match_size: __u16,
+pub name: [crate::ctypes::c_char; 29usize],
+pub revision: __u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_entry_match__bindgen_ty_1__bindgen_ty_2 {
+pub match_size: __u16,
+pub match_: *mut xt_match,
+}
+#[repr(C)]
+pub struct xt_entry_target {
+pub u: xt_entry_target__bindgen_ty_1,
+pub data: __IncompleteArrayField<crate::ctypes::c_uchar>,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_entry_target__bindgen_ty_1__bindgen_ty_1 {
+pub target_size: __u16,
+pub name: [crate::ctypes::c_char; 29usize],
+pub revision: __u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_entry_target__bindgen_ty_1__bindgen_ty_2 {
+pub target_size: __u16,
+pub target: *mut xt_target,
+}
+#[repr(C)]
+pub struct xt_standard_target {
+pub target: xt_entry_target,
+pub verdict: crate::ctypes::c_int,
+}
+#[repr(C)]
+pub struct xt_error_target {
+pub target: xt_entry_target,
+pub errorname: [crate::ctypes::c_char; 30usize],
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_get_revision {
+pub name: [crate::ctypes::c_char; 29usize],
+pub revision: __u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct _xt_align {
+pub u8_: __u8,
+pub u16_: __u16,
+pub u32_: __u32,
+pub u64_: __u64,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_counters {
+pub pcnt: __u64,
+pub bcnt: __u64,
+}
+#[repr(C)]
+#[derive(Debug)]
+pub struct xt_counters_info {
+pub name: [crate::ctypes::c_char; 32usize],
+pub num_counters: crate::ctypes::c_uint,
+pub counters: __IncompleteArrayField<xt_counters>,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_tcp {
+pub spts: [__u16; 2usize],
+pub dpts: [__u16; 2usize],
+pub option: __u8,
+pub flg_mask: __u8,
+pub flg_cmp: __u8,
+pub invflags: __u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_udp {
+pub spts: [__u16; 2usize],
+pub dpts: [__u16; 2usize],
+pub invflags: __u8,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub struct ip6t_ip6 {
+pub src: in6_addr,
+pub dst: in6_addr,
+pub smsk: in6_addr,
+pub dmsk: in6_addr,
+pub iniface: [crate::ctypes::c_char; 16usize],
+pub outiface: [crate::ctypes::c_char; 16usize],
+pub iniface_mask: [crate::ctypes::c_uchar; 16usize],
+pub outiface_mask: [crate::ctypes::c_uchar; 16usize],
+pub proto: __u16,
+pub tos: __u8,
+pub flags: __u8,
+pub invflags: __u8,
+}
+#[repr(C)]
+pub struct ip6t_entry {
+pub ipv6: ip6t_ip6,
+pub nfcache: crate::ctypes::c_uint,
+pub target_offset: __u16,
+pub next_offset: __u16,
+pub comefrom: crate::ctypes::c_uint,
+pub counters: xt_counters,
+pub elems: __IncompleteArrayField<crate::ctypes::c_uchar>,
+}
+#[repr(C)]
+pub struct ip6t_standard {
+pub entry: ip6t_entry,
+pub target: xt_standard_target,
+}
+#[repr(C)]
+pub struct ip6t_error {
+pub entry: ip6t_entry,
+pub target: xt_error_target,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct ip6t_icmp {
+pub type_: __u8,
+pub code: [__u8; 2usize],
+pub invflags: __u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct ip6t_getinfo {
+pub name: [crate::ctypes::c_char; 32usize],
+pub valid_hooks: crate::ctypes::c_uint,
+pub hook_entry: [crate::ctypes::c_uint; 5usize],
+pub underflow: [crate::ctypes::c_uint; 5usize],
+pub num_entries: crate::ctypes::c_uint,
+pub size: crate::ctypes::c_uint,
+}
+#[repr(C)]
+pub struct ip6t_replace {
+pub name: [crate::ctypes::c_char; 32usize],
+pub valid_hooks: crate::ctypes::c_uint,
+pub num_entries: crate::ctypes::c_uint,
+pub size: crate::ctypes::c_uint,
+pub hook_entry: [crate::ctypes::c_uint; 5usize],
+pub underflow: [crate::ctypes::c_uint; 5usize],
+pub num_counters: crate::ctypes::c_uint,
+pub counters: *mut xt_counters,
+pub entries: __IncompleteArrayField<ip6t_entry>,
+}
+#[repr(C)]
+pub struct ip6t_get_entries {
+pub name: [crate::ctypes::c_char; 32usize],
+pub size: crate::ctypes::c_uint,
+pub entrytable: __IncompleteArrayField<ip6t_entry>,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
pub struct linger {
pub l_onoff: crate::ctypes::c_int,
pub l_linger: crate::ctypes::c_int,
@@ -513,6 +762,16 @@ pub msg_len: crate::ctypes::c_uint,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
+pub struct xt_match {
+pub _address: u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_target {
+pub _address: u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
pub struct iovec {
pub _address: u8,
}
@@ -958,6 +1217,135 @@ pub const TCP_MD5SIG_FLAG_PREFIX: u32 = 1;
pub const TCP_MD5SIG_FLAG_IFINDEX: u32 = 2;
pub const TCP_RECEIVE_ZEROCOPY_FLAG_TLB_CLEAN_HINT: u32 = 1;
pub const UNIX_PATH_MAX: u32 = 108;
+pub const IFNAMSIZ: u32 = 16;
+pub const IFALIASZ: u32 = 256;
+pub const ALTIFNAMSIZ: u32 = 128;
+pub const GENERIC_HDLC_VERSION: u32 = 4;
+pub const CLOCK_DEFAULT: u32 = 0;
+pub const CLOCK_EXT: u32 = 1;
+pub const CLOCK_INT: u32 = 2;
+pub const CLOCK_TXINT: u32 = 3;
+pub const CLOCK_TXFROMRX: u32 = 4;
+pub const ENCODING_DEFAULT: u32 = 0;
+pub const ENCODING_NRZ: u32 = 1;
+pub const ENCODING_NRZI: u32 = 2;
+pub const ENCODING_FM_MARK: u32 = 3;
+pub const ENCODING_FM_SPACE: u32 = 4;
+pub const ENCODING_MANCHESTER: u32 = 5;
+pub const PARITY_DEFAULT: u32 = 0;
+pub const PARITY_NONE: u32 = 1;
+pub const PARITY_CRC16_PR0: u32 = 2;
+pub const PARITY_CRC16_PR1: u32 = 3;
+pub const PARITY_CRC16_PR0_CCITT: u32 = 4;
+pub const PARITY_CRC16_PR1_CCITT: u32 = 5;
+pub const PARITY_CRC32_PR0_CCITT: u32 = 6;
+pub const PARITY_CRC32_PR1_CCITT: u32 = 7;
+pub const LMI_DEFAULT: u32 = 0;
+pub const LMI_NONE: u32 = 1;
+pub const LMI_ANSI: u32 = 2;
+pub const LMI_CCITT: u32 = 3;
+pub const LMI_CISCO: u32 = 4;
+pub const IF_GET_IFACE: u32 = 1;
+pub const IF_GET_PROTO: u32 = 2;
+pub const IF_IFACE_V35: u32 = 4096;
+pub const IF_IFACE_V24: u32 = 4097;
+pub const IF_IFACE_X21: u32 = 4098;
+pub const IF_IFACE_T1: u32 = 4099;
+pub const IF_IFACE_E1: u32 = 4100;
+pub const IF_IFACE_SYNC_SERIAL: u32 = 4101;
+pub const IF_IFACE_X21D: u32 = 4102;
+pub const IF_PROTO_HDLC: u32 = 8192;
+pub const IF_PROTO_PPP: u32 = 8193;
+pub const IF_PROTO_CISCO: u32 = 8194;
+pub const IF_PROTO_FR: u32 = 8195;
+pub const IF_PROTO_FR_ADD_PVC: u32 = 8196;
+pub const IF_PROTO_FR_DEL_PVC: u32 = 8197;
+pub const IF_PROTO_X25: u32 = 8198;
+pub const IF_PROTO_HDLC_ETH: u32 = 8199;
+pub const IF_PROTO_FR_ADD_ETH_PVC: u32 = 8200;
+pub const IF_PROTO_FR_DEL_ETH_PVC: u32 = 8201;
+pub const IF_PROTO_FR_PVC: u32 = 8202;
+pub const IF_PROTO_FR_ETH_PVC: u32 = 8203;
+pub const IF_PROTO_RAW: u32 = 8204;
+pub const IFHWADDRLEN: u32 = 6;
+pub const NF_DROP: u32 = 0;
+pub const NF_ACCEPT: u32 = 1;
+pub const NF_STOLEN: u32 = 2;
+pub const NF_QUEUE: u32 = 3;
+pub const NF_REPEAT: u32 = 4;
+pub const NF_STOP: u32 = 5;
+pub const NF_MAX_VERDICT: u32 = 5;
+pub const NF_VERDICT_MASK: u32 = 255;
+pub const NF_VERDICT_FLAG_QUEUE_BYPASS: u32 = 32768;
+pub const NF_VERDICT_QMASK: u32 = 4294901760;
+pub const NF_VERDICT_QBITS: u32 = 16;
+pub const NF_VERDICT_BITS: u32 = 16;
+pub const NF_IP6_PRE_ROUTING: u32 = 0;
+pub const NF_IP6_LOCAL_IN: u32 = 1;
+pub const NF_IP6_FORWARD: u32 = 2;
+pub const NF_IP6_LOCAL_OUT: u32 = 3;
+pub const NF_IP6_POST_ROUTING: u32 = 4;
+pub const NF_IP6_NUMHOOKS: u32 = 5;
+pub const XT_FUNCTION_MAXNAMELEN: u32 = 30;
+pub const XT_EXTENSION_MAXNAMELEN: u32 = 29;
+pub const XT_TABLE_MAXNAMELEN: u32 = 32;
+pub const XT_CONTINUE: u32 = 4294967295;
+pub const XT_RETURN: i32 = -5;
+pub const XT_STANDARD_TARGET: &[u8; 1] = b"\0";
+pub const XT_ERROR_TARGET: &[u8; 6] = b"ERROR\0";
+pub const XT_INV_PROTO: u32 = 64;
+pub const IP6T_FUNCTION_MAXNAMELEN: u32 = 30;
+pub const IP6T_TABLE_MAXNAMELEN: u32 = 32;
+pub const IP6T_CONTINUE: u32 = 4294967295;
+pub const IP6T_RETURN: i32 = -5;
+pub const XT_TCP_INV_SRCPT: u32 = 1;
+pub const XT_TCP_INV_DSTPT: u32 = 2;
+pub const XT_TCP_INV_FLAGS: u32 = 4;
+pub const XT_TCP_INV_OPTION: u32 = 8;
+pub const XT_TCP_INV_MASK: u32 = 15;
+pub const XT_UDP_INV_SRCPT: u32 = 1;
+pub const XT_UDP_INV_DSTPT: u32 = 2;
+pub const XT_UDP_INV_MASK: u32 = 3;
+pub const IP6T_TCP_INV_SRCPT: u32 = 1;
+pub const IP6T_TCP_INV_DSTPT: u32 = 2;
+pub const IP6T_TCP_INV_FLAGS: u32 = 4;
+pub const IP6T_TCP_INV_OPTION: u32 = 8;
+pub const IP6T_TCP_INV_MASK: u32 = 15;
+pub const IP6T_UDP_INV_SRCPT: u32 = 1;
+pub const IP6T_UDP_INV_DSTPT: u32 = 2;
+pub const IP6T_UDP_INV_MASK: u32 = 3;
+pub const IP6T_STANDARD_TARGET: &[u8; 1] = b"\0";
+pub const IP6T_ERROR_TARGET: &[u8; 6] = b"ERROR\0";
+pub const IP6T_F_PROTO: u32 = 1;
+pub const IP6T_F_TOS: u32 = 2;
+pub const IP6T_F_GOTO: u32 = 4;
+pub const IP6T_F_MASK: u32 = 7;
+pub const IP6T_INV_VIA_IN: u32 = 1;
+pub const IP6T_INV_VIA_OUT: u32 = 2;
+pub const IP6T_INV_TOS: u32 = 4;
+pub const IP6T_INV_SRCIP: u32 = 8;
+pub const IP6T_INV_DSTIP: u32 = 16;
+pub const IP6T_INV_FRAG: u32 = 32;
+pub const IP6T_INV_PROTO: u32 = 64;
+pub const IP6T_INV_MASK: u32 = 127;
+pub const IP6T_BASE_CTL: u32 = 64;
+pub const IP6T_SO_SET_REPLACE: u32 = 64;
+pub const IP6T_SO_SET_ADD_COUNTERS: u32 = 65;
+pub const IP6T_SO_SET_MAX: u32 = 65;
+pub const IP6T_SO_GET_INFO: u32 = 64;
+pub const IP6T_SO_GET_ENTRIES: u32 = 65;
+pub const IP6T_SO_GET_REVISION_MATCH: u32 = 68;
+pub const IP6T_SO_GET_REVISION_TARGET: u32 = 69;
+pub const IP6T_SO_GET_MAX: u32 = 69;
+pub const IP6T_SO_ORIGINAL_DST: u32 = 80;
+pub const IP6T_ICMP_INV: u32 = 1;
+pub const NF_IP_PRE_ROUTING: u32 = 0;
+pub const NF_IP_LOCAL_IN: u32 = 1;
+pub const NF_IP_FORWARD: u32 = 2;
+pub const NF_IP_LOCAL_OUT: u32 = 3;
+pub const NF_IP_POST_ROUTING: u32 = 4;
+pub const NF_IP_NUMHOOKS: u32 = 5;
+pub const SO_ORIGINAL_DST: u32 = 80;
pub const SHUT_RD: u32 = 0;
pub const SHUT_WR: u32 = 1;
pub const SHUT_RDWR: u32 = 2;
@@ -1186,6 +1574,25 @@ pub const TCP_NLA_BYTES_NOTSENT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_NO
pub const TCP_NLA_EDT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_EDT;
pub const TCP_NLA_TTL: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TTL;
pub const TCP_NLA_REHASH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REHASH;
+pub const IF_OPER_UNKNOWN: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_UNKNOWN;
+pub const IF_OPER_NOTPRESENT: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_NOTPRESENT;
+pub const IF_OPER_DOWN: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_DOWN;
+pub const IF_OPER_LOWERLAYERDOWN: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_LOWERLAYERDOWN;
+pub const IF_OPER_TESTING: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_TESTING;
+pub const IF_OPER_DORMANT: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_DORMANT;
+pub const IF_OPER_UP: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_UP;
+pub const IF_LINK_MODE_DEFAULT: _bindgen_ty_8 = _bindgen_ty_8::IF_LINK_MODE_DEFAULT;
+pub const IF_LINK_MODE_DORMANT: _bindgen_ty_8 = _bindgen_ty_8::IF_LINK_MODE_DORMANT;
+pub const IF_LINK_MODE_TESTING: _bindgen_ty_8 = _bindgen_ty_8::IF_LINK_MODE_TESTING;
+pub const NFPROTO_UNSPEC: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_UNSPEC;
+pub const NFPROTO_INET: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_INET;
+pub const NFPROTO_IPV4: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_IPV4;
+pub const NFPROTO_ARP: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_ARP;
+pub const NFPROTO_NETDEV: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_NETDEV;
+pub const NFPROTO_BRIDGE: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_BRIDGE;
+pub const NFPROTO_IPV6: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_IPV6;
+pub const NFPROTO_DECNET: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_DECNET;
+pub const NFPROTO_NUMPROTO: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_NUMPROTO;
#[repr(u32)]
#[non_exhaustive]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
@@ -1409,6 +1816,121 @@ TCP_NLA_EDT = 25,
TCP_NLA_TTL = 26,
TCP_NLA_REHASH = 27,
}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum net_device_flags {
+IFF_UP = 1,
+IFF_BROADCAST = 2,
+IFF_DEBUG = 4,
+IFF_LOOPBACK = 8,
+IFF_POINTOPOINT = 16,
+IFF_NOTRAILERS = 32,
+IFF_RUNNING = 64,
+IFF_NOARP = 128,
+IFF_PROMISC = 256,
+IFF_ALLMULTI = 512,
+IFF_MASTER = 1024,
+IFF_SLAVE = 2048,
+IFF_MULTICAST = 4096,
+IFF_PORTSEL = 8192,
+IFF_AUTOMEDIA = 16384,
+IFF_DYNAMIC = 32768,
+IFF_LOWER_UP = 65536,
+IFF_DORMANT = 131072,
+IFF_ECHO = 262144,
+}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum _bindgen_ty_7 {
+IF_OPER_UNKNOWN = 0,
+IF_OPER_NOTPRESENT = 1,
+IF_OPER_DOWN = 2,
+IF_OPER_LOWERLAYERDOWN = 3,
+IF_OPER_TESTING = 4,
+IF_OPER_DORMANT = 5,
+IF_OPER_UP = 6,
+}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum _bindgen_ty_8 {
+IF_LINK_MODE_DEFAULT = 0,
+IF_LINK_MODE_DORMANT = 1,
+IF_LINK_MODE_TESTING = 2,
+}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum nf_inet_hooks {
+NF_INET_PRE_ROUTING = 0,
+NF_INET_LOCAL_IN = 1,
+NF_INET_FORWARD = 2,
+NF_INET_LOCAL_OUT = 3,
+NF_INET_POST_ROUTING = 4,
+NF_INET_NUMHOOKS = 5,
+}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum nf_dev_hooks {
+NF_NETDEV_INGRESS = 0,
+NF_NETDEV_EGRESS = 1,
+NF_NETDEV_NUMHOOKS = 2,
+}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum _bindgen_ty_9 {
+NFPROTO_UNSPEC = 0,
+NFPROTO_INET = 1,
+NFPROTO_IPV4 = 2,
+NFPROTO_ARP = 3,
+NFPROTO_NETDEV = 5,
+NFPROTO_BRIDGE = 7,
+NFPROTO_IPV6 = 10,
+NFPROTO_DECNET = 12,
+NFPROTO_NUMPROTO = 13,
+}
+#[repr(i32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum nf_ip6_hook_priorities {
+NF_IP6_PRI_FIRST = -2147483648,
+NF_IP6_PRI_RAW_BEFORE_DEFRAG = -450,
+NF_IP6_PRI_CONNTRACK_DEFRAG = -400,
+NF_IP6_PRI_RAW = -300,
+NF_IP6_PRI_SELINUX_FIRST = -225,
+NF_IP6_PRI_CONNTRACK = -200,
+NF_IP6_PRI_MANGLE = -150,
+NF_IP6_PRI_NAT_DST = -100,
+NF_IP6_PRI_FILTER = 0,
+NF_IP6_PRI_SECURITY = 50,
+NF_IP6_PRI_NAT_SRC = 100,
+NF_IP6_PRI_SELINUX_LAST = 225,
+NF_IP6_PRI_CONNTRACK_HELPER = 300,
+NF_IP6_PRI_LAST = 2147483647,
+}
+#[repr(i32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum nf_ip_hook_priorities {
+NF_IP_PRI_FIRST = -2147483648,
+NF_IP_PRI_RAW_BEFORE_DEFRAG = -450,
+NF_IP_PRI_CONNTRACK_DEFRAG = -400,
+NF_IP_PRI_RAW = -300,
+NF_IP_PRI_SELINUX_FIRST = -225,
+NF_IP_PRI_CONNTRACK = -200,
+NF_IP_PRI_MANGLE = -150,
+NF_IP_PRI_NAT_DST = -100,
+NF_IP_PRI_FILTER = 0,
+NF_IP_PRI_SECURITY = 50,
+NF_IP_PRI_NAT_SRC = 100,
+NF_IP_PRI_SELINUX_LAST = 225,
+NF_IP_PRI_CONNTRACK_HELPER = 300,
+NF_IP_PRI_CONNTRACK_CONFIRM = 2147483647,
+}
#[repr(C)]
#[derive(Copy, Clone)]
pub union __kernel_sockaddr_storage__bindgen_ty_1 {
@@ -1440,6 +1962,69 @@ pub union tcp_word_hdr {
pub hdr: tcphdr,
pub words: [__be32; 5usize],
}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union if_settings__bindgen_ty_1 {
+pub raw_hdlc: *mut raw_hdlc_proto,
+pub cisco: *mut cisco_proto,
+pub fr: *mut fr_proto,
+pub fr_pvc: *mut fr_proto_pvc,
+pub fr_pvc_info: *mut fr_proto_pvc_info,
+pub x25: *mut x25_hdlc_proto,
+pub sync: *mut sync_serial_settings,
+pub te1: *mut te1_settings,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union ifreq__bindgen_ty_1 {
+pub ifrn_name: [crate::ctypes::c_char; 16usize],
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union ifreq__bindgen_ty_2 {
+pub ifru_addr: sockaddr,
+pub ifru_dstaddr: sockaddr,
+pub ifru_broadaddr: sockaddr,
+pub ifru_netmask: sockaddr,
+pub ifru_hwaddr: sockaddr,
+pub ifru_flags: crate::ctypes::c_short,
+pub ifru_ivalue: crate::ctypes::c_int,
+pub ifru_mtu: crate::ctypes::c_int,
+pub ifru_map: ifmap,
+pub ifru_slave: [crate::ctypes::c_char; 16usize],
+pub ifru_newname: [crate::ctypes::c_char; 16usize],
+pub ifru_data: *mut crate::ctypes::c_void,
+pub ifru_settings: if_settings,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union ifconf__bindgen_ty_1 {
+pub ifcu_buf: *mut crate::ctypes::c_char,
+pub ifcu_req: *mut ifreq,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union nf_inet_addr {
+pub all: [__u32; 4usize],
+pub ip: __be32,
+pub ip6: [__be32; 4usize],
+pub in_: in_addr,
+pub in6: in6_addr,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union xt_entry_match__bindgen_ty_1 {
+pub user: xt_entry_match__bindgen_ty_1__bindgen_ty_1,
+pub kernel: xt_entry_match__bindgen_ty_1__bindgen_ty_2,
+pub match_size: __u16,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union xt_entry_target__bindgen_ty_1 {
+pub user: xt_entry_target__bindgen_ty_1__bindgen_ty_1,
+pub kernel: xt_entry_target__bindgen_ty_1__bindgen_ty_2,
+pub target_size: __u16,
+}
impl<Storage> __BindgenBitfieldUnit<Storage> {
#[inline]
pub const fn new(storage: Storage) -> Self {
@@ -1865,3 +2450,9 @@ tcpi_fastopen_client_fail as u64
__bindgen_bitfield_unit
}
}
+impl nf_inet_hooks {
+pub const NF_INET_INGRESS: nf_inet_hooks = nf_inet_hooks::NF_INET_NUMHOOKS;
+}
+impl nf_ip_hook_priorities {
+pub const NF_IP_PRI_LAST: nf_ip_hook_priorities = nf_ip_hook_priorities::NF_IP_PRI_CONNTRACK_CONFIRM;
+}
diff --git a/vendor/linux-raw-sys/src/mips32r6/general.rs b/vendor/linux-raw-sys/src/mips32r6/general.rs
index 275eb6536..3ddd66131 100644
--- a/vendor/linux-raw-sys/src/mips32r6/general.rs
+++ b/vendor/linux-raw-sys/src/mips32r6/general.rs
@@ -1619,6 +1619,19 @@ pub const POLLRDHUP: u32 = 8192;
pub const GRND_NONBLOCK: u32 = 1;
pub const GRND_RANDOM: u32 = 2;
pub const GRND_INSECURE: u32 = 4;
+pub const LINUX_REBOOT_MAGIC1: u32 = 4276215469;
+pub const LINUX_REBOOT_MAGIC2: u32 = 672274793;
+pub const LINUX_REBOOT_MAGIC2A: u32 = 85072278;
+pub const LINUX_REBOOT_MAGIC2B: u32 = 369367448;
+pub const LINUX_REBOOT_MAGIC2C: u32 = 537993216;
+pub const LINUX_REBOOT_CMD_RESTART: u32 = 19088743;
+pub const LINUX_REBOOT_CMD_HALT: u32 = 3454992675;
+pub const LINUX_REBOOT_CMD_CAD_ON: u32 = 2309737967;
+pub const LINUX_REBOOT_CMD_CAD_OFF: u32 = 0;
+pub const LINUX_REBOOT_CMD_POWER_OFF: u32 = 1126301404;
+pub const LINUX_REBOOT_CMD_RESTART2: u32 = 2712847316;
+pub const LINUX_REBOOT_CMD_SW_SUSPEND: u32 = 3489725666;
+pub const LINUX_REBOOT_CMD_KEXEC: u32 = 1163412803;
pub const ITIMER_REAL: u32 = 0;
pub const ITIMER_VIRTUAL: u32 = 1;
pub const ITIMER_PROF: u32 = 2;
diff --git a/vendor/linux-raw-sys/src/mips32r6/net.rs b/vendor/linux-raw-sys/src/mips32r6/net.rs
index a0386f4bb..ff3114315 100644
--- a/vendor/linux-raw-sys/src/mips32r6/net.rs
+++ b/vendor/linux-raw-sys/src/mips32r6/net.rs
@@ -476,6 +476,255 @@ pub __storage: __kernel_sockaddr_storage,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
+pub struct sync_serial_settings {
+pub clock_rate: crate::ctypes::c_uint,
+pub clock_type: crate::ctypes::c_uint,
+pub loopback: crate::ctypes::c_ushort,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct te1_settings {
+pub clock_rate: crate::ctypes::c_uint,
+pub clock_type: crate::ctypes::c_uint,
+pub loopback: crate::ctypes::c_ushort,
+pub slot_map: crate::ctypes::c_uint,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct raw_hdlc_proto {
+pub encoding: crate::ctypes::c_ushort,
+pub parity: crate::ctypes::c_ushort,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct fr_proto {
+pub t391: crate::ctypes::c_uint,
+pub t392: crate::ctypes::c_uint,
+pub n391: crate::ctypes::c_uint,
+pub n392: crate::ctypes::c_uint,
+pub n393: crate::ctypes::c_uint,
+pub lmi: crate::ctypes::c_ushort,
+pub dce: crate::ctypes::c_ushort,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct fr_proto_pvc {
+pub dlci: crate::ctypes::c_uint,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct fr_proto_pvc_info {
+pub dlci: crate::ctypes::c_uint,
+pub master: [crate::ctypes::c_char; 16usize],
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct cisco_proto {
+pub interval: crate::ctypes::c_uint,
+pub timeout: crate::ctypes::c_uint,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct x25_hdlc_proto {
+pub dce: crate::ctypes::c_ushort,
+pub modulo: crate::ctypes::c_uint,
+pub window: crate::ctypes::c_uint,
+pub t1: crate::ctypes::c_uint,
+pub t2: crate::ctypes::c_uint,
+pub n2: crate::ctypes::c_uint,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct ifmap {
+pub mem_start: crate::ctypes::c_ulong,
+pub mem_end: crate::ctypes::c_ulong,
+pub base_addr: crate::ctypes::c_ushort,
+pub irq: crate::ctypes::c_uchar,
+pub dma: crate::ctypes::c_uchar,
+pub port: crate::ctypes::c_uchar,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub struct if_settings {
+pub type_: crate::ctypes::c_uint,
+pub size: crate::ctypes::c_uint,
+pub ifs_ifsu: if_settings__bindgen_ty_1,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub struct ifreq {
+pub ifr_ifrn: ifreq__bindgen_ty_1,
+pub ifr_ifru: ifreq__bindgen_ty_2,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub struct ifconf {
+pub ifc_len: crate::ctypes::c_int,
+pub ifc_ifcu: ifconf__bindgen_ty_1,
+}
+#[repr(C)]
+pub struct xt_entry_match {
+pub u: xt_entry_match__bindgen_ty_1,
+pub data: __IncompleteArrayField<crate::ctypes::c_uchar>,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_entry_match__bindgen_ty_1__bindgen_ty_1 {
+pub match_size: __u16,
+pub name: [crate::ctypes::c_char; 29usize],
+pub revision: __u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_entry_match__bindgen_ty_1__bindgen_ty_2 {
+pub match_size: __u16,
+pub match_: *mut xt_match,
+}
+#[repr(C)]
+pub struct xt_entry_target {
+pub u: xt_entry_target__bindgen_ty_1,
+pub data: __IncompleteArrayField<crate::ctypes::c_uchar>,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_entry_target__bindgen_ty_1__bindgen_ty_1 {
+pub target_size: __u16,
+pub name: [crate::ctypes::c_char; 29usize],
+pub revision: __u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_entry_target__bindgen_ty_1__bindgen_ty_2 {
+pub target_size: __u16,
+pub target: *mut xt_target,
+}
+#[repr(C)]
+pub struct xt_standard_target {
+pub target: xt_entry_target,
+pub verdict: crate::ctypes::c_int,
+}
+#[repr(C)]
+pub struct xt_error_target {
+pub target: xt_entry_target,
+pub errorname: [crate::ctypes::c_char; 30usize],
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_get_revision {
+pub name: [crate::ctypes::c_char; 29usize],
+pub revision: __u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct _xt_align {
+pub u8_: __u8,
+pub u16_: __u16,
+pub u32_: __u32,
+pub u64_: __u64,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_counters {
+pub pcnt: __u64,
+pub bcnt: __u64,
+}
+#[repr(C)]
+#[derive(Debug)]
+pub struct xt_counters_info {
+pub name: [crate::ctypes::c_char; 32usize],
+pub num_counters: crate::ctypes::c_uint,
+pub counters: __IncompleteArrayField<xt_counters>,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_tcp {
+pub spts: [__u16; 2usize],
+pub dpts: [__u16; 2usize],
+pub option: __u8,
+pub flg_mask: __u8,
+pub flg_cmp: __u8,
+pub invflags: __u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_udp {
+pub spts: [__u16; 2usize],
+pub dpts: [__u16; 2usize],
+pub invflags: __u8,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub struct ip6t_ip6 {
+pub src: in6_addr,
+pub dst: in6_addr,
+pub smsk: in6_addr,
+pub dmsk: in6_addr,
+pub iniface: [crate::ctypes::c_char; 16usize],
+pub outiface: [crate::ctypes::c_char; 16usize],
+pub iniface_mask: [crate::ctypes::c_uchar; 16usize],
+pub outiface_mask: [crate::ctypes::c_uchar; 16usize],
+pub proto: __u16,
+pub tos: __u8,
+pub flags: __u8,
+pub invflags: __u8,
+}
+#[repr(C)]
+pub struct ip6t_entry {
+pub ipv6: ip6t_ip6,
+pub nfcache: crate::ctypes::c_uint,
+pub target_offset: __u16,
+pub next_offset: __u16,
+pub comefrom: crate::ctypes::c_uint,
+pub counters: xt_counters,
+pub elems: __IncompleteArrayField<crate::ctypes::c_uchar>,
+}
+#[repr(C)]
+pub struct ip6t_standard {
+pub entry: ip6t_entry,
+pub target: xt_standard_target,
+}
+#[repr(C)]
+pub struct ip6t_error {
+pub entry: ip6t_entry,
+pub target: xt_error_target,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct ip6t_icmp {
+pub type_: __u8,
+pub code: [__u8; 2usize],
+pub invflags: __u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct ip6t_getinfo {
+pub name: [crate::ctypes::c_char; 32usize],
+pub valid_hooks: crate::ctypes::c_uint,
+pub hook_entry: [crate::ctypes::c_uint; 5usize],
+pub underflow: [crate::ctypes::c_uint; 5usize],
+pub num_entries: crate::ctypes::c_uint,
+pub size: crate::ctypes::c_uint,
+}
+#[repr(C)]
+pub struct ip6t_replace {
+pub name: [crate::ctypes::c_char; 32usize],
+pub valid_hooks: crate::ctypes::c_uint,
+pub num_entries: crate::ctypes::c_uint,
+pub size: crate::ctypes::c_uint,
+pub hook_entry: [crate::ctypes::c_uint; 5usize],
+pub underflow: [crate::ctypes::c_uint; 5usize],
+pub num_counters: crate::ctypes::c_uint,
+pub counters: *mut xt_counters,
+pub entries: __IncompleteArrayField<ip6t_entry>,
+}
+#[repr(C)]
+pub struct ip6t_get_entries {
+pub name: [crate::ctypes::c_char; 32usize],
+pub size: crate::ctypes::c_uint,
+pub entrytable: __IncompleteArrayField<ip6t_entry>,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
pub struct linger {
pub l_onoff: crate::ctypes::c_int,
pub l_linger: crate::ctypes::c_int,
@@ -513,6 +762,16 @@ pub msg_len: crate::ctypes::c_uint,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
+pub struct xt_match {
+pub _address: u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_target {
+pub _address: u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
pub struct iovec {
pub _address: u8,
}
@@ -958,6 +1217,135 @@ pub const TCP_MD5SIG_FLAG_PREFIX: u32 = 1;
pub const TCP_MD5SIG_FLAG_IFINDEX: u32 = 2;
pub const TCP_RECEIVE_ZEROCOPY_FLAG_TLB_CLEAN_HINT: u32 = 1;
pub const UNIX_PATH_MAX: u32 = 108;
+pub const IFNAMSIZ: u32 = 16;
+pub const IFALIASZ: u32 = 256;
+pub const ALTIFNAMSIZ: u32 = 128;
+pub const GENERIC_HDLC_VERSION: u32 = 4;
+pub const CLOCK_DEFAULT: u32 = 0;
+pub const CLOCK_EXT: u32 = 1;
+pub const CLOCK_INT: u32 = 2;
+pub const CLOCK_TXINT: u32 = 3;
+pub const CLOCK_TXFROMRX: u32 = 4;
+pub const ENCODING_DEFAULT: u32 = 0;
+pub const ENCODING_NRZ: u32 = 1;
+pub const ENCODING_NRZI: u32 = 2;
+pub const ENCODING_FM_MARK: u32 = 3;
+pub const ENCODING_FM_SPACE: u32 = 4;
+pub const ENCODING_MANCHESTER: u32 = 5;
+pub const PARITY_DEFAULT: u32 = 0;
+pub const PARITY_NONE: u32 = 1;
+pub const PARITY_CRC16_PR0: u32 = 2;
+pub const PARITY_CRC16_PR1: u32 = 3;
+pub const PARITY_CRC16_PR0_CCITT: u32 = 4;
+pub const PARITY_CRC16_PR1_CCITT: u32 = 5;
+pub const PARITY_CRC32_PR0_CCITT: u32 = 6;
+pub const PARITY_CRC32_PR1_CCITT: u32 = 7;
+pub const LMI_DEFAULT: u32 = 0;
+pub const LMI_NONE: u32 = 1;
+pub const LMI_ANSI: u32 = 2;
+pub const LMI_CCITT: u32 = 3;
+pub const LMI_CISCO: u32 = 4;
+pub const IF_GET_IFACE: u32 = 1;
+pub const IF_GET_PROTO: u32 = 2;
+pub const IF_IFACE_V35: u32 = 4096;
+pub const IF_IFACE_V24: u32 = 4097;
+pub const IF_IFACE_X21: u32 = 4098;
+pub const IF_IFACE_T1: u32 = 4099;
+pub const IF_IFACE_E1: u32 = 4100;
+pub const IF_IFACE_SYNC_SERIAL: u32 = 4101;
+pub const IF_IFACE_X21D: u32 = 4102;
+pub const IF_PROTO_HDLC: u32 = 8192;
+pub const IF_PROTO_PPP: u32 = 8193;
+pub const IF_PROTO_CISCO: u32 = 8194;
+pub const IF_PROTO_FR: u32 = 8195;
+pub const IF_PROTO_FR_ADD_PVC: u32 = 8196;
+pub const IF_PROTO_FR_DEL_PVC: u32 = 8197;
+pub const IF_PROTO_X25: u32 = 8198;
+pub const IF_PROTO_HDLC_ETH: u32 = 8199;
+pub const IF_PROTO_FR_ADD_ETH_PVC: u32 = 8200;
+pub const IF_PROTO_FR_DEL_ETH_PVC: u32 = 8201;
+pub const IF_PROTO_FR_PVC: u32 = 8202;
+pub const IF_PROTO_FR_ETH_PVC: u32 = 8203;
+pub const IF_PROTO_RAW: u32 = 8204;
+pub const IFHWADDRLEN: u32 = 6;
+pub const NF_DROP: u32 = 0;
+pub const NF_ACCEPT: u32 = 1;
+pub const NF_STOLEN: u32 = 2;
+pub const NF_QUEUE: u32 = 3;
+pub const NF_REPEAT: u32 = 4;
+pub const NF_STOP: u32 = 5;
+pub const NF_MAX_VERDICT: u32 = 5;
+pub const NF_VERDICT_MASK: u32 = 255;
+pub const NF_VERDICT_FLAG_QUEUE_BYPASS: u32 = 32768;
+pub const NF_VERDICT_QMASK: u32 = 4294901760;
+pub const NF_VERDICT_QBITS: u32 = 16;
+pub const NF_VERDICT_BITS: u32 = 16;
+pub const NF_IP6_PRE_ROUTING: u32 = 0;
+pub const NF_IP6_LOCAL_IN: u32 = 1;
+pub const NF_IP6_FORWARD: u32 = 2;
+pub const NF_IP6_LOCAL_OUT: u32 = 3;
+pub const NF_IP6_POST_ROUTING: u32 = 4;
+pub const NF_IP6_NUMHOOKS: u32 = 5;
+pub const XT_FUNCTION_MAXNAMELEN: u32 = 30;
+pub const XT_EXTENSION_MAXNAMELEN: u32 = 29;
+pub const XT_TABLE_MAXNAMELEN: u32 = 32;
+pub const XT_CONTINUE: u32 = 4294967295;
+pub const XT_RETURN: i32 = -5;
+pub const XT_STANDARD_TARGET: &[u8; 1] = b"\0";
+pub const XT_ERROR_TARGET: &[u8; 6] = b"ERROR\0";
+pub const XT_INV_PROTO: u32 = 64;
+pub const IP6T_FUNCTION_MAXNAMELEN: u32 = 30;
+pub const IP6T_TABLE_MAXNAMELEN: u32 = 32;
+pub const IP6T_CONTINUE: u32 = 4294967295;
+pub const IP6T_RETURN: i32 = -5;
+pub const XT_TCP_INV_SRCPT: u32 = 1;
+pub const XT_TCP_INV_DSTPT: u32 = 2;
+pub const XT_TCP_INV_FLAGS: u32 = 4;
+pub const XT_TCP_INV_OPTION: u32 = 8;
+pub const XT_TCP_INV_MASK: u32 = 15;
+pub const XT_UDP_INV_SRCPT: u32 = 1;
+pub const XT_UDP_INV_DSTPT: u32 = 2;
+pub const XT_UDP_INV_MASK: u32 = 3;
+pub const IP6T_TCP_INV_SRCPT: u32 = 1;
+pub const IP6T_TCP_INV_DSTPT: u32 = 2;
+pub const IP6T_TCP_INV_FLAGS: u32 = 4;
+pub const IP6T_TCP_INV_OPTION: u32 = 8;
+pub const IP6T_TCP_INV_MASK: u32 = 15;
+pub const IP6T_UDP_INV_SRCPT: u32 = 1;
+pub const IP6T_UDP_INV_DSTPT: u32 = 2;
+pub const IP6T_UDP_INV_MASK: u32 = 3;
+pub const IP6T_STANDARD_TARGET: &[u8; 1] = b"\0";
+pub const IP6T_ERROR_TARGET: &[u8; 6] = b"ERROR\0";
+pub const IP6T_F_PROTO: u32 = 1;
+pub const IP6T_F_TOS: u32 = 2;
+pub const IP6T_F_GOTO: u32 = 4;
+pub const IP6T_F_MASK: u32 = 7;
+pub const IP6T_INV_VIA_IN: u32 = 1;
+pub const IP6T_INV_VIA_OUT: u32 = 2;
+pub const IP6T_INV_TOS: u32 = 4;
+pub const IP6T_INV_SRCIP: u32 = 8;
+pub const IP6T_INV_DSTIP: u32 = 16;
+pub const IP6T_INV_FRAG: u32 = 32;
+pub const IP6T_INV_PROTO: u32 = 64;
+pub const IP6T_INV_MASK: u32 = 127;
+pub const IP6T_BASE_CTL: u32 = 64;
+pub const IP6T_SO_SET_REPLACE: u32 = 64;
+pub const IP6T_SO_SET_ADD_COUNTERS: u32 = 65;
+pub const IP6T_SO_SET_MAX: u32 = 65;
+pub const IP6T_SO_GET_INFO: u32 = 64;
+pub const IP6T_SO_GET_ENTRIES: u32 = 65;
+pub const IP6T_SO_GET_REVISION_MATCH: u32 = 68;
+pub const IP6T_SO_GET_REVISION_TARGET: u32 = 69;
+pub const IP6T_SO_GET_MAX: u32 = 69;
+pub const IP6T_SO_ORIGINAL_DST: u32 = 80;
+pub const IP6T_ICMP_INV: u32 = 1;
+pub const NF_IP_PRE_ROUTING: u32 = 0;
+pub const NF_IP_LOCAL_IN: u32 = 1;
+pub const NF_IP_FORWARD: u32 = 2;
+pub const NF_IP_LOCAL_OUT: u32 = 3;
+pub const NF_IP_POST_ROUTING: u32 = 4;
+pub const NF_IP_NUMHOOKS: u32 = 5;
+pub const SO_ORIGINAL_DST: u32 = 80;
pub const SHUT_RD: u32 = 0;
pub const SHUT_WR: u32 = 1;
pub const SHUT_RDWR: u32 = 2;
@@ -1186,6 +1574,25 @@ pub const TCP_NLA_BYTES_NOTSENT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_NO
pub const TCP_NLA_EDT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_EDT;
pub const TCP_NLA_TTL: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TTL;
pub const TCP_NLA_REHASH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REHASH;
+pub const IF_OPER_UNKNOWN: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_UNKNOWN;
+pub const IF_OPER_NOTPRESENT: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_NOTPRESENT;
+pub const IF_OPER_DOWN: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_DOWN;
+pub const IF_OPER_LOWERLAYERDOWN: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_LOWERLAYERDOWN;
+pub const IF_OPER_TESTING: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_TESTING;
+pub const IF_OPER_DORMANT: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_DORMANT;
+pub const IF_OPER_UP: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_UP;
+pub const IF_LINK_MODE_DEFAULT: _bindgen_ty_8 = _bindgen_ty_8::IF_LINK_MODE_DEFAULT;
+pub const IF_LINK_MODE_DORMANT: _bindgen_ty_8 = _bindgen_ty_8::IF_LINK_MODE_DORMANT;
+pub const IF_LINK_MODE_TESTING: _bindgen_ty_8 = _bindgen_ty_8::IF_LINK_MODE_TESTING;
+pub const NFPROTO_UNSPEC: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_UNSPEC;
+pub const NFPROTO_INET: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_INET;
+pub const NFPROTO_IPV4: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_IPV4;
+pub const NFPROTO_ARP: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_ARP;
+pub const NFPROTO_NETDEV: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_NETDEV;
+pub const NFPROTO_BRIDGE: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_BRIDGE;
+pub const NFPROTO_IPV6: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_IPV6;
+pub const NFPROTO_DECNET: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_DECNET;
+pub const NFPROTO_NUMPROTO: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_NUMPROTO;
#[repr(u32)]
#[non_exhaustive]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
@@ -1409,6 +1816,121 @@ TCP_NLA_EDT = 25,
TCP_NLA_TTL = 26,
TCP_NLA_REHASH = 27,
}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum net_device_flags {
+IFF_UP = 1,
+IFF_BROADCAST = 2,
+IFF_DEBUG = 4,
+IFF_LOOPBACK = 8,
+IFF_POINTOPOINT = 16,
+IFF_NOTRAILERS = 32,
+IFF_RUNNING = 64,
+IFF_NOARP = 128,
+IFF_PROMISC = 256,
+IFF_ALLMULTI = 512,
+IFF_MASTER = 1024,
+IFF_SLAVE = 2048,
+IFF_MULTICAST = 4096,
+IFF_PORTSEL = 8192,
+IFF_AUTOMEDIA = 16384,
+IFF_DYNAMIC = 32768,
+IFF_LOWER_UP = 65536,
+IFF_DORMANT = 131072,
+IFF_ECHO = 262144,
+}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum _bindgen_ty_7 {
+IF_OPER_UNKNOWN = 0,
+IF_OPER_NOTPRESENT = 1,
+IF_OPER_DOWN = 2,
+IF_OPER_LOWERLAYERDOWN = 3,
+IF_OPER_TESTING = 4,
+IF_OPER_DORMANT = 5,
+IF_OPER_UP = 6,
+}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum _bindgen_ty_8 {
+IF_LINK_MODE_DEFAULT = 0,
+IF_LINK_MODE_DORMANT = 1,
+IF_LINK_MODE_TESTING = 2,
+}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum nf_inet_hooks {
+NF_INET_PRE_ROUTING = 0,
+NF_INET_LOCAL_IN = 1,
+NF_INET_FORWARD = 2,
+NF_INET_LOCAL_OUT = 3,
+NF_INET_POST_ROUTING = 4,
+NF_INET_NUMHOOKS = 5,
+}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum nf_dev_hooks {
+NF_NETDEV_INGRESS = 0,
+NF_NETDEV_EGRESS = 1,
+NF_NETDEV_NUMHOOKS = 2,
+}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum _bindgen_ty_9 {
+NFPROTO_UNSPEC = 0,
+NFPROTO_INET = 1,
+NFPROTO_IPV4 = 2,
+NFPROTO_ARP = 3,
+NFPROTO_NETDEV = 5,
+NFPROTO_BRIDGE = 7,
+NFPROTO_IPV6 = 10,
+NFPROTO_DECNET = 12,
+NFPROTO_NUMPROTO = 13,
+}
+#[repr(i32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum nf_ip6_hook_priorities {
+NF_IP6_PRI_FIRST = -2147483648,
+NF_IP6_PRI_RAW_BEFORE_DEFRAG = -450,
+NF_IP6_PRI_CONNTRACK_DEFRAG = -400,
+NF_IP6_PRI_RAW = -300,
+NF_IP6_PRI_SELINUX_FIRST = -225,
+NF_IP6_PRI_CONNTRACK = -200,
+NF_IP6_PRI_MANGLE = -150,
+NF_IP6_PRI_NAT_DST = -100,
+NF_IP6_PRI_FILTER = 0,
+NF_IP6_PRI_SECURITY = 50,
+NF_IP6_PRI_NAT_SRC = 100,
+NF_IP6_PRI_SELINUX_LAST = 225,
+NF_IP6_PRI_CONNTRACK_HELPER = 300,
+NF_IP6_PRI_LAST = 2147483647,
+}
+#[repr(i32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum nf_ip_hook_priorities {
+NF_IP_PRI_FIRST = -2147483648,
+NF_IP_PRI_RAW_BEFORE_DEFRAG = -450,
+NF_IP_PRI_CONNTRACK_DEFRAG = -400,
+NF_IP_PRI_RAW = -300,
+NF_IP_PRI_SELINUX_FIRST = -225,
+NF_IP_PRI_CONNTRACK = -200,
+NF_IP_PRI_MANGLE = -150,
+NF_IP_PRI_NAT_DST = -100,
+NF_IP_PRI_FILTER = 0,
+NF_IP_PRI_SECURITY = 50,
+NF_IP_PRI_NAT_SRC = 100,
+NF_IP_PRI_SELINUX_LAST = 225,
+NF_IP_PRI_CONNTRACK_HELPER = 300,
+NF_IP_PRI_CONNTRACK_CONFIRM = 2147483647,
+}
#[repr(C)]
#[derive(Copy, Clone)]
pub union __kernel_sockaddr_storage__bindgen_ty_1 {
@@ -1440,6 +1962,69 @@ pub union tcp_word_hdr {
pub hdr: tcphdr,
pub words: [__be32; 5usize],
}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union if_settings__bindgen_ty_1 {
+pub raw_hdlc: *mut raw_hdlc_proto,
+pub cisco: *mut cisco_proto,
+pub fr: *mut fr_proto,
+pub fr_pvc: *mut fr_proto_pvc,
+pub fr_pvc_info: *mut fr_proto_pvc_info,
+pub x25: *mut x25_hdlc_proto,
+pub sync: *mut sync_serial_settings,
+pub te1: *mut te1_settings,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union ifreq__bindgen_ty_1 {
+pub ifrn_name: [crate::ctypes::c_char; 16usize],
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union ifreq__bindgen_ty_2 {
+pub ifru_addr: sockaddr,
+pub ifru_dstaddr: sockaddr,
+pub ifru_broadaddr: sockaddr,
+pub ifru_netmask: sockaddr,
+pub ifru_hwaddr: sockaddr,
+pub ifru_flags: crate::ctypes::c_short,
+pub ifru_ivalue: crate::ctypes::c_int,
+pub ifru_mtu: crate::ctypes::c_int,
+pub ifru_map: ifmap,
+pub ifru_slave: [crate::ctypes::c_char; 16usize],
+pub ifru_newname: [crate::ctypes::c_char; 16usize],
+pub ifru_data: *mut crate::ctypes::c_void,
+pub ifru_settings: if_settings,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union ifconf__bindgen_ty_1 {
+pub ifcu_buf: *mut crate::ctypes::c_char,
+pub ifcu_req: *mut ifreq,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union nf_inet_addr {
+pub all: [__u32; 4usize],
+pub ip: __be32,
+pub ip6: [__be32; 4usize],
+pub in_: in_addr,
+pub in6: in6_addr,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union xt_entry_match__bindgen_ty_1 {
+pub user: xt_entry_match__bindgen_ty_1__bindgen_ty_1,
+pub kernel: xt_entry_match__bindgen_ty_1__bindgen_ty_2,
+pub match_size: __u16,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union xt_entry_target__bindgen_ty_1 {
+pub user: xt_entry_target__bindgen_ty_1__bindgen_ty_1,
+pub kernel: xt_entry_target__bindgen_ty_1__bindgen_ty_2,
+pub target_size: __u16,
+}
impl<Storage> __BindgenBitfieldUnit<Storage> {
#[inline]
pub const fn new(storage: Storage) -> Self {
@@ -1865,3 +2450,9 @@ tcpi_fastopen_client_fail as u64
__bindgen_bitfield_unit
}
}
+impl nf_inet_hooks {
+pub const NF_INET_INGRESS: nf_inet_hooks = nf_inet_hooks::NF_INET_NUMHOOKS;
+}
+impl nf_ip_hook_priorities {
+pub const NF_IP_PRI_LAST: nf_ip_hook_priorities = nf_ip_hook_priorities::NF_IP_PRI_CONNTRACK_CONFIRM;
+}
diff --git a/vendor/linux-raw-sys/src/mips64/general.rs b/vendor/linux-raw-sys/src/mips64/general.rs
index 112de05ea..e6bca15bc 100644
--- a/vendor/linux-raw-sys/src/mips64/general.rs
+++ b/vendor/linux-raw-sys/src/mips64/general.rs
@@ -1606,6 +1606,19 @@ pub const POLLRDHUP: u32 = 8192;
pub const GRND_NONBLOCK: u32 = 1;
pub const GRND_RANDOM: u32 = 2;
pub const GRND_INSECURE: u32 = 4;
+pub const LINUX_REBOOT_MAGIC1: u32 = 4276215469;
+pub const LINUX_REBOOT_MAGIC2: u32 = 672274793;
+pub const LINUX_REBOOT_MAGIC2A: u32 = 85072278;
+pub const LINUX_REBOOT_MAGIC2B: u32 = 369367448;
+pub const LINUX_REBOOT_MAGIC2C: u32 = 537993216;
+pub const LINUX_REBOOT_CMD_RESTART: u32 = 19088743;
+pub const LINUX_REBOOT_CMD_HALT: u32 = 3454992675;
+pub const LINUX_REBOOT_CMD_CAD_ON: u32 = 2309737967;
+pub const LINUX_REBOOT_CMD_CAD_OFF: u32 = 0;
+pub const LINUX_REBOOT_CMD_POWER_OFF: u32 = 1126301404;
+pub const LINUX_REBOOT_CMD_RESTART2: u32 = 2712847316;
+pub const LINUX_REBOOT_CMD_SW_SUSPEND: u32 = 3489725666;
+pub const LINUX_REBOOT_CMD_KEXEC: u32 = 1163412803;
pub const ITIMER_REAL: u32 = 0;
pub const ITIMER_VIRTUAL: u32 = 1;
pub const ITIMER_PROF: u32 = 2;
diff --git a/vendor/linux-raw-sys/src/mips64/net.rs b/vendor/linux-raw-sys/src/mips64/net.rs
index de332d8aa..4a424f60e 100644
--- a/vendor/linux-raw-sys/src/mips64/net.rs
+++ b/vendor/linux-raw-sys/src/mips64/net.rs
@@ -476,6 +476,255 @@ pub __storage: __kernel_sockaddr_storage,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
+pub struct sync_serial_settings {
+pub clock_rate: crate::ctypes::c_uint,
+pub clock_type: crate::ctypes::c_uint,
+pub loopback: crate::ctypes::c_ushort,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct te1_settings {
+pub clock_rate: crate::ctypes::c_uint,
+pub clock_type: crate::ctypes::c_uint,
+pub loopback: crate::ctypes::c_ushort,
+pub slot_map: crate::ctypes::c_uint,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct raw_hdlc_proto {
+pub encoding: crate::ctypes::c_ushort,
+pub parity: crate::ctypes::c_ushort,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct fr_proto {
+pub t391: crate::ctypes::c_uint,
+pub t392: crate::ctypes::c_uint,
+pub n391: crate::ctypes::c_uint,
+pub n392: crate::ctypes::c_uint,
+pub n393: crate::ctypes::c_uint,
+pub lmi: crate::ctypes::c_ushort,
+pub dce: crate::ctypes::c_ushort,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct fr_proto_pvc {
+pub dlci: crate::ctypes::c_uint,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct fr_proto_pvc_info {
+pub dlci: crate::ctypes::c_uint,
+pub master: [crate::ctypes::c_char; 16usize],
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct cisco_proto {
+pub interval: crate::ctypes::c_uint,
+pub timeout: crate::ctypes::c_uint,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct x25_hdlc_proto {
+pub dce: crate::ctypes::c_ushort,
+pub modulo: crate::ctypes::c_uint,
+pub window: crate::ctypes::c_uint,
+pub t1: crate::ctypes::c_uint,
+pub t2: crate::ctypes::c_uint,
+pub n2: crate::ctypes::c_uint,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct ifmap {
+pub mem_start: crate::ctypes::c_ulong,
+pub mem_end: crate::ctypes::c_ulong,
+pub base_addr: crate::ctypes::c_ushort,
+pub irq: crate::ctypes::c_uchar,
+pub dma: crate::ctypes::c_uchar,
+pub port: crate::ctypes::c_uchar,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub struct if_settings {
+pub type_: crate::ctypes::c_uint,
+pub size: crate::ctypes::c_uint,
+pub ifs_ifsu: if_settings__bindgen_ty_1,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub struct ifreq {
+pub ifr_ifrn: ifreq__bindgen_ty_1,
+pub ifr_ifru: ifreq__bindgen_ty_2,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub struct ifconf {
+pub ifc_len: crate::ctypes::c_int,
+pub ifc_ifcu: ifconf__bindgen_ty_1,
+}
+#[repr(C)]
+pub struct xt_entry_match {
+pub u: xt_entry_match__bindgen_ty_1,
+pub data: __IncompleteArrayField<crate::ctypes::c_uchar>,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_entry_match__bindgen_ty_1__bindgen_ty_1 {
+pub match_size: __u16,
+pub name: [crate::ctypes::c_char; 29usize],
+pub revision: __u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_entry_match__bindgen_ty_1__bindgen_ty_2 {
+pub match_size: __u16,
+pub match_: *mut xt_match,
+}
+#[repr(C)]
+pub struct xt_entry_target {
+pub u: xt_entry_target__bindgen_ty_1,
+pub data: __IncompleteArrayField<crate::ctypes::c_uchar>,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_entry_target__bindgen_ty_1__bindgen_ty_1 {
+pub target_size: __u16,
+pub name: [crate::ctypes::c_char; 29usize],
+pub revision: __u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_entry_target__bindgen_ty_1__bindgen_ty_2 {
+pub target_size: __u16,
+pub target: *mut xt_target,
+}
+#[repr(C)]
+pub struct xt_standard_target {
+pub target: xt_entry_target,
+pub verdict: crate::ctypes::c_int,
+}
+#[repr(C)]
+pub struct xt_error_target {
+pub target: xt_entry_target,
+pub errorname: [crate::ctypes::c_char; 30usize],
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_get_revision {
+pub name: [crate::ctypes::c_char; 29usize],
+pub revision: __u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct _xt_align {
+pub u8_: __u8,
+pub u16_: __u16,
+pub u32_: __u32,
+pub u64_: __u64,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_counters {
+pub pcnt: __u64,
+pub bcnt: __u64,
+}
+#[repr(C)]
+#[derive(Debug)]
+pub struct xt_counters_info {
+pub name: [crate::ctypes::c_char; 32usize],
+pub num_counters: crate::ctypes::c_uint,
+pub counters: __IncompleteArrayField<xt_counters>,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_tcp {
+pub spts: [__u16; 2usize],
+pub dpts: [__u16; 2usize],
+pub option: __u8,
+pub flg_mask: __u8,
+pub flg_cmp: __u8,
+pub invflags: __u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_udp {
+pub spts: [__u16; 2usize],
+pub dpts: [__u16; 2usize],
+pub invflags: __u8,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub struct ip6t_ip6 {
+pub src: in6_addr,
+pub dst: in6_addr,
+pub smsk: in6_addr,
+pub dmsk: in6_addr,
+pub iniface: [crate::ctypes::c_char; 16usize],
+pub outiface: [crate::ctypes::c_char; 16usize],
+pub iniface_mask: [crate::ctypes::c_uchar; 16usize],
+pub outiface_mask: [crate::ctypes::c_uchar; 16usize],
+pub proto: __u16,
+pub tos: __u8,
+pub flags: __u8,
+pub invflags: __u8,
+}
+#[repr(C)]
+pub struct ip6t_entry {
+pub ipv6: ip6t_ip6,
+pub nfcache: crate::ctypes::c_uint,
+pub target_offset: __u16,
+pub next_offset: __u16,
+pub comefrom: crate::ctypes::c_uint,
+pub counters: xt_counters,
+pub elems: __IncompleteArrayField<crate::ctypes::c_uchar>,
+}
+#[repr(C)]
+pub struct ip6t_standard {
+pub entry: ip6t_entry,
+pub target: xt_standard_target,
+}
+#[repr(C)]
+pub struct ip6t_error {
+pub entry: ip6t_entry,
+pub target: xt_error_target,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct ip6t_icmp {
+pub type_: __u8,
+pub code: [__u8; 2usize],
+pub invflags: __u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct ip6t_getinfo {
+pub name: [crate::ctypes::c_char; 32usize],
+pub valid_hooks: crate::ctypes::c_uint,
+pub hook_entry: [crate::ctypes::c_uint; 5usize],
+pub underflow: [crate::ctypes::c_uint; 5usize],
+pub num_entries: crate::ctypes::c_uint,
+pub size: crate::ctypes::c_uint,
+}
+#[repr(C)]
+pub struct ip6t_replace {
+pub name: [crate::ctypes::c_char; 32usize],
+pub valid_hooks: crate::ctypes::c_uint,
+pub num_entries: crate::ctypes::c_uint,
+pub size: crate::ctypes::c_uint,
+pub hook_entry: [crate::ctypes::c_uint; 5usize],
+pub underflow: [crate::ctypes::c_uint; 5usize],
+pub num_counters: crate::ctypes::c_uint,
+pub counters: *mut xt_counters,
+pub entries: __IncompleteArrayField<ip6t_entry>,
+}
+#[repr(C)]
+pub struct ip6t_get_entries {
+pub name: [crate::ctypes::c_char; 32usize],
+pub size: crate::ctypes::c_uint,
+pub entrytable: __IncompleteArrayField<ip6t_entry>,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
pub struct linger {
pub l_onoff: crate::ctypes::c_int,
pub l_linger: crate::ctypes::c_int,
@@ -513,6 +762,16 @@ pub msg_len: crate::ctypes::c_uint,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
+pub struct xt_match {
+pub _address: u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_target {
+pub _address: u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
pub struct iovec {
pub _address: u8,
}
@@ -966,6 +1225,135 @@ pub const TCP_MD5SIG_FLAG_PREFIX: u32 = 1;
pub const TCP_MD5SIG_FLAG_IFINDEX: u32 = 2;
pub const TCP_RECEIVE_ZEROCOPY_FLAG_TLB_CLEAN_HINT: u32 = 1;
pub const UNIX_PATH_MAX: u32 = 108;
+pub const IFNAMSIZ: u32 = 16;
+pub const IFALIASZ: u32 = 256;
+pub const ALTIFNAMSIZ: u32 = 128;
+pub const GENERIC_HDLC_VERSION: u32 = 4;
+pub const CLOCK_DEFAULT: u32 = 0;
+pub const CLOCK_EXT: u32 = 1;
+pub const CLOCK_INT: u32 = 2;
+pub const CLOCK_TXINT: u32 = 3;
+pub const CLOCK_TXFROMRX: u32 = 4;
+pub const ENCODING_DEFAULT: u32 = 0;
+pub const ENCODING_NRZ: u32 = 1;
+pub const ENCODING_NRZI: u32 = 2;
+pub const ENCODING_FM_MARK: u32 = 3;
+pub const ENCODING_FM_SPACE: u32 = 4;
+pub const ENCODING_MANCHESTER: u32 = 5;
+pub const PARITY_DEFAULT: u32 = 0;
+pub const PARITY_NONE: u32 = 1;
+pub const PARITY_CRC16_PR0: u32 = 2;
+pub const PARITY_CRC16_PR1: u32 = 3;
+pub const PARITY_CRC16_PR0_CCITT: u32 = 4;
+pub const PARITY_CRC16_PR1_CCITT: u32 = 5;
+pub const PARITY_CRC32_PR0_CCITT: u32 = 6;
+pub const PARITY_CRC32_PR1_CCITT: u32 = 7;
+pub const LMI_DEFAULT: u32 = 0;
+pub const LMI_NONE: u32 = 1;
+pub const LMI_ANSI: u32 = 2;
+pub const LMI_CCITT: u32 = 3;
+pub const LMI_CISCO: u32 = 4;
+pub const IF_GET_IFACE: u32 = 1;
+pub const IF_GET_PROTO: u32 = 2;
+pub const IF_IFACE_V35: u32 = 4096;
+pub const IF_IFACE_V24: u32 = 4097;
+pub const IF_IFACE_X21: u32 = 4098;
+pub const IF_IFACE_T1: u32 = 4099;
+pub const IF_IFACE_E1: u32 = 4100;
+pub const IF_IFACE_SYNC_SERIAL: u32 = 4101;
+pub const IF_IFACE_X21D: u32 = 4102;
+pub const IF_PROTO_HDLC: u32 = 8192;
+pub const IF_PROTO_PPP: u32 = 8193;
+pub const IF_PROTO_CISCO: u32 = 8194;
+pub const IF_PROTO_FR: u32 = 8195;
+pub const IF_PROTO_FR_ADD_PVC: u32 = 8196;
+pub const IF_PROTO_FR_DEL_PVC: u32 = 8197;
+pub const IF_PROTO_X25: u32 = 8198;
+pub const IF_PROTO_HDLC_ETH: u32 = 8199;
+pub const IF_PROTO_FR_ADD_ETH_PVC: u32 = 8200;
+pub const IF_PROTO_FR_DEL_ETH_PVC: u32 = 8201;
+pub const IF_PROTO_FR_PVC: u32 = 8202;
+pub const IF_PROTO_FR_ETH_PVC: u32 = 8203;
+pub const IF_PROTO_RAW: u32 = 8204;
+pub const IFHWADDRLEN: u32 = 6;
+pub const NF_DROP: u32 = 0;
+pub const NF_ACCEPT: u32 = 1;
+pub const NF_STOLEN: u32 = 2;
+pub const NF_QUEUE: u32 = 3;
+pub const NF_REPEAT: u32 = 4;
+pub const NF_STOP: u32 = 5;
+pub const NF_MAX_VERDICT: u32 = 5;
+pub const NF_VERDICT_MASK: u32 = 255;
+pub const NF_VERDICT_FLAG_QUEUE_BYPASS: u32 = 32768;
+pub const NF_VERDICT_QMASK: u32 = 4294901760;
+pub const NF_VERDICT_QBITS: u32 = 16;
+pub const NF_VERDICT_BITS: u32 = 16;
+pub const NF_IP6_PRE_ROUTING: u32 = 0;
+pub const NF_IP6_LOCAL_IN: u32 = 1;
+pub const NF_IP6_FORWARD: u32 = 2;
+pub const NF_IP6_LOCAL_OUT: u32 = 3;
+pub const NF_IP6_POST_ROUTING: u32 = 4;
+pub const NF_IP6_NUMHOOKS: u32 = 5;
+pub const XT_FUNCTION_MAXNAMELEN: u32 = 30;
+pub const XT_EXTENSION_MAXNAMELEN: u32 = 29;
+pub const XT_TABLE_MAXNAMELEN: u32 = 32;
+pub const XT_CONTINUE: u32 = 4294967295;
+pub const XT_RETURN: i32 = -5;
+pub const XT_STANDARD_TARGET: &[u8; 1] = b"\0";
+pub const XT_ERROR_TARGET: &[u8; 6] = b"ERROR\0";
+pub const XT_INV_PROTO: u32 = 64;
+pub const IP6T_FUNCTION_MAXNAMELEN: u32 = 30;
+pub const IP6T_TABLE_MAXNAMELEN: u32 = 32;
+pub const IP6T_CONTINUE: u32 = 4294967295;
+pub const IP6T_RETURN: i32 = -5;
+pub const XT_TCP_INV_SRCPT: u32 = 1;
+pub const XT_TCP_INV_DSTPT: u32 = 2;
+pub const XT_TCP_INV_FLAGS: u32 = 4;
+pub const XT_TCP_INV_OPTION: u32 = 8;
+pub const XT_TCP_INV_MASK: u32 = 15;
+pub const XT_UDP_INV_SRCPT: u32 = 1;
+pub const XT_UDP_INV_DSTPT: u32 = 2;
+pub const XT_UDP_INV_MASK: u32 = 3;
+pub const IP6T_TCP_INV_SRCPT: u32 = 1;
+pub const IP6T_TCP_INV_DSTPT: u32 = 2;
+pub const IP6T_TCP_INV_FLAGS: u32 = 4;
+pub const IP6T_TCP_INV_OPTION: u32 = 8;
+pub const IP6T_TCP_INV_MASK: u32 = 15;
+pub const IP6T_UDP_INV_SRCPT: u32 = 1;
+pub const IP6T_UDP_INV_DSTPT: u32 = 2;
+pub const IP6T_UDP_INV_MASK: u32 = 3;
+pub const IP6T_STANDARD_TARGET: &[u8; 1] = b"\0";
+pub const IP6T_ERROR_TARGET: &[u8; 6] = b"ERROR\0";
+pub const IP6T_F_PROTO: u32 = 1;
+pub const IP6T_F_TOS: u32 = 2;
+pub const IP6T_F_GOTO: u32 = 4;
+pub const IP6T_F_MASK: u32 = 7;
+pub const IP6T_INV_VIA_IN: u32 = 1;
+pub const IP6T_INV_VIA_OUT: u32 = 2;
+pub const IP6T_INV_TOS: u32 = 4;
+pub const IP6T_INV_SRCIP: u32 = 8;
+pub const IP6T_INV_DSTIP: u32 = 16;
+pub const IP6T_INV_FRAG: u32 = 32;
+pub const IP6T_INV_PROTO: u32 = 64;
+pub const IP6T_INV_MASK: u32 = 127;
+pub const IP6T_BASE_CTL: u32 = 64;
+pub const IP6T_SO_SET_REPLACE: u32 = 64;
+pub const IP6T_SO_SET_ADD_COUNTERS: u32 = 65;
+pub const IP6T_SO_SET_MAX: u32 = 65;
+pub const IP6T_SO_GET_INFO: u32 = 64;
+pub const IP6T_SO_GET_ENTRIES: u32 = 65;
+pub const IP6T_SO_GET_REVISION_MATCH: u32 = 68;
+pub const IP6T_SO_GET_REVISION_TARGET: u32 = 69;
+pub const IP6T_SO_GET_MAX: u32 = 69;
+pub const IP6T_SO_ORIGINAL_DST: u32 = 80;
+pub const IP6T_ICMP_INV: u32 = 1;
+pub const NF_IP_PRE_ROUTING: u32 = 0;
+pub const NF_IP_LOCAL_IN: u32 = 1;
+pub const NF_IP_FORWARD: u32 = 2;
+pub const NF_IP_LOCAL_OUT: u32 = 3;
+pub const NF_IP_POST_ROUTING: u32 = 4;
+pub const NF_IP_NUMHOOKS: u32 = 5;
+pub const SO_ORIGINAL_DST: u32 = 80;
pub const SHUT_RD: u32 = 0;
pub const SHUT_WR: u32 = 1;
pub const SHUT_RDWR: u32 = 2;
@@ -1194,6 +1582,25 @@ pub const TCP_NLA_BYTES_NOTSENT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_NO
pub const TCP_NLA_EDT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_EDT;
pub const TCP_NLA_TTL: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TTL;
pub const TCP_NLA_REHASH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REHASH;
+pub const IF_OPER_UNKNOWN: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_UNKNOWN;
+pub const IF_OPER_NOTPRESENT: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_NOTPRESENT;
+pub const IF_OPER_DOWN: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_DOWN;
+pub const IF_OPER_LOWERLAYERDOWN: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_LOWERLAYERDOWN;
+pub const IF_OPER_TESTING: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_TESTING;
+pub const IF_OPER_DORMANT: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_DORMANT;
+pub const IF_OPER_UP: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_UP;
+pub const IF_LINK_MODE_DEFAULT: _bindgen_ty_8 = _bindgen_ty_8::IF_LINK_MODE_DEFAULT;
+pub const IF_LINK_MODE_DORMANT: _bindgen_ty_8 = _bindgen_ty_8::IF_LINK_MODE_DORMANT;
+pub const IF_LINK_MODE_TESTING: _bindgen_ty_8 = _bindgen_ty_8::IF_LINK_MODE_TESTING;
+pub const NFPROTO_UNSPEC: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_UNSPEC;
+pub const NFPROTO_INET: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_INET;
+pub const NFPROTO_IPV4: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_IPV4;
+pub const NFPROTO_ARP: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_ARP;
+pub const NFPROTO_NETDEV: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_NETDEV;
+pub const NFPROTO_BRIDGE: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_BRIDGE;
+pub const NFPROTO_IPV6: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_IPV6;
+pub const NFPROTO_DECNET: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_DECNET;
+pub const NFPROTO_NUMPROTO: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_NUMPROTO;
#[repr(u32)]
#[non_exhaustive]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
@@ -1417,6 +1824,121 @@ TCP_NLA_EDT = 25,
TCP_NLA_TTL = 26,
TCP_NLA_REHASH = 27,
}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum net_device_flags {
+IFF_UP = 1,
+IFF_BROADCAST = 2,
+IFF_DEBUG = 4,
+IFF_LOOPBACK = 8,
+IFF_POINTOPOINT = 16,
+IFF_NOTRAILERS = 32,
+IFF_RUNNING = 64,
+IFF_NOARP = 128,
+IFF_PROMISC = 256,
+IFF_ALLMULTI = 512,
+IFF_MASTER = 1024,
+IFF_SLAVE = 2048,
+IFF_MULTICAST = 4096,
+IFF_PORTSEL = 8192,
+IFF_AUTOMEDIA = 16384,
+IFF_DYNAMIC = 32768,
+IFF_LOWER_UP = 65536,
+IFF_DORMANT = 131072,
+IFF_ECHO = 262144,
+}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum _bindgen_ty_7 {
+IF_OPER_UNKNOWN = 0,
+IF_OPER_NOTPRESENT = 1,
+IF_OPER_DOWN = 2,
+IF_OPER_LOWERLAYERDOWN = 3,
+IF_OPER_TESTING = 4,
+IF_OPER_DORMANT = 5,
+IF_OPER_UP = 6,
+}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum _bindgen_ty_8 {
+IF_LINK_MODE_DEFAULT = 0,
+IF_LINK_MODE_DORMANT = 1,
+IF_LINK_MODE_TESTING = 2,
+}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum nf_inet_hooks {
+NF_INET_PRE_ROUTING = 0,
+NF_INET_LOCAL_IN = 1,
+NF_INET_FORWARD = 2,
+NF_INET_LOCAL_OUT = 3,
+NF_INET_POST_ROUTING = 4,
+NF_INET_NUMHOOKS = 5,
+}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum nf_dev_hooks {
+NF_NETDEV_INGRESS = 0,
+NF_NETDEV_EGRESS = 1,
+NF_NETDEV_NUMHOOKS = 2,
+}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum _bindgen_ty_9 {
+NFPROTO_UNSPEC = 0,
+NFPROTO_INET = 1,
+NFPROTO_IPV4 = 2,
+NFPROTO_ARP = 3,
+NFPROTO_NETDEV = 5,
+NFPROTO_BRIDGE = 7,
+NFPROTO_IPV6 = 10,
+NFPROTO_DECNET = 12,
+NFPROTO_NUMPROTO = 13,
+}
+#[repr(i32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum nf_ip6_hook_priorities {
+NF_IP6_PRI_FIRST = -2147483648,
+NF_IP6_PRI_RAW_BEFORE_DEFRAG = -450,
+NF_IP6_PRI_CONNTRACK_DEFRAG = -400,
+NF_IP6_PRI_RAW = -300,
+NF_IP6_PRI_SELINUX_FIRST = -225,
+NF_IP6_PRI_CONNTRACK = -200,
+NF_IP6_PRI_MANGLE = -150,
+NF_IP6_PRI_NAT_DST = -100,
+NF_IP6_PRI_FILTER = 0,
+NF_IP6_PRI_SECURITY = 50,
+NF_IP6_PRI_NAT_SRC = 100,
+NF_IP6_PRI_SELINUX_LAST = 225,
+NF_IP6_PRI_CONNTRACK_HELPER = 300,
+NF_IP6_PRI_LAST = 2147483647,
+}
+#[repr(i32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum nf_ip_hook_priorities {
+NF_IP_PRI_FIRST = -2147483648,
+NF_IP_PRI_RAW_BEFORE_DEFRAG = -450,
+NF_IP_PRI_CONNTRACK_DEFRAG = -400,
+NF_IP_PRI_RAW = -300,
+NF_IP_PRI_SELINUX_FIRST = -225,
+NF_IP_PRI_CONNTRACK = -200,
+NF_IP_PRI_MANGLE = -150,
+NF_IP_PRI_NAT_DST = -100,
+NF_IP_PRI_FILTER = 0,
+NF_IP_PRI_SECURITY = 50,
+NF_IP_PRI_NAT_SRC = 100,
+NF_IP_PRI_SELINUX_LAST = 225,
+NF_IP_PRI_CONNTRACK_HELPER = 300,
+NF_IP_PRI_CONNTRACK_CONFIRM = 2147483647,
+}
#[repr(C)]
#[derive(Copy, Clone)]
pub union __kernel_sockaddr_storage__bindgen_ty_1 {
@@ -1448,6 +1970,69 @@ pub union tcp_word_hdr {
pub hdr: tcphdr,
pub words: [__be32; 5usize],
}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union if_settings__bindgen_ty_1 {
+pub raw_hdlc: *mut raw_hdlc_proto,
+pub cisco: *mut cisco_proto,
+pub fr: *mut fr_proto,
+pub fr_pvc: *mut fr_proto_pvc,
+pub fr_pvc_info: *mut fr_proto_pvc_info,
+pub x25: *mut x25_hdlc_proto,
+pub sync: *mut sync_serial_settings,
+pub te1: *mut te1_settings,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union ifreq__bindgen_ty_1 {
+pub ifrn_name: [crate::ctypes::c_char; 16usize],
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union ifreq__bindgen_ty_2 {
+pub ifru_addr: sockaddr,
+pub ifru_dstaddr: sockaddr,
+pub ifru_broadaddr: sockaddr,
+pub ifru_netmask: sockaddr,
+pub ifru_hwaddr: sockaddr,
+pub ifru_flags: crate::ctypes::c_short,
+pub ifru_ivalue: crate::ctypes::c_int,
+pub ifru_mtu: crate::ctypes::c_int,
+pub ifru_map: ifmap,
+pub ifru_slave: [crate::ctypes::c_char; 16usize],
+pub ifru_newname: [crate::ctypes::c_char; 16usize],
+pub ifru_data: *mut crate::ctypes::c_void,
+pub ifru_settings: if_settings,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union ifconf__bindgen_ty_1 {
+pub ifcu_buf: *mut crate::ctypes::c_char,
+pub ifcu_req: *mut ifreq,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union nf_inet_addr {
+pub all: [__u32; 4usize],
+pub ip: __be32,
+pub ip6: [__be32; 4usize],
+pub in_: in_addr,
+pub in6: in6_addr,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union xt_entry_match__bindgen_ty_1 {
+pub user: xt_entry_match__bindgen_ty_1__bindgen_ty_1,
+pub kernel: xt_entry_match__bindgen_ty_1__bindgen_ty_2,
+pub match_size: __u16,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union xt_entry_target__bindgen_ty_1 {
+pub user: xt_entry_target__bindgen_ty_1__bindgen_ty_1,
+pub kernel: xt_entry_target__bindgen_ty_1__bindgen_ty_2,
+pub target_size: __u16,
+}
impl<Storage> __BindgenBitfieldUnit<Storage> {
#[inline]
pub const fn new(storage: Storage) -> Self {
@@ -1873,3 +2458,9 @@ tcpi_fastopen_client_fail as u64
__bindgen_bitfield_unit
}
}
+impl nf_inet_hooks {
+pub const NF_INET_INGRESS: nf_inet_hooks = nf_inet_hooks::NF_INET_NUMHOOKS;
+}
+impl nf_ip_hook_priorities {
+pub const NF_IP_PRI_LAST: nf_ip_hook_priorities = nf_ip_hook_priorities::NF_IP_PRI_CONNTRACK_CONFIRM;
+}
diff --git a/vendor/linux-raw-sys/src/mips64r6/general.rs b/vendor/linux-raw-sys/src/mips64r6/general.rs
index 112de05ea..e6bca15bc 100644
--- a/vendor/linux-raw-sys/src/mips64r6/general.rs
+++ b/vendor/linux-raw-sys/src/mips64r6/general.rs
@@ -1606,6 +1606,19 @@ pub const POLLRDHUP: u32 = 8192;
pub const GRND_NONBLOCK: u32 = 1;
pub const GRND_RANDOM: u32 = 2;
pub const GRND_INSECURE: u32 = 4;
+pub const LINUX_REBOOT_MAGIC1: u32 = 4276215469;
+pub const LINUX_REBOOT_MAGIC2: u32 = 672274793;
+pub const LINUX_REBOOT_MAGIC2A: u32 = 85072278;
+pub const LINUX_REBOOT_MAGIC2B: u32 = 369367448;
+pub const LINUX_REBOOT_MAGIC2C: u32 = 537993216;
+pub const LINUX_REBOOT_CMD_RESTART: u32 = 19088743;
+pub const LINUX_REBOOT_CMD_HALT: u32 = 3454992675;
+pub const LINUX_REBOOT_CMD_CAD_ON: u32 = 2309737967;
+pub const LINUX_REBOOT_CMD_CAD_OFF: u32 = 0;
+pub const LINUX_REBOOT_CMD_POWER_OFF: u32 = 1126301404;
+pub const LINUX_REBOOT_CMD_RESTART2: u32 = 2712847316;
+pub const LINUX_REBOOT_CMD_SW_SUSPEND: u32 = 3489725666;
+pub const LINUX_REBOOT_CMD_KEXEC: u32 = 1163412803;
pub const ITIMER_REAL: u32 = 0;
pub const ITIMER_VIRTUAL: u32 = 1;
pub const ITIMER_PROF: u32 = 2;
diff --git a/vendor/linux-raw-sys/src/mips64r6/net.rs b/vendor/linux-raw-sys/src/mips64r6/net.rs
index de332d8aa..4a424f60e 100644
--- a/vendor/linux-raw-sys/src/mips64r6/net.rs
+++ b/vendor/linux-raw-sys/src/mips64r6/net.rs
@@ -476,6 +476,255 @@ pub __storage: __kernel_sockaddr_storage,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
+pub struct sync_serial_settings {
+pub clock_rate: crate::ctypes::c_uint,
+pub clock_type: crate::ctypes::c_uint,
+pub loopback: crate::ctypes::c_ushort,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct te1_settings {
+pub clock_rate: crate::ctypes::c_uint,
+pub clock_type: crate::ctypes::c_uint,
+pub loopback: crate::ctypes::c_ushort,
+pub slot_map: crate::ctypes::c_uint,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct raw_hdlc_proto {
+pub encoding: crate::ctypes::c_ushort,
+pub parity: crate::ctypes::c_ushort,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct fr_proto {
+pub t391: crate::ctypes::c_uint,
+pub t392: crate::ctypes::c_uint,
+pub n391: crate::ctypes::c_uint,
+pub n392: crate::ctypes::c_uint,
+pub n393: crate::ctypes::c_uint,
+pub lmi: crate::ctypes::c_ushort,
+pub dce: crate::ctypes::c_ushort,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct fr_proto_pvc {
+pub dlci: crate::ctypes::c_uint,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct fr_proto_pvc_info {
+pub dlci: crate::ctypes::c_uint,
+pub master: [crate::ctypes::c_char; 16usize],
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct cisco_proto {
+pub interval: crate::ctypes::c_uint,
+pub timeout: crate::ctypes::c_uint,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct x25_hdlc_proto {
+pub dce: crate::ctypes::c_ushort,
+pub modulo: crate::ctypes::c_uint,
+pub window: crate::ctypes::c_uint,
+pub t1: crate::ctypes::c_uint,
+pub t2: crate::ctypes::c_uint,
+pub n2: crate::ctypes::c_uint,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct ifmap {
+pub mem_start: crate::ctypes::c_ulong,
+pub mem_end: crate::ctypes::c_ulong,
+pub base_addr: crate::ctypes::c_ushort,
+pub irq: crate::ctypes::c_uchar,
+pub dma: crate::ctypes::c_uchar,
+pub port: crate::ctypes::c_uchar,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub struct if_settings {
+pub type_: crate::ctypes::c_uint,
+pub size: crate::ctypes::c_uint,
+pub ifs_ifsu: if_settings__bindgen_ty_1,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub struct ifreq {
+pub ifr_ifrn: ifreq__bindgen_ty_1,
+pub ifr_ifru: ifreq__bindgen_ty_2,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub struct ifconf {
+pub ifc_len: crate::ctypes::c_int,
+pub ifc_ifcu: ifconf__bindgen_ty_1,
+}
+#[repr(C)]
+pub struct xt_entry_match {
+pub u: xt_entry_match__bindgen_ty_1,
+pub data: __IncompleteArrayField<crate::ctypes::c_uchar>,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_entry_match__bindgen_ty_1__bindgen_ty_1 {
+pub match_size: __u16,
+pub name: [crate::ctypes::c_char; 29usize],
+pub revision: __u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_entry_match__bindgen_ty_1__bindgen_ty_2 {
+pub match_size: __u16,
+pub match_: *mut xt_match,
+}
+#[repr(C)]
+pub struct xt_entry_target {
+pub u: xt_entry_target__bindgen_ty_1,
+pub data: __IncompleteArrayField<crate::ctypes::c_uchar>,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_entry_target__bindgen_ty_1__bindgen_ty_1 {
+pub target_size: __u16,
+pub name: [crate::ctypes::c_char; 29usize],
+pub revision: __u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_entry_target__bindgen_ty_1__bindgen_ty_2 {
+pub target_size: __u16,
+pub target: *mut xt_target,
+}
+#[repr(C)]
+pub struct xt_standard_target {
+pub target: xt_entry_target,
+pub verdict: crate::ctypes::c_int,
+}
+#[repr(C)]
+pub struct xt_error_target {
+pub target: xt_entry_target,
+pub errorname: [crate::ctypes::c_char; 30usize],
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_get_revision {
+pub name: [crate::ctypes::c_char; 29usize],
+pub revision: __u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct _xt_align {
+pub u8_: __u8,
+pub u16_: __u16,
+pub u32_: __u32,
+pub u64_: __u64,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_counters {
+pub pcnt: __u64,
+pub bcnt: __u64,
+}
+#[repr(C)]
+#[derive(Debug)]
+pub struct xt_counters_info {
+pub name: [crate::ctypes::c_char; 32usize],
+pub num_counters: crate::ctypes::c_uint,
+pub counters: __IncompleteArrayField<xt_counters>,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_tcp {
+pub spts: [__u16; 2usize],
+pub dpts: [__u16; 2usize],
+pub option: __u8,
+pub flg_mask: __u8,
+pub flg_cmp: __u8,
+pub invflags: __u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_udp {
+pub spts: [__u16; 2usize],
+pub dpts: [__u16; 2usize],
+pub invflags: __u8,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub struct ip6t_ip6 {
+pub src: in6_addr,
+pub dst: in6_addr,
+pub smsk: in6_addr,
+pub dmsk: in6_addr,
+pub iniface: [crate::ctypes::c_char; 16usize],
+pub outiface: [crate::ctypes::c_char; 16usize],
+pub iniface_mask: [crate::ctypes::c_uchar; 16usize],
+pub outiface_mask: [crate::ctypes::c_uchar; 16usize],
+pub proto: __u16,
+pub tos: __u8,
+pub flags: __u8,
+pub invflags: __u8,
+}
+#[repr(C)]
+pub struct ip6t_entry {
+pub ipv6: ip6t_ip6,
+pub nfcache: crate::ctypes::c_uint,
+pub target_offset: __u16,
+pub next_offset: __u16,
+pub comefrom: crate::ctypes::c_uint,
+pub counters: xt_counters,
+pub elems: __IncompleteArrayField<crate::ctypes::c_uchar>,
+}
+#[repr(C)]
+pub struct ip6t_standard {
+pub entry: ip6t_entry,
+pub target: xt_standard_target,
+}
+#[repr(C)]
+pub struct ip6t_error {
+pub entry: ip6t_entry,
+pub target: xt_error_target,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct ip6t_icmp {
+pub type_: __u8,
+pub code: [__u8; 2usize],
+pub invflags: __u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct ip6t_getinfo {
+pub name: [crate::ctypes::c_char; 32usize],
+pub valid_hooks: crate::ctypes::c_uint,
+pub hook_entry: [crate::ctypes::c_uint; 5usize],
+pub underflow: [crate::ctypes::c_uint; 5usize],
+pub num_entries: crate::ctypes::c_uint,
+pub size: crate::ctypes::c_uint,
+}
+#[repr(C)]
+pub struct ip6t_replace {
+pub name: [crate::ctypes::c_char; 32usize],
+pub valid_hooks: crate::ctypes::c_uint,
+pub num_entries: crate::ctypes::c_uint,
+pub size: crate::ctypes::c_uint,
+pub hook_entry: [crate::ctypes::c_uint; 5usize],
+pub underflow: [crate::ctypes::c_uint; 5usize],
+pub num_counters: crate::ctypes::c_uint,
+pub counters: *mut xt_counters,
+pub entries: __IncompleteArrayField<ip6t_entry>,
+}
+#[repr(C)]
+pub struct ip6t_get_entries {
+pub name: [crate::ctypes::c_char; 32usize],
+pub size: crate::ctypes::c_uint,
+pub entrytable: __IncompleteArrayField<ip6t_entry>,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
pub struct linger {
pub l_onoff: crate::ctypes::c_int,
pub l_linger: crate::ctypes::c_int,
@@ -513,6 +762,16 @@ pub msg_len: crate::ctypes::c_uint,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
+pub struct xt_match {
+pub _address: u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_target {
+pub _address: u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
pub struct iovec {
pub _address: u8,
}
@@ -966,6 +1225,135 @@ pub const TCP_MD5SIG_FLAG_PREFIX: u32 = 1;
pub const TCP_MD5SIG_FLAG_IFINDEX: u32 = 2;
pub const TCP_RECEIVE_ZEROCOPY_FLAG_TLB_CLEAN_HINT: u32 = 1;
pub const UNIX_PATH_MAX: u32 = 108;
+pub const IFNAMSIZ: u32 = 16;
+pub const IFALIASZ: u32 = 256;
+pub const ALTIFNAMSIZ: u32 = 128;
+pub const GENERIC_HDLC_VERSION: u32 = 4;
+pub const CLOCK_DEFAULT: u32 = 0;
+pub const CLOCK_EXT: u32 = 1;
+pub const CLOCK_INT: u32 = 2;
+pub const CLOCK_TXINT: u32 = 3;
+pub const CLOCK_TXFROMRX: u32 = 4;
+pub const ENCODING_DEFAULT: u32 = 0;
+pub const ENCODING_NRZ: u32 = 1;
+pub const ENCODING_NRZI: u32 = 2;
+pub const ENCODING_FM_MARK: u32 = 3;
+pub const ENCODING_FM_SPACE: u32 = 4;
+pub const ENCODING_MANCHESTER: u32 = 5;
+pub const PARITY_DEFAULT: u32 = 0;
+pub const PARITY_NONE: u32 = 1;
+pub const PARITY_CRC16_PR0: u32 = 2;
+pub const PARITY_CRC16_PR1: u32 = 3;
+pub const PARITY_CRC16_PR0_CCITT: u32 = 4;
+pub const PARITY_CRC16_PR1_CCITT: u32 = 5;
+pub const PARITY_CRC32_PR0_CCITT: u32 = 6;
+pub const PARITY_CRC32_PR1_CCITT: u32 = 7;
+pub const LMI_DEFAULT: u32 = 0;
+pub const LMI_NONE: u32 = 1;
+pub const LMI_ANSI: u32 = 2;
+pub const LMI_CCITT: u32 = 3;
+pub const LMI_CISCO: u32 = 4;
+pub const IF_GET_IFACE: u32 = 1;
+pub const IF_GET_PROTO: u32 = 2;
+pub const IF_IFACE_V35: u32 = 4096;
+pub const IF_IFACE_V24: u32 = 4097;
+pub const IF_IFACE_X21: u32 = 4098;
+pub const IF_IFACE_T1: u32 = 4099;
+pub const IF_IFACE_E1: u32 = 4100;
+pub const IF_IFACE_SYNC_SERIAL: u32 = 4101;
+pub const IF_IFACE_X21D: u32 = 4102;
+pub const IF_PROTO_HDLC: u32 = 8192;
+pub const IF_PROTO_PPP: u32 = 8193;
+pub const IF_PROTO_CISCO: u32 = 8194;
+pub const IF_PROTO_FR: u32 = 8195;
+pub const IF_PROTO_FR_ADD_PVC: u32 = 8196;
+pub const IF_PROTO_FR_DEL_PVC: u32 = 8197;
+pub const IF_PROTO_X25: u32 = 8198;
+pub const IF_PROTO_HDLC_ETH: u32 = 8199;
+pub const IF_PROTO_FR_ADD_ETH_PVC: u32 = 8200;
+pub const IF_PROTO_FR_DEL_ETH_PVC: u32 = 8201;
+pub const IF_PROTO_FR_PVC: u32 = 8202;
+pub const IF_PROTO_FR_ETH_PVC: u32 = 8203;
+pub const IF_PROTO_RAW: u32 = 8204;
+pub const IFHWADDRLEN: u32 = 6;
+pub const NF_DROP: u32 = 0;
+pub const NF_ACCEPT: u32 = 1;
+pub const NF_STOLEN: u32 = 2;
+pub const NF_QUEUE: u32 = 3;
+pub const NF_REPEAT: u32 = 4;
+pub const NF_STOP: u32 = 5;
+pub const NF_MAX_VERDICT: u32 = 5;
+pub const NF_VERDICT_MASK: u32 = 255;
+pub const NF_VERDICT_FLAG_QUEUE_BYPASS: u32 = 32768;
+pub const NF_VERDICT_QMASK: u32 = 4294901760;
+pub const NF_VERDICT_QBITS: u32 = 16;
+pub const NF_VERDICT_BITS: u32 = 16;
+pub const NF_IP6_PRE_ROUTING: u32 = 0;
+pub const NF_IP6_LOCAL_IN: u32 = 1;
+pub const NF_IP6_FORWARD: u32 = 2;
+pub const NF_IP6_LOCAL_OUT: u32 = 3;
+pub const NF_IP6_POST_ROUTING: u32 = 4;
+pub const NF_IP6_NUMHOOKS: u32 = 5;
+pub const XT_FUNCTION_MAXNAMELEN: u32 = 30;
+pub const XT_EXTENSION_MAXNAMELEN: u32 = 29;
+pub const XT_TABLE_MAXNAMELEN: u32 = 32;
+pub const XT_CONTINUE: u32 = 4294967295;
+pub const XT_RETURN: i32 = -5;
+pub const XT_STANDARD_TARGET: &[u8; 1] = b"\0";
+pub const XT_ERROR_TARGET: &[u8; 6] = b"ERROR\0";
+pub const XT_INV_PROTO: u32 = 64;
+pub const IP6T_FUNCTION_MAXNAMELEN: u32 = 30;
+pub const IP6T_TABLE_MAXNAMELEN: u32 = 32;
+pub const IP6T_CONTINUE: u32 = 4294967295;
+pub const IP6T_RETURN: i32 = -5;
+pub const XT_TCP_INV_SRCPT: u32 = 1;
+pub const XT_TCP_INV_DSTPT: u32 = 2;
+pub const XT_TCP_INV_FLAGS: u32 = 4;
+pub const XT_TCP_INV_OPTION: u32 = 8;
+pub const XT_TCP_INV_MASK: u32 = 15;
+pub const XT_UDP_INV_SRCPT: u32 = 1;
+pub const XT_UDP_INV_DSTPT: u32 = 2;
+pub const XT_UDP_INV_MASK: u32 = 3;
+pub const IP6T_TCP_INV_SRCPT: u32 = 1;
+pub const IP6T_TCP_INV_DSTPT: u32 = 2;
+pub const IP6T_TCP_INV_FLAGS: u32 = 4;
+pub const IP6T_TCP_INV_OPTION: u32 = 8;
+pub const IP6T_TCP_INV_MASK: u32 = 15;
+pub const IP6T_UDP_INV_SRCPT: u32 = 1;
+pub const IP6T_UDP_INV_DSTPT: u32 = 2;
+pub const IP6T_UDP_INV_MASK: u32 = 3;
+pub const IP6T_STANDARD_TARGET: &[u8; 1] = b"\0";
+pub const IP6T_ERROR_TARGET: &[u8; 6] = b"ERROR\0";
+pub const IP6T_F_PROTO: u32 = 1;
+pub const IP6T_F_TOS: u32 = 2;
+pub const IP6T_F_GOTO: u32 = 4;
+pub const IP6T_F_MASK: u32 = 7;
+pub const IP6T_INV_VIA_IN: u32 = 1;
+pub const IP6T_INV_VIA_OUT: u32 = 2;
+pub const IP6T_INV_TOS: u32 = 4;
+pub const IP6T_INV_SRCIP: u32 = 8;
+pub const IP6T_INV_DSTIP: u32 = 16;
+pub const IP6T_INV_FRAG: u32 = 32;
+pub const IP6T_INV_PROTO: u32 = 64;
+pub const IP6T_INV_MASK: u32 = 127;
+pub const IP6T_BASE_CTL: u32 = 64;
+pub const IP6T_SO_SET_REPLACE: u32 = 64;
+pub const IP6T_SO_SET_ADD_COUNTERS: u32 = 65;
+pub const IP6T_SO_SET_MAX: u32 = 65;
+pub const IP6T_SO_GET_INFO: u32 = 64;
+pub const IP6T_SO_GET_ENTRIES: u32 = 65;
+pub const IP6T_SO_GET_REVISION_MATCH: u32 = 68;
+pub const IP6T_SO_GET_REVISION_TARGET: u32 = 69;
+pub const IP6T_SO_GET_MAX: u32 = 69;
+pub const IP6T_SO_ORIGINAL_DST: u32 = 80;
+pub const IP6T_ICMP_INV: u32 = 1;
+pub const NF_IP_PRE_ROUTING: u32 = 0;
+pub const NF_IP_LOCAL_IN: u32 = 1;
+pub const NF_IP_FORWARD: u32 = 2;
+pub const NF_IP_LOCAL_OUT: u32 = 3;
+pub const NF_IP_POST_ROUTING: u32 = 4;
+pub const NF_IP_NUMHOOKS: u32 = 5;
+pub const SO_ORIGINAL_DST: u32 = 80;
pub const SHUT_RD: u32 = 0;
pub const SHUT_WR: u32 = 1;
pub const SHUT_RDWR: u32 = 2;
@@ -1194,6 +1582,25 @@ pub const TCP_NLA_BYTES_NOTSENT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_NO
pub const TCP_NLA_EDT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_EDT;
pub const TCP_NLA_TTL: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TTL;
pub const TCP_NLA_REHASH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REHASH;
+pub const IF_OPER_UNKNOWN: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_UNKNOWN;
+pub const IF_OPER_NOTPRESENT: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_NOTPRESENT;
+pub const IF_OPER_DOWN: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_DOWN;
+pub const IF_OPER_LOWERLAYERDOWN: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_LOWERLAYERDOWN;
+pub const IF_OPER_TESTING: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_TESTING;
+pub const IF_OPER_DORMANT: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_DORMANT;
+pub const IF_OPER_UP: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_UP;
+pub const IF_LINK_MODE_DEFAULT: _bindgen_ty_8 = _bindgen_ty_8::IF_LINK_MODE_DEFAULT;
+pub const IF_LINK_MODE_DORMANT: _bindgen_ty_8 = _bindgen_ty_8::IF_LINK_MODE_DORMANT;
+pub const IF_LINK_MODE_TESTING: _bindgen_ty_8 = _bindgen_ty_8::IF_LINK_MODE_TESTING;
+pub const NFPROTO_UNSPEC: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_UNSPEC;
+pub const NFPROTO_INET: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_INET;
+pub const NFPROTO_IPV4: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_IPV4;
+pub const NFPROTO_ARP: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_ARP;
+pub const NFPROTO_NETDEV: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_NETDEV;
+pub const NFPROTO_BRIDGE: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_BRIDGE;
+pub const NFPROTO_IPV6: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_IPV6;
+pub const NFPROTO_DECNET: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_DECNET;
+pub const NFPROTO_NUMPROTO: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_NUMPROTO;
#[repr(u32)]
#[non_exhaustive]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
@@ -1417,6 +1824,121 @@ TCP_NLA_EDT = 25,
TCP_NLA_TTL = 26,
TCP_NLA_REHASH = 27,
}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum net_device_flags {
+IFF_UP = 1,
+IFF_BROADCAST = 2,
+IFF_DEBUG = 4,
+IFF_LOOPBACK = 8,
+IFF_POINTOPOINT = 16,
+IFF_NOTRAILERS = 32,
+IFF_RUNNING = 64,
+IFF_NOARP = 128,
+IFF_PROMISC = 256,
+IFF_ALLMULTI = 512,
+IFF_MASTER = 1024,
+IFF_SLAVE = 2048,
+IFF_MULTICAST = 4096,
+IFF_PORTSEL = 8192,
+IFF_AUTOMEDIA = 16384,
+IFF_DYNAMIC = 32768,
+IFF_LOWER_UP = 65536,
+IFF_DORMANT = 131072,
+IFF_ECHO = 262144,
+}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum _bindgen_ty_7 {
+IF_OPER_UNKNOWN = 0,
+IF_OPER_NOTPRESENT = 1,
+IF_OPER_DOWN = 2,
+IF_OPER_LOWERLAYERDOWN = 3,
+IF_OPER_TESTING = 4,
+IF_OPER_DORMANT = 5,
+IF_OPER_UP = 6,
+}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum _bindgen_ty_8 {
+IF_LINK_MODE_DEFAULT = 0,
+IF_LINK_MODE_DORMANT = 1,
+IF_LINK_MODE_TESTING = 2,
+}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum nf_inet_hooks {
+NF_INET_PRE_ROUTING = 0,
+NF_INET_LOCAL_IN = 1,
+NF_INET_FORWARD = 2,
+NF_INET_LOCAL_OUT = 3,
+NF_INET_POST_ROUTING = 4,
+NF_INET_NUMHOOKS = 5,
+}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum nf_dev_hooks {
+NF_NETDEV_INGRESS = 0,
+NF_NETDEV_EGRESS = 1,
+NF_NETDEV_NUMHOOKS = 2,
+}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum _bindgen_ty_9 {
+NFPROTO_UNSPEC = 0,
+NFPROTO_INET = 1,
+NFPROTO_IPV4 = 2,
+NFPROTO_ARP = 3,
+NFPROTO_NETDEV = 5,
+NFPROTO_BRIDGE = 7,
+NFPROTO_IPV6 = 10,
+NFPROTO_DECNET = 12,
+NFPROTO_NUMPROTO = 13,
+}
+#[repr(i32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum nf_ip6_hook_priorities {
+NF_IP6_PRI_FIRST = -2147483648,
+NF_IP6_PRI_RAW_BEFORE_DEFRAG = -450,
+NF_IP6_PRI_CONNTRACK_DEFRAG = -400,
+NF_IP6_PRI_RAW = -300,
+NF_IP6_PRI_SELINUX_FIRST = -225,
+NF_IP6_PRI_CONNTRACK = -200,
+NF_IP6_PRI_MANGLE = -150,
+NF_IP6_PRI_NAT_DST = -100,
+NF_IP6_PRI_FILTER = 0,
+NF_IP6_PRI_SECURITY = 50,
+NF_IP6_PRI_NAT_SRC = 100,
+NF_IP6_PRI_SELINUX_LAST = 225,
+NF_IP6_PRI_CONNTRACK_HELPER = 300,
+NF_IP6_PRI_LAST = 2147483647,
+}
+#[repr(i32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum nf_ip_hook_priorities {
+NF_IP_PRI_FIRST = -2147483648,
+NF_IP_PRI_RAW_BEFORE_DEFRAG = -450,
+NF_IP_PRI_CONNTRACK_DEFRAG = -400,
+NF_IP_PRI_RAW = -300,
+NF_IP_PRI_SELINUX_FIRST = -225,
+NF_IP_PRI_CONNTRACK = -200,
+NF_IP_PRI_MANGLE = -150,
+NF_IP_PRI_NAT_DST = -100,
+NF_IP_PRI_FILTER = 0,
+NF_IP_PRI_SECURITY = 50,
+NF_IP_PRI_NAT_SRC = 100,
+NF_IP_PRI_SELINUX_LAST = 225,
+NF_IP_PRI_CONNTRACK_HELPER = 300,
+NF_IP_PRI_CONNTRACK_CONFIRM = 2147483647,
+}
#[repr(C)]
#[derive(Copy, Clone)]
pub union __kernel_sockaddr_storage__bindgen_ty_1 {
@@ -1448,6 +1970,69 @@ pub union tcp_word_hdr {
pub hdr: tcphdr,
pub words: [__be32; 5usize],
}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union if_settings__bindgen_ty_1 {
+pub raw_hdlc: *mut raw_hdlc_proto,
+pub cisco: *mut cisco_proto,
+pub fr: *mut fr_proto,
+pub fr_pvc: *mut fr_proto_pvc,
+pub fr_pvc_info: *mut fr_proto_pvc_info,
+pub x25: *mut x25_hdlc_proto,
+pub sync: *mut sync_serial_settings,
+pub te1: *mut te1_settings,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union ifreq__bindgen_ty_1 {
+pub ifrn_name: [crate::ctypes::c_char; 16usize],
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union ifreq__bindgen_ty_2 {
+pub ifru_addr: sockaddr,
+pub ifru_dstaddr: sockaddr,
+pub ifru_broadaddr: sockaddr,
+pub ifru_netmask: sockaddr,
+pub ifru_hwaddr: sockaddr,
+pub ifru_flags: crate::ctypes::c_short,
+pub ifru_ivalue: crate::ctypes::c_int,
+pub ifru_mtu: crate::ctypes::c_int,
+pub ifru_map: ifmap,
+pub ifru_slave: [crate::ctypes::c_char; 16usize],
+pub ifru_newname: [crate::ctypes::c_char; 16usize],
+pub ifru_data: *mut crate::ctypes::c_void,
+pub ifru_settings: if_settings,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union ifconf__bindgen_ty_1 {
+pub ifcu_buf: *mut crate::ctypes::c_char,
+pub ifcu_req: *mut ifreq,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union nf_inet_addr {
+pub all: [__u32; 4usize],
+pub ip: __be32,
+pub ip6: [__be32; 4usize],
+pub in_: in_addr,
+pub in6: in6_addr,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union xt_entry_match__bindgen_ty_1 {
+pub user: xt_entry_match__bindgen_ty_1__bindgen_ty_1,
+pub kernel: xt_entry_match__bindgen_ty_1__bindgen_ty_2,
+pub match_size: __u16,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union xt_entry_target__bindgen_ty_1 {
+pub user: xt_entry_target__bindgen_ty_1__bindgen_ty_1,
+pub kernel: xt_entry_target__bindgen_ty_1__bindgen_ty_2,
+pub target_size: __u16,
+}
impl<Storage> __BindgenBitfieldUnit<Storage> {
#[inline]
pub const fn new(storage: Storage) -> Self {
@@ -1873,3 +2458,9 @@ tcpi_fastopen_client_fail as u64
__bindgen_bitfield_unit
}
}
+impl nf_inet_hooks {
+pub const NF_INET_INGRESS: nf_inet_hooks = nf_inet_hooks::NF_INET_NUMHOOKS;
+}
+impl nf_ip_hook_priorities {
+pub const NF_IP_PRI_LAST: nf_ip_hook_priorities = nf_ip_hook_priorities::NF_IP_PRI_CONNTRACK_CONFIRM;
+}
diff --git a/vendor/linux-raw-sys/src/powerpc/general.rs b/vendor/linux-raw-sys/src/powerpc/general.rs
index 2d6db3c3f..b9be68493 100644
--- a/vendor/linux-raw-sys/src/powerpc/general.rs
+++ b/vendor/linux-raw-sys/src/powerpc/general.rs
@@ -1662,6 +1662,19 @@ pub const POLLRDHUP: u32 = 8192;
pub const GRND_NONBLOCK: u32 = 1;
pub const GRND_RANDOM: u32 = 2;
pub const GRND_INSECURE: u32 = 4;
+pub const LINUX_REBOOT_MAGIC1: u32 = 4276215469;
+pub const LINUX_REBOOT_MAGIC2: u32 = 672274793;
+pub const LINUX_REBOOT_MAGIC2A: u32 = 85072278;
+pub const LINUX_REBOOT_MAGIC2B: u32 = 369367448;
+pub const LINUX_REBOOT_MAGIC2C: u32 = 537993216;
+pub const LINUX_REBOOT_CMD_RESTART: u32 = 19088743;
+pub const LINUX_REBOOT_CMD_HALT: u32 = 3454992675;
+pub const LINUX_REBOOT_CMD_CAD_ON: u32 = 2309737967;
+pub const LINUX_REBOOT_CMD_CAD_OFF: u32 = 0;
+pub const LINUX_REBOOT_CMD_POWER_OFF: u32 = 1126301404;
+pub const LINUX_REBOOT_CMD_RESTART2: u32 = 2712847316;
+pub const LINUX_REBOOT_CMD_SW_SUSPEND: u32 = 3489725666;
+pub const LINUX_REBOOT_CMD_KEXEC: u32 = 1163412803;
pub const ITIMER_REAL: u32 = 0;
pub const ITIMER_VIRTUAL: u32 = 1;
pub const ITIMER_PROF: u32 = 2;
diff --git a/vendor/linux-raw-sys/src/powerpc/net.rs b/vendor/linux-raw-sys/src/powerpc/net.rs
index 1040cd951..311400647 100644
--- a/vendor/linux-raw-sys/src/powerpc/net.rs
+++ b/vendor/linux-raw-sys/src/powerpc/net.rs
@@ -482,6 +482,255 @@ pub __storage: __kernel_sockaddr_storage,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
+pub struct sync_serial_settings {
+pub clock_rate: crate::ctypes::c_uint,
+pub clock_type: crate::ctypes::c_uint,
+pub loopback: crate::ctypes::c_ushort,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct te1_settings {
+pub clock_rate: crate::ctypes::c_uint,
+pub clock_type: crate::ctypes::c_uint,
+pub loopback: crate::ctypes::c_ushort,
+pub slot_map: crate::ctypes::c_uint,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct raw_hdlc_proto {
+pub encoding: crate::ctypes::c_ushort,
+pub parity: crate::ctypes::c_ushort,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct fr_proto {
+pub t391: crate::ctypes::c_uint,
+pub t392: crate::ctypes::c_uint,
+pub n391: crate::ctypes::c_uint,
+pub n392: crate::ctypes::c_uint,
+pub n393: crate::ctypes::c_uint,
+pub lmi: crate::ctypes::c_ushort,
+pub dce: crate::ctypes::c_ushort,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct fr_proto_pvc {
+pub dlci: crate::ctypes::c_uint,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct fr_proto_pvc_info {
+pub dlci: crate::ctypes::c_uint,
+pub master: [crate::ctypes::c_char; 16usize],
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct cisco_proto {
+pub interval: crate::ctypes::c_uint,
+pub timeout: crate::ctypes::c_uint,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct x25_hdlc_proto {
+pub dce: crate::ctypes::c_ushort,
+pub modulo: crate::ctypes::c_uint,
+pub window: crate::ctypes::c_uint,
+pub t1: crate::ctypes::c_uint,
+pub t2: crate::ctypes::c_uint,
+pub n2: crate::ctypes::c_uint,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct ifmap {
+pub mem_start: crate::ctypes::c_ulong,
+pub mem_end: crate::ctypes::c_ulong,
+pub base_addr: crate::ctypes::c_ushort,
+pub irq: crate::ctypes::c_uchar,
+pub dma: crate::ctypes::c_uchar,
+pub port: crate::ctypes::c_uchar,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub struct if_settings {
+pub type_: crate::ctypes::c_uint,
+pub size: crate::ctypes::c_uint,
+pub ifs_ifsu: if_settings__bindgen_ty_1,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub struct ifreq {
+pub ifr_ifrn: ifreq__bindgen_ty_1,
+pub ifr_ifru: ifreq__bindgen_ty_2,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub struct ifconf {
+pub ifc_len: crate::ctypes::c_int,
+pub ifc_ifcu: ifconf__bindgen_ty_1,
+}
+#[repr(C)]
+pub struct xt_entry_match {
+pub u: xt_entry_match__bindgen_ty_1,
+pub data: __IncompleteArrayField<crate::ctypes::c_uchar>,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_entry_match__bindgen_ty_1__bindgen_ty_1 {
+pub match_size: __u16,
+pub name: [crate::ctypes::c_char; 29usize],
+pub revision: __u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_entry_match__bindgen_ty_1__bindgen_ty_2 {
+pub match_size: __u16,
+pub match_: *mut xt_match,
+}
+#[repr(C)]
+pub struct xt_entry_target {
+pub u: xt_entry_target__bindgen_ty_1,
+pub data: __IncompleteArrayField<crate::ctypes::c_uchar>,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_entry_target__bindgen_ty_1__bindgen_ty_1 {
+pub target_size: __u16,
+pub name: [crate::ctypes::c_char; 29usize],
+pub revision: __u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_entry_target__bindgen_ty_1__bindgen_ty_2 {
+pub target_size: __u16,
+pub target: *mut xt_target,
+}
+#[repr(C)]
+pub struct xt_standard_target {
+pub target: xt_entry_target,
+pub verdict: crate::ctypes::c_int,
+}
+#[repr(C)]
+pub struct xt_error_target {
+pub target: xt_entry_target,
+pub errorname: [crate::ctypes::c_char; 30usize],
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_get_revision {
+pub name: [crate::ctypes::c_char; 29usize],
+pub revision: __u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct _xt_align {
+pub u8_: __u8,
+pub u16_: __u16,
+pub u32_: __u32,
+pub u64_: __u64,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_counters {
+pub pcnt: __u64,
+pub bcnt: __u64,
+}
+#[repr(C)]
+#[derive(Debug)]
+pub struct xt_counters_info {
+pub name: [crate::ctypes::c_char; 32usize],
+pub num_counters: crate::ctypes::c_uint,
+pub counters: __IncompleteArrayField<xt_counters>,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_tcp {
+pub spts: [__u16; 2usize],
+pub dpts: [__u16; 2usize],
+pub option: __u8,
+pub flg_mask: __u8,
+pub flg_cmp: __u8,
+pub invflags: __u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_udp {
+pub spts: [__u16; 2usize],
+pub dpts: [__u16; 2usize],
+pub invflags: __u8,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub struct ip6t_ip6 {
+pub src: in6_addr,
+pub dst: in6_addr,
+pub smsk: in6_addr,
+pub dmsk: in6_addr,
+pub iniface: [crate::ctypes::c_char; 16usize],
+pub outiface: [crate::ctypes::c_char; 16usize],
+pub iniface_mask: [crate::ctypes::c_uchar; 16usize],
+pub outiface_mask: [crate::ctypes::c_uchar; 16usize],
+pub proto: __u16,
+pub tos: __u8,
+pub flags: __u8,
+pub invflags: __u8,
+}
+#[repr(C)]
+pub struct ip6t_entry {
+pub ipv6: ip6t_ip6,
+pub nfcache: crate::ctypes::c_uint,
+pub target_offset: __u16,
+pub next_offset: __u16,
+pub comefrom: crate::ctypes::c_uint,
+pub counters: xt_counters,
+pub elems: __IncompleteArrayField<crate::ctypes::c_uchar>,
+}
+#[repr(C)]
+pub struct ip6t_standard {
+pub entry: ip6t_entry,
+pub target: xt_standard_target,
+}
+#[repr(C)]
+pub struct ip6t_error {
+pub entry: ip6t_entry,
+pub target: xt_error_target,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct ip6t_icmp {
+pub type_: __u8,
+pub code: [__u8; 2usize],
+pub invflags: __u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct ip6t_getinfo {
+pub name: [crate::ctypes::c_char; 32usize],
+pub valid_hooks: crate::ctypes::c_uint,
+pub hook_entry: [crate::ctypes::c_uint; 5usize],
+pub underflow: [crate::ctypes::c_uint; 5usize],
+pub num_entries: crate::ctypes::c_uint,
+pub size: crate::ctypes::c_uint,
+}
+#[repr(C)]
+pub struct ip6t_replace {
+pub name: [crate::ctypes::c_char; 32usize],
+pub valid_hooks: crate::ctypes::c_uint,
+pub num_entries: crate::ctypes::c_uint,
+pub size: crate::ctypes::c_uint,
+pub hook_entry: [crate::ctypes::c_uint; 5usize],
+pub underflow: [crate::ctypes::c_uint; 5usize],
+pub num_counters: crate::ctypes::c_uint,
+pub counters: *mut xt_counters,
+pub entries: __IncompleteArrayField<ip6t_entry>,
+}
+#[repr(C)]
+pub struct ip6t_get_entries {
+pub name: [crate::ctypes::c_char; 32usize],
+pub size: crate::ctypes::c_uint,
+pub entrytable: __IncompleteArrayField<ip6t_entry>,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
pub struct linger {
pub l_onoff: crate::ctypes::c_int,
pub l_linger: crate::ctypes::c_int,
@@ -519,6 +768,16 @@ pub msg_len: crate::ctypes::c_uint,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
+pub struct xt_match {
+pub _address: u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_target {
+pub _address: u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
pub struct iovec {
pub _address: u8,
}
@@ -933,6 +1192,135 @@ pub const TCP_MD5SIG_FLAG_PREFIX: u32 = 1;
pub const TCP_MD5SIG_FLAG_IFINDEX: u32 = 2;
pub const TCP_RECEIVE_ZEROCOPY_FLAG_TLB_CLEAN_HINT: u32 = 1;
pub const UNIX_PATH_MAX: u32 = 108;
+pub const IFNAMSIZ: u32 = 16;
+pub const IFALIASZ: u32 = 256;
+pub const ALTIFNAMSIZ: u32 = 128;
+pub const GENERIC_HDLC_VERSION: u32 = 4;
+pub const CLOCK_DEFAULT: u32 = 0;
+pub const CLOCK_EXT: u32 = 1;
+pub const CLOCK_INT: u32 = 2;
+pub const CLOCK_TXINT: u32 = 3;
+pub const CLOCK_TXFROMRX: u32 = 4;
+pub const ENCODING_DEFAULT: u32 = 0;
+pub const ENCODING_NRZ: u32 = 1;
+pub const ENCODING_NRZI: u32 = 2;
+pub const ENCODING_FM_MARK: u32 = 3;
+pub const ENCODING_FM_SPACE: u32 = 4;
+pub const ENCODING_MANCHESTER: u32 = 5;
+pub const PARITY_DEFAULT: u32 = 0;
+pub const PARITY_NONE: u32 = 1;
+pub const PARITY_CRC16_PR0: u32 = 2;
+pub const PARITY_CRC16_PR1: u32 = 3;
+pub const PARITY_CRC16_PR0_CCITT: u32 = 4;
+pub const PARITY_CRC16_PR1_CCITT: u32 = 5;
+pub const PARITY_CRC32_PR0_CCITT: u32 = 6;
+pub const PARITY_CRC32_PR1_CCITT: u32 = 7;
+pub const LMI_DEFAULT: u32 = 0;
+pub const LMI_NONE: u32 = 1;
+pub const LMI_ANSI: u32 = 2;
+pub const LMI_CCITT: u32 = 3;
+pub const LMI_CISCO: u32 = 4;
+pub const IF_GET_IFACE: u32 = 1;
+pub const IF_GET_PROTO: u32 = 2;
+pub const IF_IFACE_V35: u32 = 4096;
+pub const IF_IFACE_V24: u32 = 4097;
+pub const IF_IFACE_X21: u32 = 4098;
+pub const IF_IFACE_T1: u32 = 4099;
+pub const IF_IFACE_E1: u32 = 4100;
+pub const IF_IFACE_SYNC_SERIAL: u32 = 4101;
+pub const IF_IFACE_X21D: u32 = 4102;
+pub const IF_PROTO_HDLC: u32 = 8192;
+pub const IF_PROTO_PPP: u32 = 8193;
+pub const IF_PROTO_CISCO: u32 = 8194;
+pub const IF_PROTO_FR: u32 = 8195;
+pub const IF_PROTO_FR_ADD_PVC: u32 = 8196;
+pub const IF_PROTO_FR_DEL_PVC: u32 = 8197;
+pub const IF_PROTO_X25: u32 = 8198;
+pub const IF_PROTO_HDLC_ETH: u32 = 8199;
+pub const IF_PROTO_FR_ADD_ETH_PVC: u32 = 8200;
+pub const IF_PROTO_FR_DEL_ETH_PVC: u32 = 8201;
+pub const IF_PROTO_FR_PVC: u32 = 8202;
+pub const IF_PROTO_FR_ETH_PVC: u32 = 8203;
+pub const IF_PROTO_RAW: u32 = 8204;
+pub const IFHWADDRLEN: u32 = 6;
+pub const NF_DROP: u32 = 0;
+pub const NF_ACCEPT: u32 = 1;
+pub const NF_STOLEN: u32 = 2;
+pub const NF_QUEUE: u32 = 3;
+pub const NF_REPEAT: u32 = 4;
+pub const NF_STOP: u32 = 5;
+pub const NF_MAX_VERDICT: u32 = 5;
+pub const NF_VERDICT_MASK: u32 = 255;
+pub const NF_VERDICT_FLAG_QUEUE_BYPASS: u32 = 32768;
+pub const NF_VERDICT_QMASK: u32 = 4294901760;
+pub const NF_VERDICT_QBITS: u32 = 16;
+pub const NF_VERDICT_BITS: u32 = 16;
+pub const NF_IP6_PRE_ROUTING: u32 = 0;
+pub const NF_IP6_LOCAL_IN: u32 = 1;
+pub const NF_IP6_FORWARD: u32 = 2;
+pub const NF_IP6_LOCAL_OUT: u32 = 3;
+pub const NF_IP6_POST_ROUTING: u32 = 4;
+pub const NF_IP6_NUMHOOKS: u32 = 5;
+pub const XT_FUNCTION_MAXNAMELEN: u32 = 30;
+pub const XT_EXTENSION_MAXNAMELEN: u32 = 29;
+pub const XT_TABLE_MAXNAMELEN: u32 = 32;
+pub const XT_CONTINUE: u32 = 4294967295;
+pub const XT_RETURN: i32 = -5;
+pub const XT_STANDARD_TARGET: &[u8; 1] = b"\0";
+pub const XT_ERROR_TARGET: &[u8; 6] = b"ERROR\0";
+pub const XT_INV_PROTO: u32 = 64;
+pub const IP6T_FUNCTION_MAXNAMELEN: u32 = 30;
+pub const IP6T_TABLE_MAXNAMELEN: u32 = 32;
+pub const IP6T_CONTINUE: u32 = 4294967295;
+pub const IP6T_RETURN: i32 = -5;
+pub const XT_TCP_INV_SRCPT: u32 = 1;
+pub const XT_TCP_INV_DSTPT: u32 = 2;
+pub const XT_TCP_INV_FLAGS: u32 = 4;
+pub const XT_TCP_INV_OPTION: u32 = 8;
+pub const XT_TCP_INV_MASK: u32 = 15;
+pub const XT_UDP_INV_SRCPT: u32 = 1;
+pub const XT_UDP_INV_DSTPT: u32 = 2;
+pub const XT_UDP_INV_MASK: u32 = 3;
+pub const IP6T_TCP_INV_SRCPT: u32 = 1;
+pub const IP6T_TCP_INV_DSTPT: u32 = 2;
+pub const IP6T_TCP_INV_FLAGS: u32 = 4;
+pub const IP6T_TCP_INV_OPTION: u32 = 8;
+pub const IP6T_TCP_INV_MASK: u32 = 15;
+pub const IP6T_UDP_INV_SRCPT: u32 = 1;
+pub const IP6T_UDP_INV_DSTPT: u32 = 2;
+pub const IP6T_UDP_INV_MASK: u32 = 3;
+pub const IP6T_STANDARD_TARGET: &[u8; 1] = b"\0";
+pub const IP6T_ERROR_TARGET: &[u8; 6] = b"ERROR\0";
+pub const IP6T_F_PROTO: u32 = 1;
+pub const IP6T_F_TOS: u32 = 2;
+pub const IP6T_F_GOTO: u32 = 4;
+pub const IP6T_F_MASK: u32 = 7;
+pub const IP6T_INV_VIA_IN: u32 = 1;
+pub const IP6T_INV_VIA_OUT: u32 = 2;
+pub const IP6T_INV_TOS: u32 = 4;
+pub const IP6T_INV_SRCIP: u32 = 8;
+pub const IP6T_INV_DSTIP: u32 = 16;
+pub const IP6T_INV_FRAG: u32 = 32;
+pub const IP6T_INV_PROTO: u32 = 64;
+pub const IP6T_INV_MASK: u32 = 127;
+pub const IP6T_BASE_CTL: u32 = 64;
+pub const IP6T_SO_SET_REPLACE: u32 = 64;
+pub const IP6T_SO_SET_ADD_COUNTERS: u32 = 65;
+pub const IP6T_SO_SET_MAX: u32 = 65;
+pub const IP6T_SO_GET_INFO: u32 = 64;
+pub const IP6T_SO_GET_ENTRIES: u32 = 65;
+pub const IP6T_SO_GET_REVISION_MATCH: u32 = 68;
+pub const IP6T_SO_GET_REVISION_TARGET: u32 = 69;
+pub const IP6T_SO_GET_MAX: u32 = 69;
+pub const IP6T_SO_ORIGINAL_DST: u32 = 80;
+pub const IP6T_ICMP_INV: u32 = 1;
+pub const NF_IP_PRE_ROUTING: u32 = 0;
+pub const NF_IP_LOCAL_IN: u32 = 1;
+pub const NF_IP_FORWARD: u32 = 2;
+pub const NF_IP_LOCAL_OUT: u32 = 3;
+pub const NF_IP_POST_ROUTING: u32 = 4;
+pub const NF_IP_NUMHOOKS: u32 = 5;
+pub const SO_ORIGINAL_DST: u32 = 80;
pub const SHUT_RD: u32 = 0;
pub const SHUT_WR: u32 = 1;
pub const SHUT_RDWR: u32 = 2;
@@ -1161,6 +1549,25 @@ pub const TCP_NLA_BYTES_NOTSENT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_NO
pub const TCP_NLA_EDT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_EDT;
pub const TCP_NLA_TTL: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TTL;
pub const TCP_NLA_REHASH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REHASH;
+pub const IF_OPER_UNKNOWN: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_UNKNOWN;
+pub const IF_OPER_NOTPRESENT: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_NOTPRESENT;
+pub const IF_OPER_DOWN: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_DOWN;
+pub const IF_OPER_LOWERLAYERDOWN: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_LOWERLAYERDOWN;
+pub const IF_OPER_TESTING: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_TESTING;
+pub const IF_OPER_DORMANT: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_DORMANT;
+pub const IF_OPER_UP: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_UP;
+pub const IF_LINK_MODE_DEFAULT: _bindgen_ty_8 = _bindgen_ty_8::IF_LINK_MODE_DEFAULT;
+pub const IF_LINK_MODE_DORMANT: _bindgen_ty_8 = _bindgen_ty_8::IF_LINK_MODE_DORMANT;
+pub const IF_LINK_MODE_TESTING: _bindgen_ty_8 = _bindgen_ty_8::IF_LINK_MODE_TESTING;
+pub const NFPROTO_UNSPEC: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_UNSPEC;
+pub const NFPROTO_INET: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_INET;
+pub const NFPROTO_IPV4: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_IPV4;
+pub const NFPROTO_ARP: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_ARP;
+pub const NFPROTO_NETDEV: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_NETDEV;
+pub const NFPROTO_BRIDGE: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_BRIDGE;
+pub const NFPROTO_IPV6: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_IPV6;
+pub const NFPROTO_DECNET: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_DECNET;
+pub const NFPROTO_NUMPROTO: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_NUMPROTO;
#[repr(u32)]
#[non_exhaustive]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
@@ -1384,6 +1791,121 @@ TCP_NLA_EDT = 25,
TCP_NLA_TTL = 26,
TCP_NLA_REHASH = 27,
}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum net_device_flags {
+IFF_UP = 1,
+IFF_BROADCAST = 2,
+IFF_DEBUG = 4,
+IFF_LOOPBACK = 8,
+IFF_POINTOPOINT = 16,
+IFF_NOTRAILERS = 32,
+IFF_RUNNING = 64,
+IFF_NOARP = 128,
+IFF_PROMISC = 256,
+IFF_ALLMULTI = 512,
+IFF_MASTER = 1024,
+IFF_SLAVE = 2048,
+IFF_MULTICAST = 4096,
+IFF_PORTSEL = 8192,
+IFF_AUTOMEDIA = 16384,
+IFF_DYNAMIC = 32768,
+IFF_LOWER_UP = 65536,
+IFF_DORMANT = 131072,
+IFF_ECHO = 262144,
+}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum _bindgen_ty_7 {
+IF_OPER_UNKNOWN = 0,
+IF_OPER_NOTPRESENT = 1,
+IF_OPER_DOWN = 2,
+IF_OPER_LOWERLAYERDOWN = 3,
+IF_OPER_TESTING = 4,
+IF_OPER_DORMANT = 5,
+IF_OPER_UP = 6,
+}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum _bindgen_ty_8 {
+IF_LINK_MODE_DEFAULT = 0,
+IF_LINK_MODE_DORMANT = 1,
+IF_LINK_MODE_TESTING = 2,
+}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum nf_inet_hooks {
+NF_INET_PRE_ROUTING = 0,
+NF_INET_LOCAL_IN = 1,
+NF_INET_FORWARD = 2,
+NF_INET_LOCAL_OUT = 3,
+NF_INET_POST_ROUTING = 4,
+NF_INET_NUMHOOKS = 5,
+}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum nf_dev_hooks {
+NF_NETDEV_INGRESS = 0,
+NF_NETDEV_EGRESS = 1,
+NF_NETDEV_NUMHOOKS = 2,
+}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum _bindgen_ty_9 {
+NFPROTO_UNSPEC = 0,
+NFPROTO_INET = 1,
+NFPROTO_IPV4 = 2,
+NFPROTO_ARP = 3,
+NFPROTO_NETDEV = 5,
+NFPROTO_BRIDGE = 7,
+NFPROTO_IPV6 = 10,
+NFPROTO_DECNET = 12,
+NFPROTO_NUMPROTO = 13,
+}
+#[repr(i32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum nf_ip6_hook_priorities {
+NF_IP6_PRI_FIRST = -2147483648,
+NF_IP6_PRI_RAW_BEFORE_DEFRAG = -450,
+NF_IP6_PRI_CONNTRACK_DEFRAG = -400,
+NF_IP6_PRI_RAW = -300,
+NF_IP6_PRI_SELINUX_FIRST = -225,
+NF_IP6_PRI_CONNTRACK = -200,
+NF_IP6_PRI_MANGLE = -150,
+NF_IP6_PRI_NAT_DST = -100,
+NF_IP6_PRI_FILTER = 0,
+NF_IP6_PRI_SECURITY = 50,
+NF_IP6_PRI_NAT_SRC = 100,
+NF_IP6_PRI_SELINUX_LAST = 225,
+NF_IP6_PRI_CONNTRACK_HELPER = 300,
+NF_IP6_PRI_LAST = 2147483647,
+}
+#[repr(i32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum nf_ip_hook_priorities {
+NF_IP_PRI_FIRST = -2147483648,
+NF_IP_PRI_RAW_BEFORE_DEFRAG = -450,
+NF_IP_PRI_CONNTRACK_DEFRAG = -400,
+NF_IP_PRI_RAW = -300,
+NF_IP_PRI_SELINUX_FIRST = -225,
+NF_IP_PRI_CONNTRACK = -200,
+NF_IP_PRI_MANGLE = -150,
+NF_IP_PRI_NAT_DST = -100,
+NF_IP_PRI_FILTER = 0,
+NF_IP_PRI_SECURITY = 50,
+NF_IP_PRI_NAT_SRC = 100,
+NF_IP_PRI_SELINUX_LAST = 225,
+NF_IP_PRI_CONNTRACK_HELPER = 300,
+NF_IP_PRI_CONNTRACK_CONFIRM = 2147483647,
+}
#[repr(C)]
#[derive(Copy, Clone)]
pub union __kernel_sockaddr_storage__bindgen_ty_1 {
@@ -1415,6 +1937,69 @@ pub union tcp_word_hdr {
pub hdr: tcphdr,
pub words: [__be32; 5usize],
}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union if_settings__bindgen_ty_1 {
+pub raw_hdlc: *mut raw_hdlc_proto,
+pub cisco: *mut cisco_proto,
+pub fr: *mut fr_proto,
+pub fr_pvc: *mut fr_proto_pvc,
+pub fr_pvc_info: *mut fr_proto_pvc_info,
+pub x25: *mut x25_hdlc_proto,
+pub sync: *mut sync_serial_settings,
+pub te1: *mut te1_settings,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union ifreq__bindgen_ty_1 {
+pub ifrn_name: [crate::ctypes::c_char; 16usize],
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union ifreq__bindgen_ty_2 {
+pub ifru_addr: sockaddr,
+pub ifru_dstaddr: sockaddr,
+pub ifru_broadaddr: sockaddr,
+pub ifru_netmask: sockaddr,
+pub ifru_hwaddr: sockaddr,
+pub ifru_flags: crate::ctypes::c_short,
+pub ifru_ivalue: crate::ctypes::c_int,
+pub ifru_mtu: crate::ctypes::c_int,
+pub ifru_map: ifmap,
+pub ifru_slave: [crate::ctypes::c_char; 16usize],
+pub ifru_newname: [crate::ctypes::c_char; 16usize],
+pub ifru_data: *mut crate::ctypes::c_void,
+pub ifru_settings: if_settings,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union ifconf__bindgen_ty_1 {
+pub ifcu_buf: *mut crate::ctypes::c_char,
+pub ifcu_req: *mut ifreq,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union nf_inet_addr {
+pub all: [__u32; 4usize],
+pub ip: __be32,
+pub ip6: [__be32; 4usize],
+pub in_: in_addr,
+pub in6: in6_addr,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union xt_entry_match__bindgen_ty_1 {
+pub user: xt_entry_match__bindgen_ty_1__bindgen_ty_1,
+pub kernel: xt_entry_match__bindgen_ty_1__bindgen_ty_2,
+pub match_size: __u16,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union xt_entry_target__bindgen_ty_1 {
+pub user: xt_entry_target__bindgen_ty_1__bindgen_ty_1,
+pub kernel: xt_entry_target__bindgen_ty_1__bindgen_ty_2,
+pub target_size: __u16,
+}
impl<Storage> __BindgenBitfieldUnit<Storage> {
#[inline]
pub const fn new(storage: Storage) -> Self {
@@ -1840,3 +2425,9 @@ tcpi_fastopen_client_fail as u64
__bindgen_bitfield_unit
}
}
+impl nf_inet_hooks {
+pub const NF_INET_INGRESS: nf_inet_hooks = nf_inet_hooks::NF_INET_NUMHOOKS;
+}
+impl nf_ip_hook_priorities {
+pub const NF_IP_PRI_LAST: nf_ip_hook_priorities = nf_ip_hook_priorities::NF_IP_PRI_CONNTRACK_CONFIRM;
+}
diff --git a/vendor/linux-raw-sys/src/powerpc64/general.rs b/vendor/linux-raw-sys/src/powerpc64/general.rs
index 6a08a1998..5be30ce0a 100644
--- a/vendor/linux-raw-sys/src/powerpc64/general.rs
+++ b/vendor/linux-raw-sys/src/powerpc64/general.rs
@@ -1639,6 +1639,19 @@ pub const POLLRDHUP: u32 = 8192;
pub const GRND_NONBLOCK: u32 = 1;
pub const GRND_RANDOM: u32 = 2;
pub const GRND_INSECURE: u32 = 4;
+pub const LINUX_REBOOT_MAGIC1: u32 = 4276215469;
+pub const LINUX_REBOOT_MAGIC2: u32 = 672274793;
+pub const LINUX_REBOOT_MAGIC2A: u32 = 85072278;
+pub const LINUX_REBOOT_MAGIC2B: u32 = 369367448;
+pub const LINUX_REBOOT_MAGIC2C: u32 = 537993216;
+pub const LINUX_REBOOT_CMD_RESTART: u32 = 19088743;
+pub const LINUX_REBOOT_CMD_HALT: u32 = 3454992675;
+pub const LINUX_REBOOT_CMD_CAD_ON: u32 = 2309737967;
+pub const LINUX_REBOOT_CMD_CAD_OFF: u32 = 0;
+pub const LINUX_REBOOT_CMD_POWER_OFF: u32 = 1126301404;
+pub const LINUX_REBOOT_CMD_RESTART2: u32 = 2712847316;
+pub const LINUX_REBOOT_CMD_SW_SUSPEND: u32 = 3489725666;
+pub const LINUX_REBOOT_CMD_KEXEC: u32 = 1163412803;
pub const ITIMER_REAL: u32 = 0;
pub const ITIMER_VIRTUAL: u32 = 1;
pub const ITIMER_PROF: u32 = 2;
diff --git a/vendor/linux-raw-sys/src/powerpc64/net.rs b/vendor/linux-raw-sys/src/powerpc64/net.rs
index 996837473..63cb530ae 100644
--- a/vendor/linux-raw-sys/src/powerpc64/net.rs
+++ b/vendor/linux-raw-sys/src/powerpc64/net.rs
@@ -482,6 +482,255 @@ pub __storage: __kernel_sockaddr_storage,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
+pub struct sync_serial_settings {
+pub clock_rate: crate::ctypes::c_uint,
+pub clock_type: crate::ctypes::c_uint,
+pub loopback: crate::ctypes::c_ushort,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct te1_settings {
+pub clock_rate: crate::ctypes::c_uint,
+pub clock_type: crate::ctypes::c_uint,
+pub loopback: crate::ctypes::c_ushort,
+pub slot_map: crate::ctypes::c_uint,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct raw_hdlc_proto {
+pub encoding: crate::ctypes::c_ushort,
+pub parity: crate::ctypes::c_ushort,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct fr_proto {
+pub t391: crate::ctypes::c_uint,
+pub t392: crate::ctypes::c_uint,
+pub n391: crate::ctypes::c_uint,
+pub n392: crate::ctypes::c_uint,
+pub n393: crate::ctypes::c_uint,
+pub lmi: crate::ctypes::c_ushort,
+pub dce: crate::ctypes::c_ushort,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct fr_proto_pvc {
+pub dlci: crate::ctypes::c_uint,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct fr_proto_pvc_info {
+pub dlci: crate::ctypes::c_uint,
+pub master: [crate::ctypes::c_char; 16usize],
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct cisco_proto {
+pub interval: crate::ctypes::c_uint,
+pub timeout: crate::ctypes::c_uint,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct x25_hdlc_proto {
+pub dce: crate::ctypes::c_ushort,
+pub modulo: crate::ctypes::c_uint,
+pub window: crate::ctypes::c_uint,
+pub t1: crate::ctypes::c_uint,
+pub t2: crate::ctypes::c_uint,
+pub n2: crate::ctypes::c_uint,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct ifmap {
+pub mem_start: crate::ctypes::c_ulong,
+pub mem_end: crate::ctypes::c_ulong,
+pub base_addr: crate::ctypes::c_ushort,
+pub irq: crate::ctypes::c_uchar,
+pub dma: crate::ctypes::c_uchar,
+pub port: crate::ctypes::c_uchar,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub struct if_settings {
+pub type_: crate::ctypes::c_uint,
+pub size: crate::ctypes::c_uint,
+pub ifs_ifsu: if_settings__bindgen_ty_1,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub struct ifreq {
+pub ifr_ifrn: ifreq__bindgen_ty_1,
+pub ifr_ifru: ifreq__bindgen_ty_2,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub struct ifconf {
+pub ifc_len: crate::ctypes::c_int,
+pub ifc_ifcu: ifconf__bindgen_ty_1,
+}
+#[repr(C)]
+pub struct xt_entry_match {
+pub u: xt_entry_match__bindgen_ty_1,
+pub data: __IncompleteArrayField<crate::ctypes::c_uchar>,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_entry_match__bindgen_ty_1__bindgen_ty_1 {
+pub match_size: __u16,
+pub name: [crate::ctypes::c_char; 29usize],
+pub revision: __u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_entry_match__bindgen_ty_1__bindgen_ty_2 {
+pub match_size: __u16,
+pub match_: *mut xt_match,
+}
+#[repr(C)]
+pub struct xt_entry_target {
+pub u: xt_entry_target__bindgen_ty_1,
+pub data: __IncompleteArrayField<crate::ctypes::c_uchar>,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_entry_target__bindgen_ty_1__bindgen_ty_1 {
+pub target_size: __u16,
+pub name: [crate::ctypes::c_char; 29usize],
+pub revision: __u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_entry_target__bindgen_ty_1__bindgen_ty_2 {
+pub target_size: __u16,
+pub target: *mut xt_target,
+}
+#[repr(C)]
+pub struct xt_standard_target {
+pub target: xt_entry_target,
+pub verdict: crate::ctypes::c_int,
+}
+#[repr(C)]
+pub struct xt_error_target {
+pub target: xt_entry_target,
+pub errorname: [crate::ctypes::c_char; 30usize],
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_get_revision {
+pub name: [crate::ctypes::c_char; 29usize],
+pub revision: __u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct _xt_align {
+pub u8_: __u8,
+pub u16_: __u16,
+pub u32_: __u32,
+pub u64_: __u64,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_counters {
+pub pcnt: __u64,
+pub bcnt: __u64,
+}
+#[repr(C)]
+#[derive(Debug)]
+pub struct xt_counters_info {
+pub name: [crate::ctypes::c_char; 32usize],
+pub num_counters: crate::ctypes::c_uint,
+pub counters: __IncompleteArrayField<xt_counters>,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_tcp {
+pub spts: [__u16; 2usize],
+pub dpts: [__u16; 2usize],
+pub option: __u8,
+pub flg_mask: __u8,
+pub flg_cmp: __u8,
+pub invflags: __u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_udp {
+pub spts: [__u16; 2usize],
+pub dpts: [__u16; 2usize],
+pub invflags: __u8,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub struct ip6t_ip6 {
+pub src: in6_addr,
+pub dst: in6_addr,
+pub smsk: in6_addr,
+pub dmsk: in6_addr,
+pub iniface: [crate::ctypes::c_char; 16usize],
+pub outiface: [crate::ctypes::c_char; 16usize],
+pub iniface_mask: [crate::ctypes::c_uchar; 16usize],
+pub outiface_mask: [crate::ctypes::c_uchar; 16usize],
+pub proto: __u16,
+pub tos: __u8,
+pub flags: __u8,
+pub invflags: __u8,
+}
+#[repr(C)]
+pub struct ip6t_entry {
+pub ipv6: ip6t_ip6,
+pub nfcache: crate::ctypes::c_uint,
+pub target_offset: __u16,
+pub next_offset: __u16,
+pub comefrom: crate::ctypes::c_uint,
+pub counters: xt_counters,
+pub elems: __IncompleteArrayField<crate::ctypes::c_uchar>,
+}
+#[repr(C)]
+pub struct ip6t_standard {
+pub entry: ip6t_entry,
+pub target: xt_standard_target,
+}
+#[repr(C)]
+pub struct ip6t_error {
+pub entry: ip6t_entry,
+pub target: xt_error_target,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct ip6t_icmp {
+pub type_: __u8,
+pub code: [__u8; 2usize],
+pub invflags: __u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct ip6t_getinfo {
+pub name: [crate::ctypes::c_char; 32usize],
+pub valid_hooks: crate::ctypes::c_uint,
+pub hook_entry: [crate::ctypes::c_uint; 5usize],
+pub underflow: [crate::ctypes::c_uint; 5usize],
+pub num_entries: crate::ctypes::c_uint,
+pub size: crate::ctypes::c_uint,
+}
+#[repr(C)]
+pub struct ip6t_replace {
+pub name: [crate::ctypes::c_char; 32usize],
+pub valid_hooks: crate::ctypes::c_uint,
+pub num_entries: crate::ctypes::c_uint,
+pub size: crate::ctypes::c_uint,
+pub hook_entry: [crate::ctypes::c_uint; 5usize],
+pub underflow: [crate::ctypes::c_uint; 5usize],
+pub num_counters: crate::ctypes::c_uint,
+pub counters: *mut xt_counters,
+pub entries: __IncompleteArrayField<ip6t_entry>,
+}
+#[repr(C)]
+pub struct ip6t_get_entries {
+pub name: [crate::ctypes::c_char; 32usize],
+pub size: crate::ctypes::c_uint,
+pub entrytable: __IncompleteArrayField<ip6t_entry>,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
pub struct linger {
pub l_onoff: crate::ctypes::c_int,
pub l_linger: crate::ctypes::c_int,
@@ -519,6 +768,16 @@ pub msg_len: crate::ctypes::c_uint,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
+pub struct xt_match {
+pub _address: u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_target {
+pub _address: u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
pub struct iovec {
pub _address: u8,
}
@@ -941,6 +1200,135 @@ pub const TCP_MD5SIG_FLAG_PREFIX: u32 = 1;
pub const TCP_MD5SIG_FLAG_IFINDEX: u32 = 2;
pub const TCP_RECEIVE_ZEROCOPY_FLAG_TLB_CLEAN_HINT: u32 = 1;
pub const UNIX_PATH_MAX: u32 = 108;
+pub const IFNAMSIZ: u32 = 16;
+pub const IFALIASZ: u32 = 256;
+pub const ALTIFNAMSIZ: u32 = 128;
+pub const GENERIC_HDLC_VERSION: u32 = 4;
+pub const CLOCK_DEFAULT: u32 = 0;
+pub const CLOCK_EXT: u32 = 1;
+pub const CLOCK_INT: u32 = 2;
+pub const CLOCK_TXINT: u32 = 3;
+pub const CLOCK_TXFROMRX: u32 = 4;
+pub const ENCODING_DEFAULT: u32 = 0;
+pub const ENCODING_NRZ: u32 = 1;
+pub const ENCODING_NRZI: u32 = 2;
+pub const ENCODING_FM_MARK: u32 = 3;
+pub const ENCODING_FM_SPACE: u32 = 4;
+pub const ENCODING_MANCHESTER: u32 = 5;
+pub const PARITY_DEFAULT: u32 = 0;
+pub const PARITY_NONE: u32 = 1;
+pub const PARITY_CRC16_PR0: u32 = 2;
+pub const PARITY_CRC16_PR1: u32 = 3;
+pub const PARITY_CRC16_PR0_CCITT: u32 = 4;
+pub const PARITY_CRC16_PR1_CCITT: u32 = 5;
+pub const PARITY_CRC32_PR0_CCITT: u32 = 6;
+pub const PARITY_CRC32_PR1_CCITT: u32 = 7;
+pub const LMI_DEFAULT: u32 = 0;
+pub const LMI_NONE: u32 = 1;
+pub const LMI_ANSI: u32 = 2;
+pub const LMI_CCITT: u32 = 3;
+pub const LMI_CISCO: u32 = 4;
+pub const IF_GET_IFACE: u32 = 1;
+pub const IF_GET_PROTO: u32 = 2;
+pub const IF_IFACE_V35: u32 = 4096;
+pub const IF_IFACE_V24: u32 = 4097;
+pub const IF_IFACE_X21: u32 = 4098;
+pub const IF_IFACE_T1: u32 = 4099;
+pub const IF_IFACE_E1: u32 = 4100;
+pub const IF_IFACE_SYNC_SERIAL: u32 = 4101;
+pub const IF_IFACE_X21D: u32 = 4102;
+pub const IF_PROTO_HDLC: u32 = 8192;
+pub const IF_PROTO_PPP: u32 = 8193;
+pub const IF_PROTO_CISCO: u32 = 8194;
+pub const IF_PROTO_FR: u32 = 8195;
+pub const IF_PROTO_FR_ADD_PVC: u32 = 8196;
+pub const IF_PROTO_FR_DEL_PVC: u32 = 8197;
+pub const IF_PROTO_X25: u32 = 8198;
+pub const IF_PROTO_HDLC_ETH: u32 = 8199;
+pub const IF_PROTO_FR_ADD_ETH_PVC: u32 = 8200;
+pub const IF_PROTO_FR_DEL_ETH_PVC: u32 = 8201;
+pub const IF_PROTO_FR_PVC: u32 = 8202;
+pub const IF_PROTO_FR_ETH_PVC: u32 = 8203;
+pub const IF_PROTO_RAW: u32 = 8204;
+pub const IFHWADDRLEN: u32 = 6;
+pub const NF_DROP: u32 = 0;
+pub const NF_ACCEPT: u32 = 1;
+pub const NF_STOLEN: u32 = 2;
+pub const NF_QUEUE: u32 = 3;
+pub const NF_REPEAT: u32 = 4;
+pub const NF_STOP: u32 = 5;
+pub const NF_MAX_VERDICT: u32 = 5;
+pub const NF_VERDICT_MASK: u32 = 255;
+pub const NF_VERDICT_FLAG_QUEUE_BYPASS: u32 = 32768;
+pub const NF_VERDICT_QMASK: u32 = 4294901760;
+pub const NF_VERDICT_QBITS: u32 = 16;
+pub const NF_VERDICT_BITS: u32 = 16;
+pub const NF_IP6_PRE_ROUTING: u32 = 0;
+pub const NF_IP6_LOCAL_IN: u32 = 1;
+pub const NF_IP6_FORWARD: u32 = 2;
+pub const NF_IP6_LOCAL_OUT: u32 = 3;
+pub const NF_IP6_POST_ROUTING: u32 = 4;
+pub const NF_IP6_NUMHOOKS: u32 = 5;
+pub const XT_FUNCTION_MAXNAMELEN: u32 = 30;
+pub const XT_EXTENSION_MAXNAMELEN: u32 = 29;
+pub const XT_TABLE_MAXNAMELEN: u32 = 32;
+pub const XT_CONTINUE: u32 = 4294967295;
+pub const XT_RETURN: i32 = -5;
+pub const XT_STANDARD_TARGET: &[u8; 1] = b"\0";
+pub const XT_ERROR_TARGET: &[u8; 6] = b"ERROR\0";
+pub const XT_INV_PROTO: u32 = 64;
+pub const IP6T_FUNCTION_MAXNAMELEN: u32 = 30;
+pub const IP6T_TABLE_MAXNAMELEN: u32 = 32;
+pub const IP6T_CONTINUE: u32 = 4294967295;
+pub const IP6T_RETURN: i32 = -5;
+pub const XT_TCP_INV_SRCPT: u32 = 1;
+pub const XT_TCP_INV_DSTPT: u32 = 2;
+pub const XT_TCP_INV_FLAGS: u32 = 4;
+pub const XT_TCP_INV_OPTION: u32 = 8;
+pub const XT_TCP_INV_MASK: u32 = 15;
+pub const XT_UDP_INV_SRCPT: u32 = 1;
+pub const XT_UDP_INV_DSTPT: u32 = 2;
+pub const XT_UDP_INV_MASK: u32 = 3;
+pub const IP6T_TCP_INV_SRCPT: u32 = 1;
+pub const IP6T_TCP_INV_DSTPT: u32 = 2;
+pub const IP6T_TCP_INV_FLAGS: u32 = 4;
+pub const IP6T_TCP_INV_OPTION: u32 = 8;
+pub const IP6T_TCP_INV_MASK: u32 = 15;
+pub const IP6T_UDP_INV_SRCPT: u32 = 1;
+pub const IP6T_UDP_INV_DSTPT: u32 = 2;
+pub const IP6T_UDP_INV_MASK: u32 = 3;
+pub const IP6T_STANDARD_TARGET: &[u8; 1] = b"\0";
+pub const IP6T_ERROR_TARGET: &[u8; 6] = b"ERROR\0";
+pub const IP6T_F_PROTO: u32 = 1;
+pub const IP6T_F_TOS: u32 = 2;
+pub const IP6T_F_GOTO: u32 = 4;
+pub const IP6T_F_MASK: u32 = 7;
+pub const IP6T_INV_VIA_IN: u32 = 1;
+pub const IP6T_INV_VIA_OUT: u32 = 2;
+pub const IP6T_INV_TOS: u32 = 4;
+pub const IP6T_INV_SRCIP: u32 = 8;
+pub const IP6T_INV_DSTIP: u32 = 16;
+pub const IP6T_INV_FRAG: u32 = 32;
+pub const IP6T_INV_PROTO: u32 = 64;
+pub const IP6T_INV_MASK: u32 = 127;
+pub const IP6T_BASE_CTL: u32 = 64;
+pub const IP6T_SO_SET_REPLACE: u32 = 64;
+pub const IP6T_SO_SET_ADD_COUNTERS: u32 = 65;
+pub const IP6T_SO_SET_MAX: u32 = 65;
+pub const IP6T_SO_GET_INFO: u32 = 64;
+pub const IP6T_SO_GET_ENTRIES: u32 = 65;
+pub const IP6T_SO_GET_REVISION_MATCH: u32 = 68;
+pub const IP6T_SO_GET_REVISION_TARGET: u32 = 69;
+pub const IP6T_SO_GET_MAX: u32 = 69;
+pub const IP6T_SO_ORIGINAL_DST: u32 = 80;
+pub const IP6T_ICMP_INV: u32 = 1;
+pub const NF_IP_PRE_ROUTING: u32 = 0;
+pub const NF_IP_LOCAL_IN: u32 = 1;
+pub const NF_IP_FORWARD: u32 = 2;
+pub const NF_IP_LOCAL_OUT: u32 = 3;
+pub const NF_IP_POST_ROUTING: u32 = 4;
+pub const NF_IP_NUMHOOKS: u32 = 5;
+pub const SO_ORIGINAL_DST: u32 = 80;
pub const SHUT_RD: u32 = 0;
pub const SHUT_WR: u32 = 1;
pub const SHUT_RDWR: u32 = 2;
@@ -1169,6 +1557,25 @@ pub const TCP_NLA_BYTES_NOTSENT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_NO
pub const TCP_NLA_EDT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_EDT;
pub const TCP_NLA_TTL: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TTL;
pub const TCP_NLA_REHASH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REHASH;
+pub const IF_OPER_UNKNOWN: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_UNKNOWN;
+pub const IF_OPER_NOTPRESENT: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_NOTPRESENT;
+pub const IF_OPER_DOWN: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_DOWN;
+pub const IF_OPER_LOWERLAYERDOWN: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_LOWERLAYERDOWN;
+pub const IF_OPER_TESTING: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_TESTING;
+pub const IF_OPER_DORMANT: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_DORMANT;
+pub const IF_OPER_UP: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_UP;
+pub const IF_LINK_MODE_DEFAULT: _bindgen_ty_8 = _bindgen_ty_8::IF_LINK_MODE_DEFAULT;
+pub const IF_LINK_MODE_DORMANT: _bindgen_ty_8 = _bindgen_ty_8::IF_LINK_MODE_DORMANT;
+pub const IF_LINK_MODE_TESTING: _bindgen_ty_8 = _bindgen_ty_8::IF_LINK_MODE_TESTING;
+pub const NFPROTO_UNSPEC: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_UNSPEC;
+pub const NFPROTO_INET: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_INET;
+pub const NFPROTO_IPV4: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_IPV4;
+pub const NFPROTO_ARP: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_ARP;
+pub const NFPROTO_NETDEV: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_NETDEV;
+pub const NFPROTO_BRIDGE: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_BRIDGE;
+pub const NFPROTO_IPV6: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_IPV6;
+pub const NFPROTO_DECNET: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_DECNET;
+pub const NFPROTO_NUMPROTO: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_NUMPROTO;
#[repr(u32)]
#[non_exhaustive]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
@@ -1392,6 +1799,121 @@ TCP_NLA_EDT = 25,
TCP_NLA_TTL = 26,
TCP_NLA_REHASH = 27,
}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum net_device_flags {
+IFF_UP = 1,
+IFF_BROADCAST = 2,
+IFF_DEBUG = 4,
+IFF_LOOPBACK = 8,
+IFF_POINTOPOINT = 16,
+IFF_NOTRAILERS = 32,
+IFF_RUNNING = 64,
+IFF_NOARP = 128,
+IFF_PROMISC = 256,
+IFF_ALLMULTI = 512,
+IFF_MASTER = 1024,
+IFF_SLAVE = 2048,
+IFF_MULTICAST = 4096,
+IFF_PORTSEL = 8192,
+IFF_AUTOMEDIA = 16384,
+IFF_DYNAMIC = 32768,
+IFF_LOWER_UP = 65536,
+IFF_DORMANT = 131072,
+IFF_ECHO = 262144,
+}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum _bindgen_ty_7 {
+IF_OPER_UNKNOWN = 0,
+IF_OPER_NOTPRESENT = 1,
+IF_OPER_DOWN = 2,
+IF_OPER_LOWERLAYERDOWN = 3,
+IF_OPER_TESTING = 4,
+IF_OPER_DORMANT = 5,
+IF_OPER_UP = 6,
+}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum _bindgen_ty_8 {
+IF_LINK_MODE_DEFAULT = 0,
+IF_LINK_MODE_DORMANT = 1,
+IF_LINK_MODE_TESTING = 2,
+}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum nf_inet_hooks {
+NF_INET_PRE_ROUTING = 0,
+NF_INET_LOCAL_IN = 1,
+NF_INET_FORWARD = 2,
+NF_INET_LOCAL_OUT = 3,
+NF_INET_POST_ROUTING = 4,
+NF_INET_NUMHOOKS = 5,
+}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum nf_dev_hooks {
+NF_NETDEV_INGRESS = 0,
+NF_NETDEV_EGRESS = 1,
+NF_NETDEV_NUMHOOKS = 2,
+}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum _bindgen_ty_9 {
+NFPROTO_UNSPEC = 0,
+NFPROTO_INET = 1,
+NFPROTO_IPV4 = 2,
+NFPROTO_ARP = 3,
+NFPROTO_NETDEV = 5,
+NFPROTO_BRIDGE = 7,
+NFPROTO_IPV6 = 10,
+NFPROTO_DECNET = 12,
+NFPROTO_NUMPROTO = 13,
+}
+#[repr(i32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum nf_ip6_hook_priorities {
+NF_IP6_PRI_FIRST = -2147483648,
+NF_IP6_PRI_RAW_BEFORE_DEFRAG = -450,
+NF_IP6_PRI_CONNTRACK_DEFRAG = -400,
+NF_IP6_PRI_RAW = -300,
+NF_IP6_PRI_SELINUX_FIRST = -225,
+NF_IP6_PRI_CONNTRACK = -200,
+NF_IP6_PRI_MANGLE = -150,
+NF_IP6_PRI_NAT_DST = -100,
+NF_IP6_PRI_FILTER = 0,
+NF_IP6_PRI_SECURITY = 50,
+NF_IP6_PRI_NAT_SRC = 100,
+NF_IP6_PRI_SELINUX_LAST = 225,
+NF_IP6_PRI_CONNTRACK_HELPER = 300,
+NF_IP6_PRI_LAST = 2147483647,
+}
+#[repr(i32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum nf_ip_hook_priorities {
+NF_IP_PRI_FIRST = -2147483648,
+NF_IP_PRI_RAW_BEFORE_DEFRAG = -450,
+NF_IP_PRI_CONNTRACK_DEFRAG = -400,
+NF_IP_PRI_RAW = -300,
+NF_IP_PRI_SELINUX_FIRST = -225,
+NF_IP_PRI_CONNTRACK = -200,
+NF_IP_PRI_MANGLE = -150,
+NF_IP_PRI_NAT_DST = -100,
+NF_IP_PRI_FILTER = 0,
+NF_IP_PRI_SECURITY = 50,
+NF_IP_PRI_NAT_SRC = 100,
+NF_IP_PRI_SELINUX_LAST = 225,
+NF_IP_PRI_CONNTRACK_HELPER = 300,
+NF_IP_PRI_CONNTRACK_CONFIRM = 2147483647,
+}
#[repr(C)]
#[derive(Copy, Clone)]
pub union __kernel_sockaddr_storage__bindgen_ty_1 {
@@ -1423,6 +1945,69 @@ pub union tcp_word_hdr {
pub hdr: tcphdr,
pub words: [__be32; 5usize],
}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union if_settings__bindgen_ty_1 {
+pub raw_hdlc: *mut raw_hdlc_proto,
+pub cisco: *mut cisco_proto,
+pub fr: *mut fr_proto,
+pub fr_pvc: *mut fr_proto_pvc,
+pub fr_pvc_info: *mut fr_proto_pvc_info,
+pub x25: *mut x25_hdlc_proto,
+pub sync: *mut sync_serial_settings,
+pub te1: *mut te1_settings,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union ifreq__bindgen_ty_1 {
+pub ifrn_name: [crate::ctypes::c_char; 16usize],
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union ifreq__bindgen_ty_2 {
+pub ifru_addr: sockaddr,
+pub ifru_dstaddr: sockaddr,
+pub ifru_broadaddr: sockaddr,
+pub ifru_netmask: sockaddr,
+pub ifru_hwaddr: sockaddr,
+pub ifru_flags: crate::ctypes::c_short,
+pub ifru_ivalue: crate::ctypes::c_int,
+pub ifru_mtu: crate::ctypes::c_int,
+pub ifru_map: ifmap,
+pub ifru_slave: [crate::ctypes::c_char; 16usize],
+pub ifru_newname: [crate::ctypes::c_char; 16usize],
+pub ifru_data: *mut crate::ctypes::c_void,
+pub ifru_settings: if_settings,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union ifconf__bindgen_ty_1 {
+pub ifcu_buf: *mut crate::ctypes::c_char,
+pub ifcu_req: *mut ifreq,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union nf_inet_addr {
+pub all: [__u32; 4usize],
+pub ip: __be32,
+pub ip6: [__be32; 4usize],
+pub in_: in_addr,
+pub in6: in6_addr,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union xt_entry_match__bindgen_ty_1 {
+pub user: xt_entry_match__bindgen_ty_1__bindgen_ty_1,
+pub kernel: xt_entry_match__bindgen_ty_1__bindgen_ty_2,
+pub match_size: __u16,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union xt_entry_target__bindgen_ty_1 {
+pub user: xt_entry_target__bindgen_ty_1__bindgen_ty_1,
+pub kernel: xt_entry_target__bindgen_ty_1__bindgen_ty_2,
+pub target_size: __u16,
+}
impl<Storage> __BindgenBitfieldUnit<Storage> {
#[inline]
pub const fn new(storage: Storage) -> Self {
@@ -1848,3 +2433,9 @@ tcpi_fastopen_client_fail as u64
__bindgen_bitfield_unit
}
}
+impl nf_inet_hooks {
+pub const NF_INET_INGRESS: nf_inet_hooks = nf_inet_hooks::NF_INET_NUMHOOKS;
+}
+impl nf_ip_hook_priorities {
+pub const NF_IP_PRI_LAST: nf_ip_hook_priorities = nf_ip_hook_priorities::NF_IP_PRI_CONNTRACK_CONFIRM;
+}
diff --git a/vendor/linux-raw-sys/src/riscv32/general.rs b/vendor/linux-raw-sys/src/riscv32/general.rs
index 3fad459d2..2384ac2ea 100644
--- a/vendor/linux-raw-sys/src/riscv32/general.rs
+++ b/vendor/linux-raw-sys/src/riscv32/general.rs
@@ -1601,6 +1601,19 @@ pub const POLLRDHUP: u32 = 8192;
pub const GRND_NONBLOCK: u32 = 1;
pub const GRND_RANDOM: u32 = 2;
pub const GRND_INSECURE: u32 = 4;
+pub const LINUX_REBOOT_MAGIC1: u32 = 4276215469;
+pub const LINUX_REBOOT_MAGIC2: u32 = 672274793;
+pub const LINUX_REBOOT_MAGIC2A: u32 = 85072278;
+pub const LINUX_REBOOT_MAGIC2B: u32 = 369367448;
+pub const LINUX_REBOOT_MAGIC2C: u32 = 537993216;
+pub const LINUX_REBOOT_CMD_RESTART: u32 = 19088743;
+pub const LINUX_REBOOT_CMD_HALT: u32 = 3454992675;
+pub const LINUX_REBOOT_CMD_CAD_ON: u32 = 2309737967;
+pub const LINUX_REBOOT_CMD_CAD_OFF: u32 = 0;
+pub const LINUX_REBOOT_CMD_POWER_OFF: u32 = 1126301404;
+pub const LINUX_REBOOT_CMD_RESTART2: u32 = 2712847316;
+pub const LINUX_REBOOT_CMD_SW_SUSPEND: u32 = 3489725666;
+pub const LINUX_REBOOT_CMD_KEXEC: u32 = 1163412803;
pub const ITIMER_REAL: u32 = 0;
pub const ITIMER_VIRTUAL: u32 = 1;
pub const ITIMER_PROF: u32 = 2;
diff --git a/vendor/linux-raw-sys/src/riscv32/net.rs b/vendor/linux-raw-sys/src/riscv32/net.rs
index cfadfa5a2..247e63f0a 100644
--- a/vendor/linux-raw-sys/src/riscv32/net.rs
+++ b/vendor/linux-raw-sys/src/riscv32/net.rs
@@ -476,6 +476,255 @@ pub __storage: __kernel_sockaddr_storage,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
+pub struct sync_serial_settings {
+pub clock_rate: crate::ctypes::c_uint,
+pub clock_type: crate::ctypes::c_uint,
+pub loopback: crate::ctypes::c_ushort,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct te1_settings {
+pub clock_rate: crate::ctypes::c_uint,
+pub clock_type: crate::ctypes::c_uint,
+pub loopback: crate::ctypes::c_ushort,
+pub slot_map: crate::ctypes::c_uint,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct raw_hdlc_proto {
+pub encoding: crate::ctypes::c_ushort,
+pub parity: crate::ctypes::c_ushort,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct fr_proto {
+pub t391: crate::ctypes::c_uint,
+pub t392: crate::ctypes::c_uint,
+pub n391: crate::ctypes::c_uint,
+pub n392: crate::ctypes::c_uint,
+pub n393: crate::ctypes::c_uint,
+pub lmi: crate::ctypes::c_ushort,
+pub dce: crate::ctypes::c_ushort,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct fr_proto_pvc {
+pub dlci: crate::ctypes::c_uint,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct fr_proto_pvc_info {
+pub dlci: crate::ctypes::c_uint,
+pub master: [crate::ctypes::c_char; 16usize],
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct cisco_proto {
+pub interval: crate::ctypes::c_uint,
+pub timeout: crate::ctypes::c_uint,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct x25_hdlc_proto {
+pub dce: crate::ctypes::c_ushort,
+pub modulo: crate::ctypes::c_uint,
+pub window: crate::ctypes::c_uint,
+pub t1: crate::ctypes::c_uint,
+pub t2: crate::ctypes::c_uint,
+pub n2: crate::ctypes::c_uint,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct ifmap {
+pub mem_start: crate::ctypes::c_ulong,
+pub mem_end: crate::ctypes::c_ulong,
+pub base_addr: crate::ctypes::c_ushort,
+pub irq: crate::ctypes::c_uchar,
+pub dma: crate::ctypes::c_uchar,
+pub port: crate::ctypes::c_uchar,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub struct if_settings {
+pub type_: crate::ctypes::c_uint,
+pub size: crate::ctypes::c_uint,
+pub ifs_ifsu: if_settings__bindgen_ty_1,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub struct ifreq {
+pub ifr_ifrn: ifreq__bindgen_ty_1,
+pub ifr_ifru: ifreq__bindgen_ty_2,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub struct ifconf {
+pub ifc_len: crate::ctypes::c_int,
+pub ifc_ifcu: ifconf__bindgen_ty_1,
+}
+#[repr(C)]
+pub struct xt_entry_match {
+pub u: xt_entry_match__bindgen_ty_1,
+pub data: __IncompleteArrayField<crate::ctypes::c_uchar>,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_entry_match__bindgen_ty_1__bindgen_ty_1 {
+pub match_size: __u16,
+pub name: [crate::ctypes::c_char; 29usize],
+pub revision: __u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_entry_match__bindgen_ty_1__bindgen_ty_2 {
+pub match_size: __u16,
+pub match_: *mut xt_match,
+}
+#[repr(C)]
+pub struct xt_entry_target {
+pub u: xt_entry_target__bindgen_ty_1,
+pub data: __IncompleteArrayField<crate::ctypes::c_uchar>,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_entry_target__bindgen_ty_1__bindgen_ty_1 {
+pub target_size: __u16,
+pub name: [crate::ctypes::c_char; 29usize],
+pub revision: __u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_entry_target__bindgen_ty_1__bindgen_ty_2 {
+pub target_size: __u16,
+pub target: *mut xt_target,
+}
+#[repr(C)]
+pub struct xt_standard_target {
+pub target: xt_entry_target,
+pub verdict: crate::ctypes::c_int,
+}
+#[repr(C)]
+pub struct xt_error_target {
+pub target: xt_entry_target,
+pub errorname: [crate::ctypes::c_char; 30usize],
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_get_revision {
+pub name: [crate::ctypes::c_char; 29usize],
+pub revision: __u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct _xt_align {
+pub u8_: __u8,
+pub u16_: __u16,
+pub u32_: __u32,
+pub u64_: __u64,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_counters {
+pub pcnt: __u64,
+pub bcnt: __u64,
+}
+#[repr(C)]
+#[derive(Debug)]
+pub struct xt_counters_info {
+pub name: [crate::ctypes::c_char; 32usize],
+pub num_counters: crate::ctypes::c_uint,
+pub counters: __IncompleteArrayField<xt_counters>,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_tcp {
+pub spts: [__u16; 2usize],
+pub dpts: [__u16; 2usize],
+pub option: __u8,
+pub flg_mask: __u8,
+pub flg_cmp: __u8,
+pub invflags: __u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_udp {
+pub spts: [__u16; 2usize],
+pub dpts: [__u16; 2usize],
+pub invflags: __u8,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub struct ip6t_ip6 {
+pub src: in6_addr,
+pub dst: in6_addr,
+pub smsk: in6_addr,
+pub dmsk: in6_addr,
+pub iniface: [crate::ctypes::c_char; 16usize],
+pub outiface: [crate::ctypes::c_char; 16usize],
+pub iniface_mask: [crate::ctypes::c_uchar; 16usize],
+pub outiface_mask: [crate::ctypes::c_uchar; 16usize],
+pub proto: __u16,
+pub tos: __u8,
+pub flags: __u8,
+pub invflags: __u8,
+}
+#[repr(C)]
+pub struct ip6t_entry {
+pub ipv6: ip6t_ip6,
+pub nfcache: crate::ctypes::c_uint,
+pub target_offset: __u16,
+pub next_offset: __u16,
+pub comefrom: crate::ctypes::c_uint,
+pub counters: xt_counters,
+pub elems: __IncompleteArrayField<crate::ctypes::c_uchar>,
+}
+#[repr(C)]
+pub struct ip6t_standard {
+pub entry: ip6t_entry,
+pub target: xt_standard_target,
+}
+#[repr(C)]
+pub struct ip6t_error {
+pub entry: ip6t_entry,
+pub target: xt_error_target,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct ip6t_icmp {
+pub type_: __u8,
+pub code: [__u8; 2usize],
+pub invflags: __u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct ip6t_getinfo {
+pub name: [crate::ctypes::c_char; 32usize],
+pub valid_hooks: crate::ctypes::c_uint,
+pub hook_entry: [crate::ctypes::c_uint; 5usize],
+pub underflow: [crate::ctypes::c_uint; 5usize],
+pub num_entries: crate::ctypes::c_uint,
+pub size: crate::ctypes::c_uint,
+}
+#[repr(C)]
+pub struct ip6t_replace {
+pub name: [crate::ctypes::c_char; 32usize],
+pub valid_hooks: crate::ctypes::c_uint,
+pub num_entries: crate::ctypes::c_uint,
+pub size: crate::ctypes::c_uint,
+pub hook_entry: [crate::ctypes::c_uint; 5usize],
+pub underflow: [crate::ctypes::c_uint; 5usize],
+pub num_counters: crate::ctypes::c_uint,
+pub counters: *mut xt_counters,
+pub entries: __IncompleteArrayField<ip6t_entry>,
+}
+#[repr(C)]
+pub struct ip6t_get_entries {
+pub name: [crate::ctypes::c_char; 32usize],
+pub size: crate::ctypes::c_uint,
+pub entrytable: __IncompleteArrayField<ip6t_entry>,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
pub struct linger {
pub l_onoff: crate::ctypes::c_int,
pub l_linger: crate::ctypes::c_int,
@@ -513,6 +762,16 @@ pub msg_len: crate::ctypes::c_uint,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
+pub struct xt_match {
+pub _address: u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_target {
+pub _address: u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
pub struct iovec {
pub _address: u8,
}
@@ -927,6 +1186,135 @@ pub const TCP_MD5SIG_FLAG_PREFIX: u32 = 1;
pub const TCP_MD5SIG_FLAG_IFINDEX: u32 = 2;
pub const TCP_RECEIVE_ZEROCOPY_FLAG_TLB_CLEAN_HINT: u32 = 1;
pub const UNIX_PATH_MAX: u32 = 108;
+pub const IFNAMSIZ: u32 = 16;
+pub const IFALIASZ: u32 = 256;
+pub const ALTIFNAMSIZ: u32 = 128;
+pub const GENERIC_HDLC_VERSION: u32 = 4;
+pub const CLOCK_DEFAULT: u32 = 0;
+pub const CLOCK_EXT: u32 = 1;
+pub const CLOCK_INT: u32 = 2;
+pub const CLOCK_TXINT: u32 = 3;
+pub const CLOCK_TXFROMRX: u32 = 4;
+pub const ENCODING_DEFAULT: u32 = 0;
+pub const ENCODING_NRZ: u32 = 1;
+pub const ENCODING_NRZI: u32 = 2;
+pub const ENCODING_FM_MARK: u32 = 3;
+pub const ENCODING_FM_SPACE: u32 = 4;
+pub const ENCODING_MANCHESTER: u32 = 5;
+pub const PARITY_DEFAULT: u32 = 0;
+pub const PARITY_NONE: u32 = 1;
+pub const PARITY_CRC16_PR0: u32 = 2;
+pub const PARITY_CRC16_PR1: u32 = 3;
+pub const PARITY_CRC16_PR0_CCITT: u32 = 4;
+pub const PARITY_CRC16_PR1_CCITT: u32 = 5;
+pub const PARITY_CRC32_PR0_CCITT: u32 = 6;
+pub const PARITY_CRC32_PR1_CCITT: u32 = 7;
+pub const LMI_DEFAULT: u32 = 0;
+pub const LMI_NONE: u32 = 1;
+pub const LMI_ANSI: u32 = 2;
+pub const LMI_CCITT: u32 = 3;
+pub const LMI_CISCO: u32 = 4;
+pub const IF_GET_IFACE: u32 = 1;
+pub const IF_GET_PROTO: u32 = 2;
+pub const IF_IFACE_V35: u32 = 4096;
+pub const IF_IFACE_V24: u32 = 4097;
+pub const IF_IFACE_X21: u32 = 4098;
+pub const IF_IFACE_T1: u32 = 4099;
+pub const IF_IFACE_E1: u32 = 4100;
+pub const IF_IFACE_SYNC_SERIAL: u32 = 4101;
+pub const IF_IFACE_X21D: u32 = 4102;
+pub const IF_PROTO_HDLC: u32 = 8192;
+pub const IF_PROTO_PPP: u32 = 8193;
+pub const IF_PROTO_CISCO: u32 = 8194;
+pub const IF_PROTO_FR: u32 = 8195;
+pub const IF_PROTO_FR_ADD_PVC: u32 = 8196;
+pub const IF_PROTO_FR_DEL_PVC: u32 = 8197;
+pub const IF_PROTO_X25: u32 = 8198;
+pub const IF_PROTO_HDLC_ETH: u32 = 8199;
+pub const IF_PROTO_FR_ADD_ETH_PVC: u32 = 8200;
+pub const IF_PROTO_FR_DEL_ETH_PVC: u32 = 8201;
+pub const IF_PROTO_FR_PVC: u32 = 8202;
+pub const IF_PROTO_FR_ETH_PVC: u32 = 8203;
+pub const IF_PROTO_RAW: u32 = 8204;
+pub const IFHWADDRLEN: u32 = 6;
+pub const NF_DROP: u32 = 0;
+pub const NF_ACCEPT: u32 = 1;
+pub const NF_STOLEN: u32 = 2;
+pub const NF_QUEUE: u32 = 3;
+pub const NF_REPEAT: u32 = 4;
+pub const NF_STOP: u32 = 5;
+pub const NF_MAX_VERDICT: u32 = 5;
+pub const NF_VERDICT_MASK: u32 = 255;
+pub const NF_VERDICT_FLAG_QUEUE_BYPASS: u32 = 32768;
+pub const NF_VERDICT_QMASK: u32 = 4294901760;
+pub const NF_VERDICT_QBITS: u32 = 16;
+pub const NF_VERDICT_BITS: u32 = 16;
+pub const NF_IP6_PRE_ROUTING: u32 = 0;
+pub const NF_IP6_LOCAL_IN: u32 = 1;
+pub const NF_IP6_FORWARD: u32 = 2;
+pub const NF_IP6_LOCAL_OUT: u32 = 3;
+pub const NF_IP6_POST_ROUTING: u32 = 4;
+pub const NF_IP6_NUMHOOKS: u32 = 5;
+pub const XT_FUNCTION_MAXNAMELEN: u32 = 30;
+pub const XT_EXTENSION_MAXNAMELEN: u32 = 29;
+pub const XT_TABLE_MAXNAMELEN: u32 = 32;
+pub const XT_CONTINUE: u32 = 4294967295;
+pub const XT_RETURN: i32 = -5;
+pub const XT_STANDARD_TARGET: &[u8; 1] = b"\0";
+pub const XT_ERROR_TARGET: &[u8; 6] = b"ERROR\0";
+pub const XT_INV_PROTO: u32 = 64;
+pub const IP6T_FUNCTION_MAXNAMELEN: u32 = 30;
+pub const IP6T_TABLE_MAXNAMELEN: u32 = 32;
+pub const IP6T_CONTINUE: u32 = 4294967295;
+pub const IP6T_RETURN: i32 = -5;
+pub const XT_TCP_INV_SRCPT: u32 = 1;
+pub const XT_TCP_INV_DSTPT: u32 = 2;
+pub const XT_TCP_INV_FLAGS: u32 = 4;
+pub const XT_TCP_INV_OPTION: u32 = 8;
+pub const XT_TCP_INV_MASK: u32 = 15;
+pub const XT_UDP_INV_SRCPT: u32 = 1;
+pub const XT_UDP_INV_DSTPT: u32 = 2;
+pub const XT_UDP_INV_MASK: u32 = 3;
+pub const IP6T_TCP_INV_SRCPT: u32 = 1;
+pub const IP6T_TCP_INV_DSTPT: u32 = 2;
+pub const IP6T_TCP_INV_FLAGS: u32 = 4;
+pub const IP6T_TCP_INV_OPTION: u32 = 8;
+pub const IP6T_TCP_INV_MASK: u32 = 15;
+pub const IP6T_UDP_INV_SRCPT: u32 = 1;
+pub const IP6T_UDP_INV_DSTPT: u32 = 2;
+pub const IP6T_UDP_INV_MASK: u32 = 3;
+pub const IP6T_STANDARD_TARGET: &[u8; 1] = b"\0";
+pub const IP6T_ERROR_TARGET: &[u8; 6] = b"ERROR\0";
+pub const IP6T_F_PROTO: u32 = 1;
+pub const IP6T_F_TOS: u32 = 2;
+pub const IP6T_F_GOTO: u32 = 4;
+pub const IP6T_F_MASK: u32 = 7;
+pub const IP6T_INV_VIA_IN: u32 = 1;
+pub const IP6T_INV_VIA_OUT: u32 = 2;
+pub const IP6T_INV_TOS: u32 = 4;
+pub const IP6T_INV_SRCIP: u32 = 8;
+pub const IP6T_INV_DSTIP: u32 = 16;
+pub const IP6T_INV_FRAG: u32 = 32;
+pub const IP6T_INV_PROTO: u32 = 64;
+pub const IP6T_INV_MASK: u32 = 127;
+pub const IP6T_BASE_CTL: u32 = 64;
+pub const IP6T_SO_SET_REPLACE: u32 = 64;
+pub const IP6T_SO_SET_ADD_COUNTERS: u32 = 65;
+pub const IP6T_SO_SET_MAX: u32 = 65;
+pub const IP6T_SO_GET_INFO: u32 = 64;
+pub const IP6T_SO_GET_ENTRIES: u32 = 65;
+pub const IP6T_SO_GET_REVISION_MATCH: u32 = 68;
+pub const IP6T_SO_GET_REVISION_TARGET: u32 = 69;
+pub const IP6T_SO_GET_MAX: u32 = 69;
+pub const IP6T_SO_ORIGINAL_DST: u32 = 80;
+pub const IP6T_ICMP_INV: u32 = 1;
+pub const NF_IP_PRE_ROUTING: u32 = 0;
+pub const NF_IP_LOCAL_IN: u32 = 1;
+pub const NF_IP_FORWARD: u32 = 2;
+pub const NF_IP_LOCAL_OUT: u32 = 3;
+pub const NF_IP_POST_ROUTING: u32 = 4;
+pub const NF_IP_NUMHOOKS: u32 = 5;
+pub const SO_ORIGINAL_DST: u32 = 80;
pub const SHUT_RD: u32 = 0;
pub const SHUT_WR: u32 = 1;
pub const SHUT_RDWR: u32 = 2;
@@ -1155,6 +1543,25 @@ pub const TCP_NLA_BYTES_NOTSENT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_NO
pub const TCP_NLA_EDT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_EDT;
pub const TCP_NLA_TTL: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TTL;
pub const TCP_NLA_REHASH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REHASH;
+pub const IF_OPER_UNKNOWN: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_UNKNOWN;
+pub const IF_OPER_NOTPRESENT: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_NOTPRESENT;
+pub const IF_OPER_DOWN: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_DOWN;
+pub const IF_OPER_LOWERLAYERDOWN: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_LOWERLAYERDOWN;
+pub const IF_OPER_TESTING: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_TESTING;
+pub const IF_OPER_DORMANT: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_DORMANT;
+pub const IF_OPER_UP: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_UP;
+pub const IF_LINK_MODE_DEFAULT: _bindgen_ty_8 = _bindgen_ty_8::IF_LINK_MODE_DEFAULT;
+pub const IF_LINK_MODE_DORMANT: _bindgen_ty_8 = _bindgen_ty_8::IF_LINK_MODE_DORMANT;
+pub const IF_LINK_MODE_TESTING: _bindgen_ty_8 = _bindgen_ty_8::IF_LINK_MODE_TESTING;
+pub const NFPROTO_UNSPEC: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_UNSPEC;
+pub const NFPROTO_INET: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_INET;
+pub const NFPROTO_IPV4: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_IPV4;
+pub const NFPROTO_ARP: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_ARP;
+pub const NFPROTO_NETDEV: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_NETDEV;
+pub const NFPROTO_BRIDGE: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_BRIDGE;
+pub const NFPROTO_IPV6: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_IPV6;
+pub const NFPROTO_DECNET: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_DECNET;
+pub const NFPROTO_NUMPROTO: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_NUMPROTO;
#[repr(u32)]
#[non_exhaustive]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
@@ -1378,6 +1785,121 @@ TCP_NLA_EDT = 25,
TCP_NLA_TTL = 26,
TCP_NLA_REHASH = 27,
}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum net_device_flags {
+IFF_UP = 1,
+IFF_BROADCAST = 2,
+IFF_DEBUG = 4,
+IFF_LOOPBACK = 8,
+IFF_POINTOPOINT = 16,
+IFF_NOTRAILERS = 32,
+IFF_RUNNING = 64,
+IFF_NOARP = 128,
+IFF_PROMISC = 256,
+IFF_ALLMULTI = 512,
+IFF_MASTER = 1024,
+IFF_SLAVE = 2048,
+IFF_MULTICAST = 4096,
+IFF_PORTSEL = 8192,
+IFF_AUTOMEDIA = 16384,
+IFF_DYNAMIC = 32768,
+IFF_LOWER_UP = 65536,
+IFF_DORMANT = 131072,
+IFF_ECHO = 262144,
+}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum _bindgen_ty_7 {
+IF_OPER_UNKNOWN = 0,
+IF_OPER_NOTPRESENT = 1,
+IF_OPER_DOWN = 2,
+IF_OPER_LOWERLAYERDOWN = 3,
+IF_OPER_TESTING = 4,
+IF_OPER_DORMANT = 5,
+IF_OPER_UP = 6,
+}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum _bindgen_ty_8 {
+IF_LINK_MODE_DEFAULT = 0,
+IF_LINK_MODE_DORMANT = 1,
+IF_LINK_MODE_TESTING = 2,
+}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum nf_inet_hooks {
+NF_INET_PRE_ROUTING = 0,
+NF_INET_LOCAL_IN = 1,
+NF_INET_FORWARD = 2,
+NF_INET_LOCAL_OUT = 3,
+NF_INET_POST_ROUTING = 4,
+NF_INET_NUMHOOKS = 5,
+}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum nf_dev_hooks {
+NF_NETDEV_INGRESS = 0,
+NF_NETDEV_EGRESS = 1,
+NF_NETDEV_NUMHOOKS = 2,
+}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum _bindgen_ty_9 {
+NFPROTO_UNSPEC = 0,
+NFPROTO_INET = 1,
+NFPROTO_IPV4 = 2,
+NFPROTO_ARP = 3,
+NFPROTO_NETDEV = 5,
+NFPROTO_BRIDGE = 7,
+NFPROTO_IPV6 = 10,
+NFPROTO_DECNET = 12,
+NFPROTO_NUMPROTO = 13,
+}
+#[repr(i32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum nf_ip6_hook_priorities {
+NF_IP6_PRI_FIRST = -2147483648,
+NF_IP6_PRI_RAW_BEFORE_DEFRAG = -450,
+NF_IP6_PRI_CONNTRACK_DEFRAG = -400,
+NF_IP6_PRI_RAW = -300,
+NF_IP6_PRI_SELINUX_FIRST = -225,
+NF_IP6_PRI_CONNTRACK = -200,
+NF_IP6_PRI_MANGLE = -150,
+NF_IP6_PRI_NAT_DST = -100,
+NF_IP6_PRI_FILTER = 0,
+NF_IP6_PRI_SECURITY = 50,
+NF_IP6_PRI_NAT_SRC = 100,
+NF_IP6_PRI_SELINUX_LAST = 225,
+NF_IP6_PRI_CONNTRACK_HELPER = 300,
+NF_IP6_PRI_LAST = 2147483647,
+}
+#[repr(i32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum nf_ip_hook_priorities {
+NF_IP_PRI_FIRST = -2147483648,
+NF_IP_PRI_RAW_BEFORE_DEFRAG = -450,
+NF_IP_PRI_CONNTRACK_DEFRAG = -400,
+NF_IP_PRI_RAW = -300,
+NF_IP_PRI_SELINUX_FIRST = -225,
+NF_IP_PRI_CONNTRACK = -200,
+NF_IP_PRI_MANGLE = -150,
+NF_IP_PRI_NAT_DST = -100,
+NF_IP_PRI_FILTER = 0,
+NF_IP_PRI_SECURITY = 50,
+NF_IP_PRI_NAT_SRC = 100,
+NF_IP_PRI_SELINUX_LAST = 225,
+NF_IP_PRI_CONNTRACK_HELPER = 300,
+NF_IP_PRI_CONNTRACK_CONFIRM = 2147483647,
+}
#[repr(C)]
#[derive(Copy, Clone)]
pub union __kernel_sockaddr_storage__bindgen_ty_1 {
@@ -1409,6 +1931,69 @@ pub union tcp_word_hdr {
pub hdr: tcphdr,
pub words: [__be32; 5usize],
}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union if_settings__bindgen_ty_1 {
+pub raw_hdlc: *mut raw_hdlc_proto,
+pub cisco: *mut cisco_proto,
+pub fr: *mut fr_proto,
+pub fr_pvc: *mut fr_proto_pvc,
+pub fr_pvc_info: *mut fr_proto_pvc_info,
+pub x25: *mut x25_hdlc_proto,
+pub sync: *mut sync_serial_settings,
+pub te1: *mut te1_settings,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union ifreq__bindgen_ty_1 {
+pub ifrn_name: [crate::ctypes::c_char; 16usize],
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union ifreq__bindgen_ty_2 {
+pub ifru_addr: sockaddr,
+pub ifru_dstaddr: sockaddr,
+pub ifru_broadaddr: sockaddr,
+pub ifru_netmask: sockaddr,
+pub ifru_hwaddr: sockaddr,
+pub ifru_flags: crate::ctypes::c_short,
+pub ifru_ivalue: crate::ctypes::c_int,
+pub ifru_mtu: crate::ctypes::c_int,
+pub ifru_map: ifmap,
+pub ifru_slave: [crate::ctypes::c_char; 16usize],
+pub ifru_newname: [crate::ctypes::c_char; 16usize],
+pub ifru_data: *mut crate::ctypes::c_void,
+pub ifru_settings: if_settings,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union ifconf__bindgen_ty_1 {
+pub ifcu_buf: *mut crate::ctypes::c_char,
+pub ifcu_req: *mut ifreq,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union nf_inet_addr {
+pub all: [__u32; 4usize],
+pub ip: __be32,
+pub ip6: [__be32; 4usize],
+pub in_: in_addr,
+pub in6: in6_addr,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union xt_entry_match__bindgen_ty_1 {
+pub user: xt_entry_match__bindgen_ty_1__bindgen_ty_1,
+pub kernel: xt_entry_match__bindgen_ty_1__bindgen_ty_2,
+pub match_size: __u16,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union xt_entry_target__bindgen_ty_1 {
+pub user: xt_entry_target__bindgen_ty_1__bindgen_ty_1,
+pub kernel: xt_entry_target__bindgen_ty_1__bindgen_ty_2,
+pub target_size: __u16,
+}
impl<Storage> __BindgenBitfieldUnit<Storage> {
#[inline]
pub const fn new(storage: Storage) -> Self {
@@ -1834,3 +2419,9 @@ tcpi_fastopen_client_fail as u64
__bindgen_bitfield_unit
}
}
+impl nf_inet_hooks {
+pub const NF_INET_INGRESS: nf_inet_hooks = nf_inet_hooks::NF_INET_NUMHOOKS;
+}
+impl nf_ip_hook_priorities {
+pub const NF_IP_PRI_LAST: nf_ip_hook_priorities = nf_ip_hook_priorities::NF_IP_PRI_CONNTRACK_CONFIRM;
+}
diff --git a/vendor/linux-raw-sys/src/riscv64/general.rs b/vendor/linux-raw-sys/src/riscv64/general.rs
index 787596720..ca01dc802 100644
--- a/vendor/linux-raw-sys/src/riscv64/general.rs
+++ b/vendor/linux-raw-sys/src/riscv64/general.rs
@@ -1574,6 +1574,19 @@ pub const POLLRDHUP: u32 = 8192;
pub const GRND_NONBLOCK: u32 = 1;
pub const GRND_RANDOM: u32 = 2;
pub const GRND_INSECURE: u32 = 4;
+pub const LINUX_REBOOT_MAGIC1: u32 = 4276215469;
+pub const LINUX_REBOOT_MAGIC2: u32 = 672274793;
+pub const LINUX_REBOOT_MAGIC2A: u32 = 85072278;
+pub const LINUX_REBOOT_MAGIC2B: u32 = 369367448;
+pub const LINUX_REBOOT_MAGIC2C: u32 = 537993216;
+pub const LINUX_REBOOT_CMD_RESTART: u32 = 19088743;
+pub const LINUX_REBOOT_CMD_HALT: u32 = 3454992675;
+pub const LINUX_REBOOT_CMD_CAD_ON: u32 = 2309737967;
+pub const LINUX_REBOOT_CMD_CAD_OFF: u32 = 0;
+pub const LINUX_REBOOT_CMD_POWER_OFF: u32 = 1126301404;
+pub const LINUX_REBOOT_CMD_RESTART2: u32 = 2712847316;
+pub const LINUX_REBOOT_CMD_SW_SUSPEND: u32 = 3489725666;
+pub const LINUX_REBOOT_CMD_KEXEC: u32 = 1163412803;
pub const ITIMER_REAL: u32 = 0;
pub const ITIMER_VIRTUAL: u32 = 1;
pub const ITIMER_PROF: u32 = 2;
diff --git a/vendor/linux-raw-sys/src/riscv64/net.rs b/vendor/linux-raw-sys/src/riscv64/net.rs
index 77630ebf2..2e3eeacad 100644
--- a/vendor/linux-raw-sys/src/riscv64/net.rs
+++ b/vendor/linux-raw-sys/src/riscv64/net.rs
@@ -476,6 +476,255 @@ pub __storage: __kernel_sockaddr_storage,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
+pub struct sync_serial_settings {
+pub clock_rate: crate::ctypes::c_uint,
+pub clock_type: crate::ctypes::c_uint,
+pub loopback: crate::ctypes::c_ushort,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct te1_settings {
+pub clock_rate: crate::ctypes::c_uint,
+pub clock_type: crate::ctypes::c_uint,
+pub loopback: crate::ctypes::c_ushort,
+pub slot_map: crate::ctypes::c_uint,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct raw_hdlc_proto {
+pub encoding: crate::ctypes::c_ushort,
+pub parity: crate::ctypes::c_ushort,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct fr_proto {
+pub t391: crate::ctypes::c_uint,
+pub t392: crate::ctypes::c_uint,
+pub n391: crate::ctypes::c_uint,
+pub n392: crate::ctypes::c_uint,
+pub n393: crate::ctypes::c_uint,
+pub lmi: crate::ctypes::c_ushort,
+pub dce: crate::ctypes::c_ushort,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct fr_proto_pvc {
+pub dlci: crate::ctypes::c_uint,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct fr_proto_pvc_info {
+pub dlci: crate::ctypes::c_uint,
+pub master: [crate::ctypes::c_char; 16usize],
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct cisco_proto {
+pub interval: crate::ctypes::c_uint,
+pub timeout: crate::ctypes::c_uint,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct x25_hdlc_proto {
+pub dce: crate::ctypes::c_ushort,
+pub modulo: crate::ctypes::c_uint,
+pub window: crate::ctypes::c_uint,
+pub t1: crate::ctypes::c_uint,
+pub t2: crate::ctypes::c_uint,
+pub n2: crate::ctypes::c_uint,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct ifmap {
+pub mem_start: crate::ctypes::c_ulong,
+pub mem_end: crate::ctypes::c_ulong,
+pub base_addr: crate::ctypes::c_ushort,
+pub irq: crate::ctypes::c_uchar,
+pub dma: crate::ctypes::c_uchar,
+pub port: crate::ctypes::c_uchar,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub struct if_settings {
+pub type_: crate::ctypes::c_uint,
+pub size: crate::ctypes::c_uint,
+pub ifs_ifsu: if_settings__bindgen_ty_1,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub struct ifreq {
+pub ifr_ifrn: ifreq__bindgen_ty_1,
+pub ifr_ifru: ifreq__bindgen_ty_2,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub struct ifconf {
+pub ifc_len: crate::ctypes::c_int,
+pub ifc_ifcu: ifconf__bindgen_ty_1,
+}
+#[repr(C)]
+pub struct xt_entry_match {
+pub u: xt_entry_match__bindgen_ty_1,
+pub data: __IncompleteArrayField<crate::ctypes::c_uchar>,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_entry_match__bindgen_ty_1__bindgen_ty_1 {
+pub match_size: __u16,
+pub name: [crate::ctypes::c_char; 29usize],
+pub revision: __u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_entry_match__bindgen_ty_1__bindgen_ty_2 {
+pub match_size: __u16,
+pub match_: *mut xt_match,
+}
+#[repr(C)]
+pub struct xt_entry_target {
+pub u: xt_entry_target__bindgen_ty_1,
+pub data: __IncompleteArrayField<crate::ctypes::c_uchar>,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_entry_target__bindgen_ty_1__bindgen_ty_1 {
+pub target_size: __u16,
+pub name: [crate::ctypes::c_char; 29usize],
+pub revision: __u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_entry_target__bindgen_ty_1__bindgen_ty_2 {
+pub target_size: __u16,
+pub target: *mut xt_target,
+}
+#[repr(C)]
+pub struct xt_standard_target {
+pub target: xt_entry_target,
+pub verdict: crate::ctypes::c_int,
+}
+#[repr(C)]
+pub struct xt_error_target {
+pub target: xt_entry_target,
+pub errorname: [crate::ctypes::c_char; 30usize],
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_get_revision {
+pub name: [crate::ctypes::c_char; 29usize],
+pub revision: __u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct _xt_align {
+pub u8_: __u8,
+pub u16_: __u16,
+pub u32_: __u32,
+pub u64_: __u64,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_counters {
+pub pcnt: __u64,
+pub bcnt: __u64,
+}
+#[repr(C)]
+#[derive(Debug)]
+pub struct xt_counters_info {
+pub name: [crate::ctypes::c_char; 32usize],
+pub num_counters: crate::ctypes::c_uint,
+pub counters: __IncompleteArrayField<xt_counters>,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_tcp {
+pub spts: [__u16; 2usize],
+pub dpts: [__u16; 2usize],
+pub option: __u8,
+pub flg_mask: __u8,
+pub flg_cmp: __u8,
+pub invflags: __u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_udp {
+pub spts: [__u16; 2usize],
+pub dpts: [__u16; 2usize],
+pub invflags: __u8,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub struct ip6t_ip6 {
+pub src: in6_addr,
+pub dst: in6_addr,
+pub smsk: in6_addr,
+pub dmsk: in6_addr,
+pub iniface: [crate::ctypes::c_char; 16usize],
+pub outiface: [crate::ctypes::c_char; 16usize],
+pub iniface_mask: [crate::ctypes::c_uchar; 16usize],
+pub outiface_mask: [crate::ctypes::c_uchar; 16usize],
+pub proto: __u16,
+pub tos: __u8,
+pub flags: __u8,
+pub invflags: __u8,
+}
+#[repr(C)]
+pub struct ip6t_entry {
+pub ipv6: ip6t_ip6,
+pub nfcache: crate::ctypes::c_uint,
+pub target_offset: __u16,
+pub next_offset: __u16,
+pub comefrom: crate::ctypes::c_uint,
+pub counters: xt_counters,
+pub elems: __IncompleteArrayField<crate::ctypes::c_uchar>,
+}
+#[repr(C)]
+pub struct ip6t_standard {
+pub entry: ip6t_entry,
+pub target: xt_standard_target,
+}
+#[repr(C)]
+pub struct ip6t_error {
+pub entry: ip6t_entry,
+pub target: xt_error_target,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct ip6t_icmp {
+pub type_: __u8,
+pub code: [__u8; 2usize],
+pub invflags: __u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct ip6t_getinfo {
+pub name: [crate::ctypes::c_char; 32usize],
+pub valid_hooks: crate::ctypes::c_uint,
+pub hook_entry: [crate::ctypes::c_uint; 5usize],
+pub underflow: [crate::ctypes::c_uint; 5usize],
+pub num_entries: crate::ctypes::c_uint,
+pub size: crate::ctypes::c_uint,
+}
+#[repr(C)]
+pub struct ip6t_replace {
+pub name: [crate::ctypes::c_char; 32usize],
+pub valid_hooks: crate::ctypes::c_uint,
+pub num_entries: crate::ctypes::c_uint,
+pub size: crate::ctypes::c_uint,
+pub hook_entry: [crate::ctypes::c_uint; 5usize],
+pub underflow: [crate::ctypes::c_uint; 5usize],
+pub num_counters: crate::ctypes::c_uint,
+pub counters: *mut xt_counters,
+pub entries: __IncompleteArrayField<ip6t_entry>,
+}
+#[repr(C)]
+pub struct ip6t_get_entries {
+pub name: [crate::ctypes::c_char; 32usize],
+pub size: crate::ctypes::c_uint,
+pub entrytable: __IncompleteArrayField<ip6t_entry>,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
pub struct linger {
pub l_onoff: crate::ctypes::c_int,
pub l_linger: crate::ctypes::c_int,
@@ -513,6 +762,16 @@ pub msg_len: crate::ctypes::c_uint,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
+pub struct xt_match {
+pub _address: u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_target {
+pub _address: u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
pub struct iovec {
pub _address: u8,
}
@@ -935,6 +1194,135 @@ pub const TCP_MD5SIG_FLAG_PREFIX: u32 = 1;
pub const TCP_MD5SIG_FLAG_IFINDEX: u32 = 2;
pub const TCP_RECEIVE_ZEROCOPY_FLAG_TLB_CLEAN_HINT: u32 = 1;
pub const UNIX_PATH_MAX: u32 = 108;
+pub const IFNAMSIZ: u32 = 16;
+pub const IFALIASZ: u32 = 256;
+pub const ALTIFNAMSIZ: u32 = 128;
+pub const GENERIC_HDLC_VERSION: u32 = 4;
+pub const CLOCK_DEFAULT: u32 = 0;
+pub const CLOCK_EXT: u32 = 1;
+pub const CLOCK_INT: u32 = 2;
+pub const CLOCK_TXINT: u32 = 3;
+pub const CLOCK_TXFROMRX: u32 = 4;
+pub const ENCODING_DEFAULT: u32 = 0;
+pub const ENCODING_NRZ: u32 = 1;
+pub const ENCODING_NRZI: u32 = 2;
+pub const ENCODING_FM_MARK: u32 = 3;
+pub const ENCODING_FM_SPACE: u32 = 4;
+pub const ENCODING_MANCHESTER: u32 = 5;
+pub const PARITY_DEFAULT: u32 = 0;
+pub const PARITY_NONE: u32 = 1;
+pub const PARITY_CRC16_PR0: u32 = 2;
+pub const PARITY_CRC16_PR1: u32 = 3;
+pub const PARITY_CRC16_PR0_CCITT: u32 = 4;
+pub const PARITY_CRC16_PR1_CCITT: u32 = 5;
+pub const PARITY_CRC32_PR0_CCITT: u32 = 6;
+pub const PARITY_CRC32_PR1_CCITT: u32 = 7;
+pub const LMI_DEFAULT: u32 = 0;
+pub const LMI_NONE: u32 = 1;
+pub const LMI_ANSI: u32 = 2;
+pub const LMI_CCITT: u32 = 3;
+pub const LMI_CISCO: u32 = 4;
+pub const IF_GET_IFACE: u32 = 1;
+pub const IF_GET_PROTO: u32 = 2;
+pub const IF_IFACE_V35: u32 = 4096;
+pub const IF_IFACE_V24: u32 = 4097;
+pub const IF_IFACE_X21: u32 = 4098;
+pub const IF_IFACE_T1: u32 = 4099;
+pub const IF_IFACE_E1: u32 = 4100;
+pub const IF_IFACE_SYNC_SERIAL: u32 = 4101;
+pub const IF_IFACE_X21D: u32 = 4102;
+pub const IF_PROTO_HDLC: u32 = 8192;
+pub const IF_PROTO_PPP: u32 = 8193;
+pub const IF_PROTO_CISCO: u32 = 8194;
+pub const IF_PROTO_FR: u32 = 8195;
+pub const IF_PROTO_FR_ADD_PVC: u32 = 8196;
+pub const IF_PROTO_FR_DEL_PVC: u32 = 8197;
+pub const IF_PROTO_X25: u32 = 8198;
+pub const IF_PROTO_HDLC_ETH: u32 = 8199;
+pub const IF_PROTO_FR_ADD_ETH_PVC: u32 = 8200;
+pub const IF_PROTO_FR_DEL_ETH_PVC: u32 = 8201;
+pub const IF_PROTO_FR_PVC: u32 = 8202;
+pub const IF_PROTO_FR_ETH_PVC: u32 = 8203;
+pub const IF_PROTO_RAW: u32 = 8204;
+pub const IFHWADDRLEN: u32 = 6;
+pub const NF_DROP: u32 = 0;
+pub const NF_ACCEPT: u32 = 1;
+pub const NF_STOLEN: u32 = 2;
+pub const NF_QUEUE: u32 = 3;
+pub const NF_REPEAT: u32 = 4;
+pub const NF_STOP: u32 = 5;
+pub const NF_MAX_VERDICT: u32 = 5;
+pub const NF_VERDICT_MASK: u32 = 255;
+pub const NF_VERDICT_FLAG_QUEUE_BYPASS: u32 = 32768;
+pub const NF_VERDICT_QMASK: u32 = 4294901760;
+pub const NF_VERDICT_QBITS: u32 = 16;
+pub const NF_VERDICT_BITS: u32 = 16;
+pub const NF_IP6_PRE_ROUTING: u32 = 0;
+pub const NF_IP6_LOCAL_IN: u32 = 1;
+pub const NF_IP6_FORWARD: u32 = 2;
+pub const NF_IP6_LOCAL_OUT: u32 = 3;
+pub const NF_IP6_POST_ROUTING: u32 = 4;
+pub const NF_IP6_NUMHOOKS: u32 = 5;
+pub const XT_FUNCTION_MAXNAMELEN: u32 = 30;
+pub const XT_EXTENSION_MAXNAMELEN: u32 = 29;
+pub const XT_TABLE_MAXNAMELEN: u32 = 32;
+pub const XT_CONTINUE: u32 = 4294967295;
+pub const XT_RETURN: i32 = -5;
+pub const XT_STANDARD_TARGET: &[u8; 1] = b"\0";
+pub const XT_ERROR_TARGET: &[u8; 6] = b"ERROR\0";
+pub const XT_INV_PROTO: u32 = 64;
+pub const IP6T_FUNCTION_MAXNAMELEN: u32 = 30;
+pub const IP6T_TABLE_MAXNAMELEN: u32 = 32;
+pub const IP6T_CONTINUE: u32 = 4294967295;
+pub const IP6T_RETURN: i32 = -5;
+pub const XT_TCP_INV_SRCPT: u32 = 1;
+pub const XT_TCP_INV_DSTPT: u32 = 2;
+pub const XT_TCP_INV_FLAGS: u32 = 4;
+pub const XT_TCP_INV_OPTION: u32 = 8;
+pub const XT_TCP_INV_MASK: u32 = 15;
+pub const XT_UDP_INV_SRCPT: u32 = 1;
+pub const XT_UDP_INV_DSTPT: u32 = 2;
+pub const XT_UDP_INV_MASK: u32 = 3;
+pub const IP6T_TCP_INV_SRCPT: u32 = 1;
+pub const IP6T_TCP_INV_DSTPT: u32 = 2;
+pub const IP6T_TCP_INV_FLAGS: u32 = 4;
+pub const IP6T_TCP_INV_OPTION: u32 = 8;
+pub const IP6T_TCP_INV_MASK: u32 = 15;
+pub const IP6T_UDP_INV_SRCPT: u32 = 1;
+pub const IP6T_UDP_INV_DSTPT: u32 = 2;
+pub const IP6T_UDP_INV_MASK: u32 = 3;
+pub const IP6T_STANDARD_TARGET: &[u8; 1] = b"\0";
+pub const IP6T_ERROR_TARGET: &[u8; 6] = b"ERROR\0";
+pub const IP6T_F_PROTO: u32 = 1;
+pub const IP6T_F_TOS: u32 = 2;
+pub const IP6T_F_GOTO: u32 = 4;
+pub const IP6T_F_MASK: u32 = 7;
+pub const IP6T_INV_VIA_IN: u32 = 1;
+pub const IP6T_INV_VIA_OUT: u32 = 2;
+pub const IP6T_INV_TOS: u32 = 4;
+pub const IP6T_INV_SRCIP: u32 = 8;
+pub const IP6T_INV_DSTIP: u32 = 16;
+pub const IP6T_INV_FRAG: u32 = 32;
+pub const IP6T_INV_PROTO: u32 = 64;
+pub const IP6T_INV_MASK: u32 = 127;
+pub const IP6T_BASE_CTL: u32 = 64;
+pub const IP6T_SO_SET_REPLACE: u32 = 64;
+pub const IP6T_SO_SET_ADD_COUNTERS: u32 = 65;
+pub const IP6T_SO_SET_MAX: u32 = 65;
+pub const IP6T_SO_GET_INFO: u32 = 64;
+pub const IP6T_SO_GET_ENTRIES: u32 = 65;
+pub const IP6T_SO_GET_REVISION_MATCH: u32 = 68;
+pub const IP6T_SO_GET_REVISION_TARGET: u32 = 69;
+pub const IP6T_SO_GET_MAX: u32 = 69;
+pub const IP6T_SO_ORIGINAL_DST: u32 = 80;
+pub const IP6T_ICMP_INV: u32 = 1;
+pub const NF_IP_PRE_ROUTING: u32 = 0;
+pub const NF_IP_LOCAL_IN: u32 = 1;
+pub const NF_IP_FORWARD: u32 = 2;
+pub const NF_IP_LOCAL_OUT: u32 = 3;
+pub const NF_IP_POST_ROUTING: u32 = 4;
+pub const NF_IP_NUMHOOKS: u32 = 5;
+pub const SO_ORIGINAL_DST: u32 = 80;
pub const SHUT_RD: u32 = 0;
pub const SHUT_WR: u32 = 1;
pub const SHUT_RDWR: u32 = 2;
@@ -1163,6 +1551,25 @@ pub const TCP_NLA_BYTES_NOTSENT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_NO
pub const TCP_NLA_EDT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_EDT;
pub const TCP_NLA_TTL: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TTL;
pub const TCP_NLA_REHASH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REHASH;
+pub const IF_OPER_UNKNOWN: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_UNKNOWN;
+pub const IF_OPER_NOTPRESENT: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_NOTPRESENT;
+pub const IF_OPER_DOWN: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_DOWN;
+pub const IF_OPER_LOWERLAYERDOWN: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_LOWERLAYERDOWN;
+pub const IF_OPER_TESTING: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_TESTING;
+pub const IF_OPER_DORMANT: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_DORMANT;
+pub const IF_OPER_UP: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_UP;
+pub const IF_LINK_MODE_DEFAULT: _bindgen_ty_8 = _bindgen_ty_8::IF_LINK_MODE_DEFAULT;
+pub const IF_LINK_MODE_DORMANT: _bindgen_ty_8 = _bindgen_ty_8::IF_LINK_MODE_DORMANT;
+pub const IF_LINK_MODE_TESTING: _bindgen_ty_8 = _bindgen_ty_8::IF_LINK_MODE_TESTING;
+pub const NFPROTO_UNSPEC: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_UNSPEC;
+pub const NFPROTO_INET: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_INET;
+pub const NFPROTO_IPV4: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_IPV4;
+pub const NFPROTO_ARP: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_ARP;
+pub const NFPROTO_NETDEV: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_NETDEV;
+pub const NFPROTO_BRIDGE: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_BRIDGE;
+pub const NFPROTO_IPV6: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_IPV6;
+pub const NFPROTO_DECNET: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_DECNET;
+pub const NFPROTO_NUMPROTO: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_NUMPROTO;
#[repr(u32)]
#[non_exhaustive]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
@@ -1386,6 +1793,121 @@ TCP_NLA_EDT = 25,
TCP_NLA_TTL = 26,
TCP_NLA_REHASH = 27,
}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum net_device_flags {
+IFF_UP = 1,
+IFF_BROADCAST = 2,
+IFF_DEBUG = 4,
+IFF_LOOPBACK = 8,
+IFF_POINTOPOINT = 16,
+IFF_NOTRAILERS = 32,
+IFF_RUNNING = 64,
+IFF_NOARP = 128,
+IFF_PROMISC = 256,
+IFF_ALLMULTI = 512,
+IFF_MASTER = 1024,
+IFF_SLAVE = 2048,
+IFF_MULTICAST = 4096,
+IFF_PORTSEL = 8192,
+IFF_AUTOMEDIA = 16384,
+IFF_DYNAMIC = 32768,
+IFF_LOWER_UP = 65536,
+IFF_DORMANT = 131072,
+IFF_ECHO = 262144,
+}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum _bindgen_ty_7 {
+IF_OPER_UNKNOWN = 0,
+IF_OPER_NOTPRESENT = 1,
+IF_OPER_DOWN = 2,
+IF_OPER_LOWERLAYERDOWN = 3,
+IF_OPER_TESTING = 4,
+IF_OPER_DORMANT = 5,
+IF_OPER_UP = 6,
+}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum _bindgen_ty_8 {
+IF_LINK_MODE_DEFAULT = 0,
+IF_LINK_MODE_DORMANT = 1,
+IF_LINK_MODE_TESTING = 2,
+}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum nf_inet_hooks {
+NF_INET_PRE_ROUTING = 0,
+NF_INET_LOCAL_IN = 1,
+NF_INET_FORWARD = 2,
+NF_INET_LOCAL_OUT = 3,
+NF_INET_POST_ROUTING = 4,
+NF_INET_NUMHOOKS = 5,
+}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum nf_dev_hooks {
+NF_NETDEV_INGRESS = 0,
+NF_NETDEV_EGRESS = 1,
+NF_NETDEV_NUMHOOKS = 2,
+}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum _bindgen_ty_9 {
+NFPROTO_UNSPEC = 0,
+NFPROTO_INET = 1,
+NFPROTO_IPV4 = 2,
+NFPROTO_ARP = 3,
+NFPROTO_NETDEV = 5,
+NFPROTO_BRIDGE = 7,
+NFPROTO_IPV6 = 10,
+NFPROTO_DECNET = 12,
+NFPROTO_NUMPROTO = 13,
+}
+#[repr(i32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum nf_ip6_hook_priorities {
+NF_IP6_PRI_FIRST = -2147483648,
+NF_IP6_PRI_RAW_BEFORE_DEFRAG = -450,
+NF_IP6_PRI_CONNTRACK_DEFRAG = -400,
+NF_IP6_PRI_RAW = -300,
+NF_IP6_PRI_SELINUX_FIRST = -225,
+NF_IP6_PRI_CONNTRACK = -200,
+NF_IP6_PRI_MANGLE = -150,
+NF_IP6_PRI_NAT_DST = -100,
+NF_IP6_PRI_FILTER = 0,
+NF_IP6_PRI_SECURITY = 50,
+NF_IP6_PRI_NAT_SRC = 100,
+NF_IP6_PRI_SELINUX_LAST = 225,
+NF_IP6_PRI_CONNTRACK_HELPER = 300,
+NF_IP6_PRI_LAST = 2147483647,
+}
+#[repr(i32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum nf_ip_hook_priorities {
+NF_IP_PRI_FIRST = -2147483648,
+NF_IP_PRI_RAW_BEFORE_DEFRAG = -450,
+NF_IP_PRI_CONNTRACK_DEFRAG = -400,
+NF_IP_PRI_RAW = -300,
+NF_IP_PRI_SELINUX_FIRST = -225,
+NF_IP_PRI_CONNTRACK = -200,
+NF_IP_PRI_MANGLE = -150,
+NF_IP_PRI_NAT_DST = -100,
+NF_IP_PRI_FILTER = 0,
+NF_IP_PRI_SECURITY = 50,
+NF_IP_PRI_NAT_SRC = 100,
+NF_IP_PRI_SELINUX_LAST = 225,
+NF_IP_PRI_CONNTRACK_HELPER = 300,
+NF_IP_PRI_CONNTRACK_CONFIRM = 2147483647,
+}
#[repr(C)]
#[derive(Copy, Clone)]
pub union __kernel_sockaddr_storage__bindgen_ty_1 {
@@ -1417,6 +1939,69 @@ pub union tcp_word_hdr {
pub hdr: tcphdr,
pub words: [__be32; 5usize],
}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union if_settings__bindgen_ty_1 {
+pub raw_hdlc: *mut raw_hdlc_proto,
+pub cisco: *mut cisco_proto,
+pub fr: *mut fr_proto,
+pub fr_pvc: *mut fr_proto_pvc,
+pub fr_pvc_info: *mut fr_proto_pvc_info,
+pub x25: *mut x25_hdlc_proto,
+pub sync: *mut sync_serial_settings,
+pub te1: *mut te1_settings,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union ifreq__bindgen_ty_1 {
+pub ifrn_name: [crate::ctypes::c_char; 16usize],
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union ifreq__bindgen_ty_2 {
+pub ifru_addr: sockaddr,
+pub ifru_dstaddr: sockaddr,
+pub ifru_broadaddr: sockaddr,
+pub ifru_netmask: sockaddr,
+pub ifru_hwaddr: sockaddr,
+pub ifru_flags: crate::ctypes::c_short,
+pub ifru_ivalue: crate::ctypes::c_int,
+pub ifru_mtu: crate::ctypes::c_int,
+pub ifru_map: ifmap,
+pub ifru_slave: [crate::ctypes::c_char; 16usize],
+pub ifru_newname: [crate::ctypes::c_char; 16usize],
+pub ifru_data: *mut crate::ctypes::c_void,
+pub ifru_settings: if_settings,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union ifconf__bindgen_ty_1 {
+pub ifcu_buf: *mut crate::ctypes::c_char,
+pub ifcu_req: *mut ifreq,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union nf_inet_addr {
+pub all: [__u32; 4usize],
+pub ip: __be32,
+pub ip6: [__be32; 4usize],
+pub in_: in_addr,
+pub in6: in6_addr,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union xt_entry_match__bindgen_ty_1 {
+pub user: xt_entry_match__bindgen_ty_1__bindgen_ty_1,
+pub kernel: xt_entry_match__bindgen_ty_1__bindgen_ty_2,
+pub match_size: __u16,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union xt_entry_target__bindgen_ty_1 {
+pub user: xt_entry_target__bindgen_ty_1__bindgen_ty_1,
+pub kernel: xt_entry_target__bindgen_ty_1__bindgen_ty_2,
+pub target_size: __u16,
+}
impl<Storage> __BindgenBitfieldUnit<Storage> {
#[inline]
pub const fn new(storage: Storage) -> Self {
@@ -1842,3 +2427,9 @@ tcpi_fastopen_client_fail as u64
__bindgen_bitfield_unit
}
}
+impl nf_inet_hooks {
+pub const NF_INET_INGRESS: nf_inet_hooks = nf_inet_hooks::NF_INET_NUMHOOKS;
+}
+impl nf_ip_hook_priorities {
+pub const NF_IP_PRI_LAST: nf_ip_hook_priorities = nf_ip_hook_priorities::NF_IP_PRI_CONNTRACK_CONFIRM;
+}
diff --git a/vendor/linux-raw-sys/src/s390x/general.rs b/vendor/linux-raw-sys/src/s390x/general.rs
index c36ca8fd2..b24f79221 100644
--- a/vendor/linux-raw-sys/src/s390x/general.rs
+++ b/vendor/linux-raw-sys/src/s390x/general.rs
@@ -1565,6 +1565,19 @@ pub const POLLRDHUP: u32 = 8192;
pub const GRND_NONBLOCK: u32 = 1;
pub const GRND_RANDOM: u32 = 2;
pub const GRND_INSECURE: u32 = 4;
+pub const LINUX_REBOOT_MAGIC1: u32 = 4276215469;
+pub const LINUX_REBOOT_MAGIC2: u32 = 672274793;
+pub const LINUX_REBOOT_MAGIC2A: u32 = 85072278;
+pub const LINUX_REBOOT_MAGIC2B: u32 = 369367448;
+pub const LINUX_REBOOT_MAGIC2C: u32 = 537993216;
+pub const LINUX_REBOOT_CMD_RESTART: u32 = 19088743;
+pub const LINUX_REBOOT_CMD_HALT: u32 = 3454992675;
+pub const LINUX_REBOOT_CMD_CAD_ON: u32 = 2309737967;
+pub const LINUX_REBOOT_CMD_CAD_OFF: u32 = 0;
+pub const LINUX_REBOOT_CMD_POWER_OFF: u32 = 1126301404;
+pub const LINUX_REBOOT_CMD_RESTART2: u32 = 2712847316;
+pub const LINUX_REBOOT_CMD_SW_SUSPEND: u32 = 3489725666;
+pub const LINUX_REBOOT_CMD_KEXEC: u32 = 1163412803;
pub const ITIMER_REAL: u32 = 0;
pub const ITIMER_VIRTUAL: u32 = 1;
pub const ITIMER_PROF: u32 = 2;
diff --git a/vendor/linux-raw-sys/src/s390x/net.rs b/vendor/linux-raw-sys/src/s390x/net.rs
index 035c9d0c3..ec6427f79 100644
--- a/vendor/linux-raw-sys/src/s390x/net.rs
+++ b/vendor/linux-raw-sys/src/s390x/net.rs
@@ -490,6 +490,255 @@ pub __storage: __kernel_sockaddr_storage,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
+pub struct sync_serial_settings {
+pub clock_rate: crate::ctypes::c_uint,
+pub clock_type: crate::ctypes::c_uint,
+pub loopback: crate::ctypes::c_ushort,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct te1_settings {
+pub clock_rate: crate::ctypes::c_uint,
+pub clock_type: crate::ctypes::c_uint,
+pub loopback: crate::ctypes::c_ushort,
+pub slot_map: crate::ctypes::c_uint,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct raw_hdlc_proto {
+pub encoding: crate::ctypes::c_ushort,
+pub parity: crate::ctypes::c_ushort,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct fr_proto {
+pub t391: crate::ctypes::c_uint,
+pub t392: crate::ctypes::c_uint,
+pub n391: crate::ctypes::c_uint,
+pub n392: crate::ctypes::c_uint,
+pub n393: crate::ctypes::c_uint,
+pub lmi: crate::ctypes::c_ushort,
+pub dce: crate::ctypes::c_ushort,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct fr_proto_pvc {
+pub dlci: crate::ctypes::c_uint,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct fr_proto_pvc_info {
+pub dlci: crate::ctypes::c_uint,
+pub master: [crate::ctypes::c_char; 16usize],
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct cisco_proto {
+pub interval: crate::ctypes::c_uint,
+pub timeout: crate::ctypes::c_uint,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct x25_hdlc_proto {
+pub dce: crate::ctypes::c_ushort,
+pub modulo: crate::ctypes::c_uint,
+pub window: crate::ctypes::c_uint,
+pub t1: crate::ctypes::c_uint,
+pub t2: crate::ctypes::c_uint,
+pub n2: crate::ctypes::c_uint,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct ifmap {
+pub mem_start: crate::ctypes::c_ulong,
+pub mem_end: crate::ctypes::c_ulong,
+pub base_addr: crate::ctypes::c_ushort,
+pub irq: crate::ctypes::c_uchar,
+pub dma: crate::ctypes::c_uchar,
+pub port: crate::ctypes::c_uchar,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub struct if_settings {
+pub type_: crate::ctypes::c_uint,
+pub size: crate::ctypes::c_uint,
+pub ifs_ifsu: if_settings__bindgen_ty_1,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub struct ifreq {
+pub ifr_ifrn: ifreq__bindgen_ty_1,
+pub ifr_ifru: ifreq__bindgen_ty_2,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub struct ifconf {
+pub ifc_len: crate::ctypes::c_int,
+pub ifc_ifcu: ifconf__bindgen_ty_1,
+}
+#[repr(C)]
+pub struct xt_entry_match {
+pub u: xt_entry_match__bindgen_ty_1,
+pub data: __IncompleteArrayField<crate::ctypes::c_uchar>,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_entry_match__bindgen_ty_1__bindgen_ty_1 {
+pub match_size: __u16,
+pub name: [crate::ctypes::c_char; 29usize],
+pub revision: __u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_entry_match__bindgen_ty_1__bindgen_ty_2 {
+pub match_size: __u16,
+pub match_: *mut xt_match,
+}
+#[repr(C)]
+pub struct xt_entry_target {
+pub u: xt_entry_target__bindgen_ty_1,
+pub data: __IncompleteArrayField<crate::ctypes::c_uchar>,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_entry_target__bindgen_ty_1__bindgen_ty_1 {
+pub target_size: __u16,
+pub name: [crate::ctypes::c_char; 29usize],
+pub revision: __u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_entry_target__bindgen_ty_1__bindgen_ty_2 {
+pub target_size: __u16,
+pub target: *mut xt_target,
+}
+#[repr(C)]
+pub struct xt_standard_target {
+pub target: xt_entry_target,
+pub verdict: crate::ctypes::c_int,
+}
+#[repr(C)]
+pub struct xt_error_target {
+pub target: xt_entry_target,
+pub errorname: [crate::ctypes::c_char; 30usize],
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_get_revision {
+pub name: [crate::ctypes::c_char; 29usize],
+pub revision: __u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct _xt_align {
+pub u8_: __u8,
+pub u16_: __u16,
+pub u32_: __u32,
+pub u64_: __u64,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_counters {
+pub pcnt: __u64,
+pub bcnt: __u64,
+}
+#[repr(C)]
+#[derive(Debug)]
+pub struct xt_counters_info {
+pub name: [crate::ctypes::c_char; 32usize],
+pub num_counters: crate::ctypes::c_uint,
+pub counters: __IncompleteArrayField<xt_counters>,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_tcp {
+pub spts: [__u16; 2usize],
+pub dpts: [__u16; 2usize],
+pub option: __u8,
+pub flg_mask: __u8,
+pub flg_cmp: __u8,
+pub invflags: __u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_udp {
+pub spts: [__u16; 2usize],
+pub dpts: [__u16; 2usize],
+pub invflags: __u8,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub struct ip6t_ip6 {
+pub src: in6_addr,
+pub dst: in6_addr,
+pub smsk: in6_addr,
+pub dmsk: in6_addr,
+pub iniface: [crate::ctypes::c_char; 16usize],
+pub outiface: [crate::ctypes::c_char; 16usize],
+pub iniface_mask: [crate::ctypes::c_uchar; 16usize],
+pub outiface_mask: [crate::ctypes::c_uchar; 16usize],
+pub proto: __u16,
+pub tos: __u8,
+pub flags: __u8,
+pub invflags: __u8,
+}
+#[repr(C)]
+pub struct ip6t_entry {
+pub ipv6: ip6t_ip6,
+pub nfcache: crate::ctypes::c_uint,
+pub target_offset: __u16,
+pub next_offset: __u16,
+pub comefrom: crate::ctypes::c_uint,
+pub counters: xt_counters,
+pub elems: __IncompleteArrayField<crate::ctypes::c_uchar>,
+}
+#[repr(C)]
+pub struct ip6t_standard {
+pub entry: ip6t_entry,
+pub target: xt_standard_target,
+}
+#[repr(C)]
+pub struct ip6t_error {
+pub entry: ip6t_entry,
+pub target: xt_error_target,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct ip6t_icmp {
+pub type_: __u8,
+pub code: [__u8; 2usize],
+pub invflags: __u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct ip6t_getinfo {
+pub name: [crate::ctypes::c_char; 32usize],
+pub valid_hooks: crate::ctypes::c_uint,
+pub hook_entry: [crate::ctypes::c_uint; 5usize],
+pub underflow: [crate::ctypes::c_uint; 5usize],
+pub num_entries: crate::ctypes::c_uint,
+pub size: crate::ctypes::c_uint,
+}
+#[repr(C)]
+pub struct ip6t_replace {
+pub name: [crate::ctypes::c_char; 32usize],
+pub valid_hooks: crate::ctypes::c_uint,
+pub num_entries: crate::ctypes::c_uint,
+pub size: crate::ctypes::c_uint,
+pub hook_entry: [crate::ctypes::c_uint; 5usize],
+pub underflow: [crate::ctypes::c_uint; 5usize],
+pub num_counters: crate::ctypes::c_uint,
+pub counters: *mut xt_counters,
+pub entries: __IncompleteArrayField<ip6t_entry>,
+}
+#[repr(C)]
+pub struct ip6t_get_entries {
+pub name: [crate::ctypes::c_char; 32usize],
+pub size: crate::ctypes::c_uint,
+pub entrytable: __IncompleteArrayField<ip6t_entry>,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
pub struct linger {
pub l_onoff: crate::ctypes::c_int,
pub l_linger: crate::ctypes::c_int,
@@ -527,6 +776,16 @@ pub msg_len: crate::ctypes::c_uint,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
+pub struct xt_match {
+pub _address: u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_target {
+pub _address: u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
pub struct iovec {
pub _address: u8,
}
@@ -949,6 +1208,135 @@ pub const TCP_MD5SIG_FLAG_PREFIX: u32 = 1;
pub const TCP_MD5SIG_FLAG_IFINDEX: u32 = 2;
pub const TCP_RECEIVE_ZEROCOPY_FLAG_TLB_CLEAN_HINT: u32 = 1;
pub const UNIX_PATH_MAX: u32 = 108;
+pub const IFNAMSIZ: u32 = 16;
+pub const IFALIASZ: u32 = 256;
+pub const ALTIFNAMSIZ: u32 = 128;
+pub const GENERIC_HDLC_VERSION: u32 = 4;
+pub const CLOCK_DEFAULT: u32 = 0;
+pub const CLOCK_EXT: u32 = 1;
+pub const CLOCK_INT: u32 = 2;
+pub const CLOCK_TXINT: u32 = 3;
+pub const CLOCK_TXFROMRX: u32 = 4;
+pub const ENCODING_DEFAULT: u32 = 0;
+pub const ENCODING_NRZ: u32 = 1;
+pub const ENCODING_NRZI: u32 = 2;
+pub const ENCODING_FM_MARK: u32 = 3;
+pub const ENCODING_FM_SPACE: u32 = 4;
+pub const ENCODING_MANCHESTER: u32 = 5;
+pub const PARITY_DEFAULT: u32 = 0;
+pub const PARITY_NONE: u32 = 1;
+pub const PARITY_CRC16_PR0: u32 = 2;
+pub const PARITY_CRC16_PR1: u32 = 3;
+pub const PARITY_CRC16_PR0_CCITT: u32 = 4;
+pub const PARITY_CRC16_PR1_CCITT: u32 = 5;
+pub const PARITY_CRC32_PR0_CCITT: u32 = 6;
+pub const PARITY_CRC32_PR1_CCITT: u32 = 7;
+pub const LMI_DEFAULT: u32 = 0;
+pub const LMI_NONE: u32 = 1;
+pub const LMI_ANSI: u32 = 2;
+pub const LMI_CCITT: u32 = 3;
+pub const LMI_CISCO: u32 = 4;
+pub const IF_GET_IFACE: u32 = 1;
+pub const IF_GET_PROTO: u32 = 2;
+pub const IF_IFACE_V35: u32 = 4096;
+pub const IF_IFACE_V24: u32 = 4097;
+pub const IF_IFACE_X21: u32 = 4098;
+pub const IF_IFACE_T1: u32 = 4099;
+pub const IF_IFACE_E1: u32 = 4100;
+pub const IF_IFACE_SYNC_SERIAL: u32 = 4101;
+pub const IF_IFACE_X21D: u32 = 4102;
+pub const IF_PROTO_HDLC: u32 = 8192;
+pub const IF_PROTO_PPP: u32 = 8193;
+pub const IF_PROTO_CISCO: u32 = 8194;
+pub const IF_PROTO_FR: u32 = 8195;
+pub const IF_PROTO_FR_ADD_PVC: u32 = 8196;
+pub const IF_PROTO_FR_DEL_PVC: u32 = 8197;
+pub const IF_PROTO_X25: u32 = 8198;
+pub const IF_PROTO_HDLC_ETH: u32 = 8199;
+pub const IF_PROTO_FR_ADD_ETH_PVC: u32 = 8200;
+pub const IF_PROTO_FR_DEL_ETH_PVC: u32 = 8201;
+pub const IF_PROTO_FR_PVC: u32 = 8202;
+pub const IF_PROTO_FR_ETH_PVC: u32 = 8203;
+pub const IF_PROTO_RAW: u32 = 8204;
+pub const IFHWADDRLEN: u32 = 6;
+pub const NF_DROP: u32 = 0;
+pub const NF_ACCEPT: u32 = 1;
+pub const NF_STOLEN: u32 = 2;
+pub const NF_QUEUE: u32 = 3;
+pub const NF_REPEAT: u32 = 4;
+pub const NF_STOP: u32 = 5;
+pub const NF_MAX_VERDICT: u32 = 5;
+pub const NF_VERDICT_MASK: u32 = 255;
+pub const NF_VERDICT_FLAG_QUEUE_BYPASS: u32 = 32768;
+pub const NF_VERDICT_QMASK: u32 = 4294901760;
+pub const NF_VERDICT_QBITS: u32 = 16;
+pub const NF_VERDICT_BITS: u32 = 16;
+pub const NF_IP6_PRE_ROUTING: u32 = 0;
+pub const NF_IP6_LOCAL_IN: u32 = 1;
+pub const NF_IP6_FORWARD: u32 = 2;
+pub const NF_IP6_LOCAL_OUT: u32 = 3;
+pub const NF_IP6_POST_ROUTING: u32 = 4;
+pub const NF_IP6_NUMHOOKS: u32 = 5;
+pub const XT_FUNCTION_MAXNAMELEN: u32 = 30;
+pub const XT_EXTENSION_MAXNAMELEN: u32 = 29;
+pub const XT_TABLE_MAXNAMELEN: u32 = 32;
+pub const XT_CONTINUE: u32 = 4294967295;
+pub const XT_RETURN: i32 = -5;
+pub const XT_STANDARD_TARGET: &[u8; 1] = b"\0";
+pub const XT_ERROR_TARGET: &[u8; 6] = b"ERROR\0";
+pub const XT_INV_PROTO: u32 = 64;
+pub const IP6T_FUNCTION_MAXNAMELEN: u32 = 30;
+pub const IP6T_TABLE_MAXNAMELEN: u32 = 32;
+pub const IP6T_CONTINUE: u32 = 4294967295;
+pub const IP6T_RETURN: i32 = -5;
+pub const XT_TCP_INV_SRCPT: u32 = 1;
+pub const XT_TCP_INV_DSTPT: u32 = 2;
+pub const XT_TCP_INV_FLAGS: u32 = 4;
+pub const XT_TCP_INV_OPTION: u32 = 8;
+pub const XT_TCP_INV_MASK: u32 = 15;
+pub const XT_UDP_INV_SRCPT: u32 = 1;
+pub const XT_UDP_INV_DSTPT: u32 = 2;
+pub const XT_UDP_INV_MASK: u32 = 3;
+pub const IP6T_TCP_INV_SRCPT: u32 = 1;
+pub const IP6T_TCP_INV_DSTPT: u32 = 2;
+pub const IP6T_TCP_INV_FLAGS: u32 = 4;
+pub const IP6T_TCP_INV_OPTION: u32 = 8;
+pub const IP6T_TCP_INV_MASK: u32 = 15;
+pub const IP6T_UDP_INV_SRCPT: u32 = 1;
+pub const IP6T_UDP_INV_DSTPT: u32 = 2;
+pub const IP6T_UDP_INV_MASK: u32 = 3;
+pub const IP6T_STANDARD_TARGET: &[u8; 1] = b"\0";
+pub const IP6T_ERROR_TARGET: &[u8; 6] = b"ERROR\0";
+pub const IP6T_F_PROTO: u32 = 1;
+pub const IP6T_F_TOS: u32 = 2;
+pub const IP6T_F_GOTO: u32 = 4;
+pub const IP6T_F_MASK: u32 = 7;
+pub const IP6T_INV_VIA_IN: u32 = 1;
+pub const IP6T_INV_VIA_OUT: u32 = 2;
+pub const IP6T_INV_TOS: u32 = 4;
+pub const IP6T_INV_SRCIP: u32 = 8;
+pub const IP6T_INV_DSTIP: u32 = 16;
+pub const IP6T_INV_FRAG: u32 = 32;
+pub const IP6T_INV_PROTO: u32 = 64;
+pub const IP6T_INV_MASK: u32 = 127;
+pub const IP6T_BASE_CTL: u32 = 64;
+pub const IP6T_SO_SET_REPLACE: u32 = 64;
+pub const IP6T_SO_SET_ADD_COUNTERS: u32 = 65;
+pub const IP6T_SO_SET_MAX: u32 = 65;
+pub const IP6T_SO_GET_INFO: u32 = 64;
+pub const IP6T_SO_GET_ENTRIES: u32 = 65;
+pub const IP6T_SO_GET_REVISION_MATCH: u32 = 68;
+pub const IP6T_SO_GET_REVISION_TARGET: u32 = 69;
+pub const IP6T_SO_GET_MAX: u32 = 69;
+pub const IP6T_SO_ORIGINAL_DST: u32 = 80;
+pub const IP6T_ICMP_INV: u32 = 1;
+pub const NF_IP_PRE_ROUTING: u32 = 0;
+pub const NF_IP_LOCAL_IN: u32 = 1;
+pub const NF_IP_FORWARD: u32 = 2;
+pub const NF_IP_LOCAL_OUT: u32 = 3;
+pub const NF_IP_POST_ROUTING: u32 = 4;
+pub const NF_IP_NUMHOOKS: u32 = 5;
+pub const SO_ORIGINAL_DST: u32 = 80;
pub const SHUT_RD: u32 = 0;
pub const SHUT_WR: u32 = 1;
pub const SHUT_RDWR: u32 = 2;
@@ -1177,6 +1565,25 @@ pub const TCP_NLA_BYTES_NOTSENT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_NO
pub const TCP_NLA_EDT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_EDT;
pub const TCP_NLA_TTL: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TTL;
pub const TCP_NLA_REHASH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REHASH;
+pub const IF_OPER_UNKNOWN: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_UNKNOWN;
+pub const IF_OPER_NOTPRESENT: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_NOTPRESENT;
+pub const IF_OPER_DOWN: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_DOWN;
+pub const IF_OPER_LOWERLAYERDOWN: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_LOWERLAYERDOWN;
+pub const IF_OPER_TESTING: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_TESTING;
+pub const IF_OPER_DORMANT: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_DORMANT;
+pub const IF_OPER_UP: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_UP;
+pub const IF_LINK_MODE_DEFAULT: _bindgen_ty_8 = _bindgen_ty_8::IF_LINK_MODE_DEFAULT;
+pub const IF_LINK_MODE_DORMANT: _bindgen_ty_8 = _bindgen_ty_8::IF_LINK_MODE_DORMANT;
+pub const IF_LINK_MODE_TESTING: _bindgen_ty_8 = _bindgen_ty_8::IF_LINK_MODE_TESTING;
+pub const NFPROTO_UNSPEC: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_UNSPEC;
+pub const NFPROTO_INET: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_INET;
+pub const NFPROTO_IPV4: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_IPV4;
+pub const NFPROTO_ARP: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_ARP;
+pub const NFPROTO_NETDEV: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_NETDEV;
+pub const NFPROTO_BRIDGE: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_BRIDGE;
+pub const NFPROTO_IPV6: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_IPV6;
+pub const NFPROTO_DECNET: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_DECNET;
+pub const NFPROTO_NUMPROTO: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_NUMPROTO;
#[repr(u32)]
#[non_exhaustive]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
@@ -1400,6 +1807,121 @@ TCP_NLA_EDT = 25,
TCP_NLA_TTL = 26,
TCP_NLA_REHASH = 27,
}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum net_device_flags {
+IFF_UP = 1,
+IFF_BROADCAST = 2,
+IFF_DEBUG = 4,
+IFF_LOOPBACK = 8,
+IFF_POINTOPOINT = 16,
+IFF_NOTRAILERS = 32,
+IFF_RUNNING = 64,
+IFF_NOARP = 128,
+IFF_PROMISC = 256,
+IFF_ALLMULTI = 512,
+IFF_MASTER = 1024,
+IFF_SLAVE = 2048,
+IFF_MULTICAST = 4096,
+IFF_PORTSEL = 8192,
+IFF_AUTOMEDIA = 16384,
+IFF_DYNAMIC = 32768,
+IFF_LOWER_UP = 65536,
+IFF_DORMANT = 131072,
+IFF_ECHO = 262144,
+}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum _bindgen_ty_7 {
+IF_OPER_UNKNOWN = 0,
+IF_OPER_NOTPRESENT = 1,
+IF_OPER_DOWN = 2,
+IF_OPER_LOWERLAYERDOWN = 3,
+IF_OPER_TESTING = 4,
+IF_OPER_DORMANT = 5,
+IF_OPER_UP = 6,
+}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum _bindgen_ty_8 {
+IF_LINK_MODE_DEFAULT = 0,
+IF_LINK_MODE_DORMANT = 1,
+IF_LINK_MODE_TESTING = 2,
+}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum nf_inet_hooks {
+NF_INET_PRE_ROUTING = 0,
+NF_INET_LOCAL_IN = 1,
+NF_INET_FORWARD = 2,
+NF_INET_LOCAL_OUT = 3,
+NF_INET_POST_ROUTING = 4,
+NF_INET_NUMHOOKS = 5,
+}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum nf_dev_hooks {
+NF_NETDEV_INGRESS = 0,
+NF_NETDEV_EGRESS = 1,
+NF_NETDEV_NUMHOOKS = 2,
+}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum _bindgen_ty_9 {
+NFPROTO_UNSPEC = 0,
+NFPROTO_INET = 1,
+NFPROTO_IPV4 = 2,
+NFPROTO_ARP = 3,
+NFPROTO_NETDEV = 5,
+NFPROTO_BRIDGE = 7,
+NFPROTO_IPV6 = 10,
+NFPROTO_DECNET = 12,
+NFPROTO_NUMPROTO = 13,
+}
+#[repr(i32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum nf_ip6_hook_priorities {
+NF_IP6_PRI_FIRST = -2147483648,
+NF_IP6_PRI_RAW_BEFORE_DEFRAG = -450,
+NF_IP6_PRI_CONNTRACK_DEFRAG = -400,
+NF_IP6_PRI_RAW = -300,
+NF_IP6_PRI_SELINUX_FIRST = -225,
+NF_IP6_PRI_CONNTRACK = -200,
+NF_IP6_PRI_MANGLE = -150,
+NF_IP6_PRI_NAT_DST = -100,
+NF_IP6_PRI_FILTER = 0,
+NF_IP6_PRI_SECURITY = 50,
+NF_IP6_PRI_NAT_SRC = 100,
+NF_IP6_PRI_SELINUX_LAST = 225,
+NF_IP6_PRI_CONNTRACK_HELPER = 300,
+NF_IP6_PRI_LAST = 2147483647,
+}
+#[repr(i32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum nf_ip_hook_priorities {
+NF_IP_PRI_FIRST = -2147483648,
+NF_IP_PRI_RAW_BEFORE_DEFRAG = -450,
+NF_IP_PRI_CONNTRACK_DEFRAG = -400,
+NF_IP_PRI_RAW = -300,
+NF_IP_PRI_SELINUX_FIRST = -225,
+NF_IP_PRI_CONNTRACK = -200,
+NF_IP_PRI_MANGLE = -150,
+NF_IP_PRI_NAT_DST = -100,
+NF_IP_PRI_FILTER = 0,
+NF_IP_PRI_SECURITY = 50,
+NF_IP_PRI_NAT_SRC = 100,
+NF_IP_PRI_SELINUX_LAST = 225,
+NF_IP_PRI_CONNTRACK_HELPER = 300,
+NF_IP_PRI_CONNTRACK_CONFIRM = 2147483647,
+}
#[repr(C)]
#[derive(Copy, Clone)]
pub union __vector128__bindgen_ty_1 {
@@ -1437,6 +1959,69 @@ pub union tcp_word_hdr {
pub hdr: tcphdr,
pub words: [__be32; 5usize],
}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union if_settings__bindgen_ty_1 {
+pub raw_hdlc: *mut raw_hdlc_proto,
+pub cisco: *mut cisco_proto,
+pub fr: *mut fr_proto,
+pub fr_pvc: *mut fr_proto_pvc,
+pub fr_pvc_info: *mut fr_proto_pvc_info,
+pub x25: *mut x25_hdlc_proto,
+pub sync: *mut sync_serial_settings,
+pub te1: *mut te1_settings,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union ifreq__bindgen_ty_1 {
+pub ifrn_name: [crate::ctypes::c_char; 16usize],
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union ifreq__bindgen_ty_2 {
+pub ifru_addr: sockaddr,
+pub ifru_dstaddr: sockaddr,
+pub ifru_broadaddr: sockaddr,
+pub ifru_netmask: sockaddr,
+pub ifru_hwaddr: sockaddr,
+pub ifru_flags: crate::ctypes::c_short,
+pub ifru_ivalue: crate::ctypes::c_int,
+pub ifru_mtu: crate::ctypes::c_int,
+pub ifru_map: ifmap,
+pub ifru_slave: [crate::ctypes::c_char; 16usize],
+pub ifru_newname: [crate::ctypes::c_char; 16usize],
+pub ifru_data: *mut crate::ctypes::c_void,
+pub ifru_settings: if_settings,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union ifconf__bindgen_ty_1 {
+pub ifcu_buf: *mut crate::ctypes::c_char,
+pub ifcu_req: *mut ifreq,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union nf_inet_addr {
+pub all: [__u32; 4usize],
+pub ip: __be32,
+pub ip6: [__be32; 4usize],
+pub in_: in_addr,
+pub in6: in6_addr,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union xt_entry_match__bindgen_ty_1 {
+pub user: xt_entry_match__bindgen_ty_1__bindgen_ty_1,
+pub kernel: xt_entry_match__bindgen_ty_1__bindgen_ty_2,
+pub match_size: __u16,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union xt_entry_target__bindgen_ty_1 {
+pub user: xt_entry_target__bindgen_ty_1__bindgen_ty_1,
+pub kernel: xt_entry_target__bindgen_ty_1__bindgen_ty_2,
+pub target_size: __u16,
+}
impl<Storage> __BindgenBitfieldUnit<Storage> {
#[inline]
pub const fn new(storage: Storage) -> Self {
@@ -1862,3 +2447,9 @@ tcpi_fastopen_client_fail as u64
__bindgen_bitfield_unit
}
}
+impl nf_inet_hooks {
+pub const NF_INET_INGRESS: nf_inet_hooks = nf_inet_hooks::NF_INET_NUMHOOKS;
+}
+impl nf_ip_hook_priorities {
+pub const NF_IP_PRI_LAST: nf_ip_hook_priorities = nf_ip_hook_priorities::NF_IP_PRI_CONNTRACK_CONFIRM;
+}
diff --git a/vendor/linux-raw-sys/src/sparc/general.rs b/vendor/linux-raw-sys/src/sparc/general.rs
index 6989c081e..24c14470c 100644
--- a/vendor/linux-raw-sys/src/sparc/general.rs
+++ b/vendor/linux-raw-sys/src/sparc/general.rs
@@ -1614,6 +1614,19 @@ pub const POLLRDBAND: u32 = 128;
pub const GRND_NONBLOCK: u32 = 1;
pub const GRND_RANDOM: u32 = 2;
pub const GRND_INSECURE: u32 = 4;
+pub const LINUX_REBOOT_MAGIC1: u32 = 4276215469;
+pub const LINUX_REBOOT_MAGIC2: u32 = 672274793;
+pub const LINUX_REBOOT_MAGIC2A: u32 = 85072278;
+pub const LINUX_REBOOT_MAGIC2B: u32 = 369367448;
+pub const LINUX_REBOOT_MAGIC2C: u32 = 537993216;
+pub const LINUX_REBOOT_CMD_RESTART: u32 = 19088743;
+pub const LINUX_REBOOT_CMD_HALT: u32 = 3454992675;
+pub const LINUX_REBOOT_CMD_CAD_ON: u32 = 2309737967;
+pub const LINUX_REBOOT_CMD_CAD_OFF: u32 = 0;
+pub const LINUX_REBOOT_CMD_POWER_OFF: u32 = 1126301404;
+pub const LINUX_REBOOT_CMD_RESTART2: u32 = 2712847316;
+pub const LINUX_REBOOT_CMD_SW_SUSPEND: u32 = 3489725666;
+pub const LINUX_REBOOT_CMD_KEXEC: u32 = 1163412803;
pub const ITIMER_REAL: u32 = 0;
pub const ITIMER_VIRTUAL: u32 = 1;
pub const ITIMER_PROF: u32 = 2;
diff --git a/vendor/linux-raw-sys/src/sparc/net.rs b/vendor/linux-raw-sys/src/sparc/net.rs
index ca7d1aaa1..aff8a9622 100644
--- a/vendor/linux-raw-sys/src/sparc/net.rs
+++ b/vendor/linux-raw-sys/src/sparc/net.rs
@@ -476,6 +476,255 @@ pub __storage: __kernel_sockaddr_storage,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
+pub struct sync_serial_settings {
+pub clock_rate: crate::ctypes::c_uint,
+pub clock_type: crate::ctypes::c_uint,
+pub loopback: crate::ctypes::c_ushort,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct te1_settings {
+pub clock_rate: crate::ctypes::c_uint,
+pub clock_type: crate::ctypes::c_uint,
+pub loopback: crate::ctypes::c_ushort,
+pub slot_map: crate::ctypes::c_uint,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct raw_hdlc_proto {
+pub encoding: crate::ctypes::c_ushort,
+pub parity: crate::ctypes::c_ushort,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct fr_proto {
+pub t391: crate::ctypes::c_uint,
+pub t392: crate::ctypes::c_uint,
+pub n391: crate::ctypes::c_uint,
+pub n392: crate::ctypes::c_uint,
+pub n393: crate::ctypes::c_uint,
+pub lmi: crate::ctypes::c_ushort,
+pub dce: crate::ctypes::c_ushort,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct fr_proto_pvc {
+pub dlci: crate::ctypes::c_uint,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct fr_proto_pvc_info {
+pub dlci: crate::ctypes::c_uint,
+pub master: [crate::ctypes::c_char; 16usize],
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct cisco_proto {
+pub interval: crate::ctypes::c_uint,
+pub timeout: crate::ctypes::c_uint,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct x25_hdlc_proto {
+pub dce: crate::ctypes::c_ushort,
+pub modulo: crate::ctypes::c_uint,
+pub window: crate::ctypes::c_uint,
+pub t1: crate::ctypes::c_uint,
+pub t2: crate::ctypes::c_uint,
+pub n2: crate::ctypes::c_uint,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct ifmap {
+pub mem_start: crate::ctypes::c_ulong,
+pub mem_end: crate::ctypes::c_ulong,
+pub base_addr: crate::ctypes::c_ushort,
+pub irq: crate::ctypes::c_uchar,
+pub dma: crate::ctypes::c_uchar,
+pub port: crate::ctypes::c_uchar,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub struct if_settings {
+pub type_: crate::ctypes::c_uint,
+pub size: crate::ctypes::c_uint,
+pub ifs_ifsu: if_settings__bindgen_ty_1,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub struct ifreq {
+pub ifr_ifrn: ifreq__bindgen_ty_1,
+pub ifr_ifru: ifreq__bindgen_ty_2,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub struct ifconf {
+pub ifc_len: crate::ctypes::c_int,
+pub ifc_ifcu: ifconf__bindgen_ty_1,
+}
+#[repr(C)]
+pub struct xt_entry_match {
+pub u: xt_entry_match__bindgen_ty_1,
+pub data: __IncompleteArrayField<crate::ctypes::c_uchar>,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_entry_match__bindgen_ty_1__bindgen_ty_1 {
+pub match_size: __u16,
+pub name: [crate::ctypes::c_char; 29usize],
+pub revision: __u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_entry_match__bindgen_ty_1__bindgen_ty_2 {
+pub match_size: __u16,
+pub match_: *mut xt_match,
+}
+#[repr(C)]
+pub struct xt_entry_target {
+pub u: xt_entry_target__bindgen_ty_1,
+pub data: __IncompleteArrayField<crate::ctypes::c_uchar>,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_entry_target__bindgen_ty_1__bindgen_ty_1 {
+pub target_size: __u16,
+pub name: [crate::ctypes::c_char; 29usize],
+pub revision: __u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_entry_target__bindgen_ty_1__bindgen_ty_2 {
+pub target_size: __u16,
+pub target: *mut xt_target,
+}
+#[repr(C)]
+pub struct xt_standard_target {
+pub target: xt_entry_target,
+pub verdict: crate::ctypes::c_int,
+}
+#[repr(C)]
+pub struct xt_error_target {
+pub target: xt_entry_target,
+pub errorname: [crate::ctypes::c_char; 30usize],
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_get_revision {
+pub name: [crate::ctypes::c_char; 29usize],
+pub revision: __u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct _xt_align {
+pub u8_: __u8,
+pub u16_: __u16,
+pub u32_: __u32,
+pub u64_: __u64,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_counters {
+pub pcnt: __u64,
+pub bcnt: __u64,
+}
+#[repr(C)]
+#[derive(Debug)]
+pub struct xt_counters_info {
+pub name: [crate::ctypes::c_char; 32usize],
+pub num_counters: crate::ctypes::c_uint,
+pub counters: __IncompleteArrayField<xt_counters>,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_tcp {
+pub spts: [__u16; 2usize],
+pub dpts: [__u16; 2usize],
+pub option: __u8,
+pub flg_mask: __u8,
+pub flg_cmp: __u8,
+pub invflags: __u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_udp {
+pub spts: [__u16; 2usize],
+pub dpts: [__u16; 2usize],
+pub invflags: __u8,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub struct ip6t_ip6 {
+pub src: in6_addr,
+pub dst: in6_addr,
+pub smsk: in6_addr,
+pub dmsk: in6_addr,
+pub iniface: [crate::ctypes::c_char; 16usize],
+pub outiface: [crate::ctypes::c_char; 16usize],
+pub iniface_mask: [crate::ctypes::c_uchar; 16usize],
+pub outiface_mask: [crate::ctypes::c_uchar; 16usize],
+pub proto: __u16,
+pub tos: __u8,
+pub flags: __u8,
+pub invflags: __u8,
+}
+#[repr(C)]
+pub struct ip6t_entry {
+pub ipv6: ip6t_ip6,
+pub nfcache: crate::ctypes::c_uint,
+pub target_offset: __u16,
+pub next_offset: __u16,
+pub comefrom: crate::ctypes::c_uint,
+pub counters: xt_counters,
+pub elems: __IncompleteArrayField<crate::ctypes::c_uchar>,
+}
+#[repr(C)]
+pub struct ip6t_standard {
+pub entry: ip6t_entry,
+pub target: xt_standard_target,
+}
+#[repr(C)]
+pub struct ip6t_error {
+pub entry: ip6t_entry,
+pub target: xt_error_target,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct ip6t_icmp {
+pub type_: __u8,
+pub code: [__u8; 2usize],
+pub invflags: __u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct ip6t_getinfo {
+pub name: [crate::ctypes::c_char; 32usize],
+pub valid_hooks: crate::ctypes::c_uint,
+pub hook_entry: [crate::ctypes::c_uint; 5usize],
+pub underflow: [crate::ctypes::c_uint; 5usize],
+pub num_entries: crate::ctypes::c_uint,
+pub size: crate::ctypes::c_uint,
+}
+#[repr(C)]
+pub struct ip6t_replace {
+pub name: [crate::ctypes::c_char; 32usize],
+pub valid_hooks: crate::ctypes::c_uint,
+pub num_entries: crate::ctypes::c_uint,
+pub size: crate::ctypes::c_uint,
+pub hook_entry: [crate::ctypes::c_uint; 5usize],
+pub underflow: [crate::ctypes::c_uint; 5usize],
+pub num_counters: crate::ctypes::c_uint,
+pub counters: *mut xt_counters,
+pub entries: __IncompleteArrayField<ip6t_entry>,
+}
+#[repr(C)]
+pub struct ip6t_get_entries {
+pub name: [crate::ctypes::c_char; 32usize],
+pub size: crate::ctypes::c_uint,
+pub entrytable: __IncompleteArrayField<ip6t_entry>,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
pub struct linger {
pub l_onoff: crate::ctypes::c_int,
pub l_linger: crate::ctypes::c_int,
@@ -513,6 +762,16 @@ pub msg_len: crate::ctypes::c_uint,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
+pub struct xt_match {
+pub _address: u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_target {
+pub _address: u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
pub struct iovec {
pub _address: u8,
}
@@ -1143,6 +1402,135 @@ pub const TCP_MD5SIG_FLAG_PREFIX: u32 = 1;
pub const TCP_MD5SIG_FLAG_IFINDEX: u32 = 2;
pub const TCP_RECEIVE_ZEROCOPY_FLAG_TLB_CLEAN_HINT: u32 = 1;
pub const UNIX_PATH_MAX: u32 = 108;
+pub const IFNAMSIZ: u32 = 16;
+pub const IFALIASZ: u32 = 256;
+pub const ALTIFNAMSIZ: u32 = 128;
+pub const GENERIC_HDLC_VERSION: u32 = 4;
+pub const CLOCK_DEFAULT: u32 = 0;
+pub const CLOCK_EXT: u32 = 1;
+pub const CLOCK_INT: u32 = 2;
+pub const CLOCK_TXINT: u32 = 3;
+pub const CLOCK_TXFROMRX: u32 = 4;
+pub const ENCODING_DEFAULT: u32 = 0;
+pub const ENCODING_NRZ: u32 = 1;
+pub const ENCODING_NRZI: u32 = 2;
+pub const ENCODING_FM_MARK: u32 = 3;
+pub const ENCODING_FM_SPACE: u32 = 4;
+pub const ENCODING_MANCHESTER: u32 = 5;
+pub const PARITY_DEFAULT: u32 = 0;
+pub const PARITY_NONE: u32 = 1;
+pub const PARITY_CRC16_PR0: u32 = 2;
+pub const PARITY_CRC16_PR1: u32 = 3;
+pub const PARITY_CRC16_PR0_CCITT: u32 = 4;
+pub const PARITY_CRC16_PR1_CCITT: u32 = 5;
+pub const PARITY_CRC32_PR0_CCITT: u32 = 6;
+pub const PARITY_CRC32_PR1_CCITT: u32 = 7;
+pub const LMI_DEFAULT: u32 = 0;
+pub const LMI_NONE: u32 = 1;
+pub const LMI_ANSI: u32 = 2;
+pub const LMI_CCITT: u32 = 3;
+pub const LMI_CISCO: u32 = 4;
+pub const IF_GET_IFACE: u32 = 1;
+pub const IF_GET_PROTO: u32 = 2;
+pub const IF_IFACE_V35: u32 = 4096;
+pub const IF_IFACE_V24: u32 = 4097;
+pub const IF_IFACE_X21: u32 = 4098;
+pub const IF_IFACE_T1: u32 = 4099;
+pub const IF_IFACE_E1: u32 = 4100;
+pub const IF_IFACE_SYNC_SERIAL: u32 = 4101;
+pub const IF_IFACE_X21D: u32 = 4102;
+pub const IF_PROTO_HDLC: u32 = 8192;
+pub const IF_PROTO_PPP: u32 = 8193;
+pub const IF_PROTO_CISCO: u32 = 8194;
+pub const IF_PROTO_FR: u32 = 8195;
+pub const IF_PROTO_FR_ADD_PVC: u32 = 8196;
+pub const IF_PROTO_FR_DEL_PVC: u32 = 8197;
+pub const IF_PROTO_X25: u32 = 8198;
+pub const IF_PROTO_HDLC_ETH: u32 = 8199;
+pub const IF_PROTO_FR_ADD_ETH_PVC: u32 = 8200;
+pub const IF_PROTO_FR_DEL_ETH_PVC: u32 = 8201;
+pub const IF_PROTO_FR_PVC: u32 = 8202;
+pub const IF_PROTO_FR_ETH_PVC: u32 = 8203;
+pub const IF_PROTO_RAW: u32 = 8204;
+pub const IFHWADDRLEN: u32 = 6;
+pub const NF_DROP: u32 = 0;
+pub const NF_ACCEPT: u32 = 1;
+pub const NF_STOLEN: u32 = 2;
+pub const NF_QUEUE: u32 = 3;
+pub const NF_REPEAT: u32 = 4;
+pub const NF_STOP: u32 = 5;
+pub const NF_MAX_VERDICT: u32 = 5;
+pub const NF_VERDICT_MASK: u32 = 255;
+pub const NF_VERDICT_FLAG_QUEUE_BYPASS: u32 = 32768;
+pub const NF_VERDICT_QMASK: u32 = 4294901760;
+pub const NF_VERDICT_QBITS: u32 = 16;
+pub const NF_VERDICT_BITS: u32 = 16;
+pub const NF_IP6_PRE_ROUTING: u32 = 0;
+pub const NF_IP6_LOCAL_IN: u32 = 1;
+pub const NF_IP6_FORWARD: u32 = 2;
+pub const NF_IP6_LOCAL_OUT: u32 = 3;
+pub const NF_IP6_POST_ROUTING: u32 = 4;
+pub const NF_IP6_NUMHOOKS: u32 = 5;
+pub const XT_FUNCTION_MAXNAMELEN: u32 = 30;
+pub const XT_EXTENSION_MAXNAMELEN: u32 = 29;
+pub const XT_TABLE_MAXNAMELEN: u32 = 32;
+pub const XT_CONTINUE: u32 = 4294967295;
+pub const XT_RETURN: i32 = -5;
+pub const XT_STANDARD_TARGET: &[u8; 1] = b"\0";
+pub const XT_ERROR_TARGET: &[u8; 6] = b"ERROR\0";
+pub const XT_INV_PROTO: u32 = 64;
+pub const IP6T_FUNCTION_MAXNAMELEN: u32 = 30;
+pub const IP6T_TABLE_MAXNAMELEN: u32 = 32;
+pub const IP6T_CONTINUE: u32 = 4294967295;
+pub const IP6T_RETURN: i32 = -5;
+pub const XT_TCP_INV_SRCPT: u32 = 1;
+pub const XT_TCP_INV_DSTPT: u32 = 2;
+pub const XT_TCP_INV_FLAGS: u32 = 4;
+pub const XT_TCP_INV_OPTION: u32 = 8;
+pub const XT_TCP_INV_MASK: u32 = 15;
+pub const XT_UDP_INV_SRCPT: u32 = 1;
+pub const XT_UDP_INV_DSTPT: u32 = 2;
+pub const XT_UDP_INV_MASK: u32 = 3;
+pub const IP6T_TCP_INV_SRCPT: u32 = 1;
+pub const IP6T_TCP_INV_DSTPT: u32 = 2;
+pub const IP6T_TCP_INV_FLAGS: u32 = 4;
+pub const IP6T_TCP_INV_OPTION: u32 = 8;
+pub const IP6T_TCP_INV_MASK: u32 = 15;
+pub const IP6T_UDP_INV_SRCPT: u32 = 1;
+pub const IP6T_UDP_INV_DSTPT: u32 = 2;
+pub const IP6T_UDP_INV_MASK: u32 = 3;
+pub const IP6T_STANDARD_TARGET: &[u8; 1] = b"\0";
+pub const IP6T_ERROR_TARGET: &[u8; 6] = b"ERROR\0";
+pub const IP6T_F_PROTO: u32 = 1;
+pub const IP6T_F_TOS: u32 = 2;
+pub const IP6T_F_GOTO: u32 = 4;
+pub const IP6T_F_MASK: u32 = 7;
+pub const IP6T_INV_VIA_IN: u32 = 1;
+pub const IP6T_INV_VIA_OUT: u32 = 2;
+pub const IP6T_INV_TOS: u32 = 4;
+pub const IP6T_INV_SRCIP: u32 = 8;
+pub const IP6T_INV_DSTIP: u32 = 16;
+pub const IP6T_INV_FRAG: u32 = 32;
+pub const IP6T_INV_PROTO: u32 = 64;
+pub const IP6T_INV_MASK: u32 = 127;
+pub const IP6T_BASE_CTL: u32 = 64;
+pub const IP6T_SO_SET_REPLACE: u32 = 64;
+pub const IP6T_SO_SET_ADD_COUNTERS: u32 = 65;
+pub const IP6T_SO_SET_MAX: u32 = 65;
+pub const IP6T_SO_GET_INFO: u32 = 64;
+pub const IP6T_SO_GET_ENTRIES: u32 = 65;
+pub const IP6T_SO_GET_REVISION_MATCH: u32 = 68;
+pub const IP6T_SO_GET_REVISION_TARGET: u32 = 69;
+pub const IP6T_SO_GET_MAX: u32 = 69;
+pub const IP6T_SO_ORIGINAL_DST: u32 = 80;
+pub const IP6T_ICMP_INV: u32 = 1;
+pub const NF_IP_PRE_ROUTING: u32 = 0;
+pub const NF_IP_LOCAL_IN: u32 = 1;
+pub const NF_IP_FORWARD: u32 = 2;
+pub const NF_IP_LOCAL_OUT: u32 = 3;
+pub const NF_IP_POST_ROUTING: u32 = 4;
+pub const NF_IP_NUMHOOKS: u32 = 5;
+pub const SO_ORIGINAL_DST: u32 = 80;
pub const SHUT_RD: u32 = 0;
pub const SHUT_WR: u32 = 1;
pub const SHUT_RDWR: u32 = 2;
@@ -1371,6 +1759,25 @@ pub const TCP_NLA_BYTES_NOTSENT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_NO
pub const TCP_NLA_EDT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_EDT;
pub const TCP_NLA_TTL: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TTL;
pub const TCP_NLA_REHASH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REHASH;
+pub const IF_OPER_UNKNOWN: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_UNKNOWN;
+pub const IF_OPER_NOTPRESENT: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_NOTPRESENT;
+pub const IF_OPER_DOWN: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_DOWN;
+pub const IF_OPER_LOWERLAYERDOWN: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_LOWERLAYERDOWN;
+pub const IF_OPER_TESTING: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_TESTING;
+pub const IF_OPER_DORMANT: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_DORMANT;
+pub const IF_OPER_UP: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_UP;
+pub const IF_LINK_MODE_DEFAULT: _bindgen_ty_8 = _bindgen_ty_8::IF_LINK_MODE_DEFAULT;
+pub const IF_LINK_MODE_DORMANT: _bindgen_ty_8 = _bindgen_ty_8::IF_LINK_MODE_DORMANT;
+pub const IF_LINK_MODE_TESTING: _bindgen_ty_8 = _bindgen_ty_8::IF_LINK_MODE_TESTING;
+pub const NFPROTO_UNSPEC: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_UNSPEC;
+pub const NFPROTO_INET: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_INET;
+pub const NFPROTO_IPV4: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_IPV4;
+pub const NFPROTO_ARP: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_ARP;
+pub const NFPROTO_NETDEV: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_NETDEV;
+pub const NFPROTO_BRIDGE: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_BRIDGE;
+pub const NFPROTO_IPV6: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_IPV6;
+pub const NFPROTO_DECNET: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_DECNET;
+pub const NFPROTO_NUMPROTO: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_NUMPROTO;
#[repr(u32)]
#[non_exhaustive]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
@@ -1594,6 +2001,121 @@ TCP_NLA_EDT = 25,
TCP_NLA_TTL = 26,
TCP_NLA_REHASH = 27,
}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum net_device_flags {
+IFF_UP = 1,
+IFF_BROADCAST = 2,
+IFF_DEBUG = 4,
+IFF_LOOPBACK = 8,
+IFF_POINTOPOINT = 16,
+IFF_NOTRAILERS = 32,
+IFF_RUNNING = 64,
+IFF_NOARP = 128,
+IFF_PROMISC = 256,
+IFF_ALLMULTI = 512,
+IFF_MASTER = 1024,
+IFF_SLAVE = 2048,
+IFF_MULTICAST = 4096,
+IFF_PORTSEL = 8192,
+IFF_AUTOMEDIA = 16384,
+IFF_DYNAMIC = 32768,
+IFF_LOWER_UP = 65536,
+IFF_DORMANT = 131072,
+IFF_ECHO = 262144,
+}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum _bindgen_ty_7 {
+IF_OPER_UNKNOWN = 0,
+IF_OPER_NOTPRESENT = 1,
+IF_OPER_DOWN = 2,
+IF_OPER_LOWERLAYERDOWN = 3,
+IF_OPER_TESTING = 4,
+IF_OPER_DORMANT = 5,
+IF_OPER_UP = 6,
+}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum _bindgen_ty_8 {
+IF_LINK_MODE_DEFAULT = 0,
+IF_LINK_MODE_DORMANT = 1,
+IF_LINK_MODE_TESTING = 2,
+}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum nf_inet_hooks {
+NF_INET_PRE_ROUTING = 0,
+NF_INET_LOCAL_IN = 1,
+NF_INET_FORWARD = 2,
+NF_INET_LOCAL_OUT = 3,
+NF_INET_POST_ROUTING = 4,
+NF_INET_NUMHOOKS = 5,
+}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum nf_dev_hooks {
+NF_NETDEV_INGRESS = 0,
+NF_NETDEV_EGRESS = 1,
+NF_NETDEV_NUMHOOKS = 2,
+}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum _bindgen_ty_9 {
+NFPROTO_UNSPEC = 0,
+NFPROTO_INET = 1,
+NFPROTO_IPV4 = 2,
+NFPROTO_ARP = 3,
+NFPROTO_NETDEV = 5,
+NFPROTO_BRIDGE = 7,
+NFPROTO_IPV6 = 10,
+NFPROTO_DECNET = 12,
+NFPROTO_NUMPROTO = 13,
+}
+#[repr(i32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum nf_ip6_hook_priorities {
+NF_IP6_PRI_FIRST = -2147483648,
+NF_IP6_PRI_RAW_BEFORE_DEFRAG = -450,
+NF_IP6_PRI_CONNTRACK_DEFRAG = -400,
+NF_IP6_PRI_RAW = -300,
+NF_IP6_PRI_SELINUX_FIRST = -225,
+NF_IP6_PRI_CONNTRACK = -200,
+NF_IP6_PRI_MANGLE = -150,
+NF_IP6_PRI_NAT_DST = -100,
+NF_IP6_PRI_FILTER = 0,
+NF_IP6_PRI_SECURITY = 50,
+NF_IP6_PRI_NAT_SRC = 100,
+NF_IP6_PRI_SELINUX_LAST = 225,
+NF_IP6_PRI_CONNTRACK_HELPER = 300,
+NF_IP6_PRI_LAST = 2147483647,
+}
+#[repr(i32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum nf_ip_hook_priorities {
+NF_IP_PRI_FIRST = -2147483648,
+NF_IP_PRI_RAW_BEFORE_DEFRAG = -450,
+NF_IP_PRI_CONNTRACK_DEFRAG = -400,
+NF_IP_PRI_RAW = -300,
+NF_IP_PRI_SELINUX_FIRST = -225,
+NF_IP_PRI_CONNTRACK = -200,
+NF_IP_PRI_MANGLE = -150,
+NF_IP_PRI_NAT_DST = -100,
+NF_IP_PRI_FILTER = 0,
+NF_IP_PRI_SECURITY = 50,
+NF_IP_PRI_NAT_SRC = 100,
+NF_IP_PRI_SELINUX_LAST = 225,
+NF_IP_PRI_CONNTRACK_HELPER = 300,
+NF_IP_PRI_CONNTRACK_CONFIRM = 2147483647,
+}
#[repr(C)]
#[derive(Copy, Clone)]
pub union __kernel_sockaddr_storage__bindgen_ty_1 {
@@ -1625,6 +2147,69 @@ pub union tcp_word_hdr {
pub hdr: tcphdr,
pub words: [__be32; 5usize],
}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union if_settings__bindgen_ty_1 {
+pub raw_hdlc: *mut raw_hdlc_proto,
+pub cisco: *mut cisco_proto,
+pub fr: *mut fr_proto,
+pub fr_pvc: *mut fr_proto_pvc,
+pub fr_pvc_info: *mut fr_proto_pvc_info,
+pub x25: *mut x25_hdlc_proto,
+pub sync: *mut sync_serial_settings,
+pub te1: *mut te1_settings,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union ifreq__bindgen_ty_1 {
+pub ifrn_name: [crate::ctypes::c_char; 16usize],
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union ifreq__bindgen_ty_2 {
+pub ifru_addr: sockaddr,
+pub ifru_dstaddr: sockaddr,
+pub ifru_broadaddr: sockaddr,
+pub ifru_netmask: sockaddr,
+pub ifru_hwaddr: sockaddr,
+pub ifru_flags: crate::ctypes::c_short,
+pub ifru_ivalue: crate::ctypes::c_int,
+pub ifru_mtu: crate::ctypes::c_int,
+pub ifru_map: ifmap,
+pub ifru_slave: [crate::ctypes::c_char; 16usize],
+pub ifru_newname: [crate::ctypes::c_char; 16usize],
+pub ifru_data: *mut crate::ctypes::c_void,
+pub ifru_settings: if_settings,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union ifconf__bindgen_ty_1 {
+pub ifcu_buf: *mut crate::ctypes::c_char,
+pub ifcu_req: *mut ifreq,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union nf_inet_addr {
+pub all: [__u32; 4usize],
+pub ip: __be32,
+pub ip6: [__be32; 4usize],
+pub in_: in_addr,
+pub in6: in6_addr,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union xt_entry_match__bindgen_ty_1 {
+pub user: xt_entry_match__bindgen_ty_1__bindgen_ty_1,
+pub kernel: xt_entry_match__bindgen_ty_1__bindgen_ty_2,
+pub match_size: __u16,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union xt_entry_target__bindgen_ty_1 {
+pub user: xt_entry_target__bindgen_ty_1__bindgen_ty_1,
+pub kernel: xt_entry_target__bindgen_ty_1__bindgen_ty_2,
+pub target_size: __u16,
+}
impl<Storage> __BindgenBitfieldUnit<Storage> {
#[inline]
pub const fn new(storage: Storage) -> Self {
@@ -2050,3 +2635,9 @@ tcpi_fastopen_client_fail as u64
__bindgen_bitfield_unit
}
}
+impl nf_inet_hooks {
+pub const NF_INET_INGRESS: nf_inet_hooks = nf_inet_hooks::NF_INET_NUMHOOKS;
+}
+impl nf_ip_hook_priorities {
+pub const NF_IP_PRI_LAST: nf_ip_hook_priorities = nf_ip_hook_priorities::NF_IP_PRI_CONNTRACK_CONFIRM;
+}
diff --git a/vendor/linux-raw-sys/src/sparc64/general.rs b/vendor/linux-raw-sys/src/sparc64/general.rs
index 770232eb7..3965c8a6f 100644
--- a/vendor/linux-raw-sys/src/sparc64/general.rs
+++ b/vendor/linux-raw-sys/src/sparc64/general.rs
@@ -1606,6 +1606,19 @@ pub const POLLRDBAND: u32 = 128;
pub const GRND_NONBLOCK: u32 = 1;
pub const GRND_RANDOM: u32 = 2;
pub const GRND_INSECURE: u32 = 4;
+pub const LINUX_REBOOT_MAGIC1: u32 = 4276215469;
+pub const LINUX_REBOOT_MAGIC2: u32 = 672274793;
+pub const LINUX_REBOOT_MAGIC2A: u32 = 85072278;
+pub const LINUX_REBOOT_MAGIC2B: u32 = 369367448;
+pub const LINUX_REBOOT_MAGIC2C: u32 = 537993216;
+pub const LINUX_REBOOT_CMD_RESTART: u32 = 19088743;
+pub const LINUX_REBOOT_CMD_HALT: u32 = 3454992675;
+pub const LINUX_REBOOT_CMD_CAD_ON: u32 = 2309737967;
+pub const LINUX_REBOOT_CMD_CAD_OFF: u32 = 0;
+pub const LINUX_REBOOT_CMD_POWER_OFF: u32 = 1126301404;
+pub const LINUX_REBOOT_CMD_RESTART2: u32 = 2712847316;
+pub const LINUX_REBOOT_CMD_SW_SUSPEND: u32 = 3489725666;
+pub const LINUX_REBOOT_CMD_KEXEC: u32 = 1163412803;
pub const ITIMER_REAL: u32 = 0;
pub const ITIMER_VIRTUAL: u32 = 1;
pub const ITIMER_PROF: u32 = 2;
diff --git a/vendor/linux-raw-sys/src/sparc64/net.rs b/vendor/linux-raw-sys/src/sparc64/net.rs
index 9a8975418..6a9395bca 100644
--- a/vendor/linux-raw-sys/src/sparc64/net.rs
+++ b/vendor/linux-raw-sys/src/sparc64/net.rs
@@ -482,6 +482,255 @@ pub __storage: __kernel_sockaddr_storage,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
+pub struct sync_serial_settings {
+pub clock_rate: crate::ctypes::c_uint,
+pub clock_type: crate::ctypes::c_uint,
+pub loopback: crate::ctypes::c_ushort,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct te1_settings {
+pub clock_rate: crate::ctypes::c_uint,
+pub clock_type: crate::ctypes::c_uint,
+pub loopback: crate::ctypes::c_ushort,
+pub slot_map: crate::ctypes::c_uint,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct raw_hdlc_proto {
+pub encoding: crate::ctypes::c_ushort,
+pub parity: crate::ctypes::c_ushort,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct fr_proto {
+pub t391: crate::ctypes::c_uint,
+pub t392: crate::ctypes::c_uint,
+pub n391: crate::ctypes::c_uint,
+pub n392: crate::ctypes::c_uint,
+pub n393: crate::ctypes::c_uint,
+pub lmi: crate::ctypes::c_ushort,
+pub dce: crate::ctypes::c_ushort,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct fr_proto_pvc {
+pub dlci: crate::ctypes::c_uint,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct fr_proto_pvc_info {
+pub dlci: crate::ctypes::c_uint,
+pub master: [crate::ctypes::c_char; 16usize],
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct cisco_proto {
+pub interval: crate::ctypes::c_uint,
+pub timeout: crate::ctypes::c_uint,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct x25_hdlc_proto {
+pub dce: crate::ctypes::c_ushort,
+pub modulo: crate::ctypes::c_uint,
+pub window: crate::ctypes::c_uint,
+pub t1: crate::ctypes::c_uint,
+pub t2: crate::ctypes::c_uint,
+pub n2: crate::ctypes::c_uint,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct ifmap {
+pub mem_start: crate::ctypes::c_ulong,
+pub mem_end: crate::ctypes::c_ulong,
+pub base_addr: crate::ctypes::c_ushort,
+pub irq: crate::ctypes::c_uchar,
+pub dma: crate::ctypes::c_uchar,
+pub port: crate::ctypes::c_uchar,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub struct if_settings {
+pub type_: crate::ctypes::c_uint,
+pub size: crate::ctypes::c_uint,
+pub ifs_ifsu: if_settings__bindgen_ty_1,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub struct ifreq {
+pub ifr_ifrn: ifreq__bindgen_ty_1,
+pub ifr_ifru: ifreq__bindgen_ty_2,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub struct ifconf {
+pub ifc_len: crate::ctypes::c_int,
+pub ifc_ifcu: ifconf__bindgen_ty_1,
+}
+#[repr(C)]
+pub struct xt_entry_match {
+pub u: xt_entry_match__bindgen_ty_1,
+pub data: __IncompleteArrayField<crate::ctypes::c_uchar>,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_entry_match__bindgen_ty_1__bindgen_ty_1 {
+pub match_size: __u16,
+pub name: [crate::ctypes::c_char; 29usize],
+pub revision: __u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_entry_match__bindgen_ty_1__bindgen_ty_2 {
+pub match_size: __u16,
+pub match_: *mut xt_match,
+}
+#[repr(C)]
+pub struct xt_entry_target {
+pub u: xt_entry_target__bindgen_ty_1,
+pub data: __IncompleteArrayField<crate::ctypes::c_uchar>,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_entry_target__bindgen_ty_1__bindgen_ty_1 {
+pub target_size: __u16,
+pub name: [crate::ctypes::c_char; 29usize],
+pub revision: __u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_entry_target__bindgen_ty_1__bindgen_ty_2 {
+pub target_size: __u16,
+pub target: *mut xt_target,
+}
+#[repr(C)]
+pub struct xt_standard_target {
+pub target: xt_entry_target,
+pub verdict: crate::ctypes::c_int,
+}
+#[repr(C)]
+pub struct xt_error_target {
+pub target: xt_entry_target,
+pub errorname: [crate::ctypes::c_char; 30usize],
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_get_revision {
+pub name: [crate::ctypes::c_char; 29usize],
+pub revision: __u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct _xt_align {
+pub u8_: __u8,
+pub u16_: __u16,
+pub u32_: __u32,
+pub u64_: __u64,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_counters {
+pub pcnt: __u64,
+pub bcnt: __u64,
+}
+#[repr(C)]
+#[derive(Debug)]
+pub struct xt_counters_info {
+pub name: [crate::ctypes::c_char; 32usize],
+pub num_counters: crate::ctypes::c_uint,
+pub counters: __IncompleteArrayField<xt_counters>,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_tcp {
+pub spts: [__u16; 2usize],
+pub dpts: [__u16; 2usize],
+pub option: __u8,
+pub flg_mask: __u8,
+pub flg_cmp: __u8,
+pub invflags: __u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_udp {
+pub spts: [__u16; 2usize],
+pub dpts: [__u16; 2usize],
+pub invflags: __u8,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub struct ip6t_ip6 {
+pub src: in6_addr,
+pub dst: in6_addr,
+pub smsk: in6_addr,
+pub dmsk: in6_addr,
+pub iniface: [crate::ctypes::c_char; 16usize],
+pub outiface: [crate::ctypes::c_char; 16usize],
+pub iniface_mask: [crate::ctypes::c_uchar; 16usize],
+pub outiface_mask: [crate::ctypes::c_uchar; 16usize],
+pub proto: __u16,
+pub tos: __u8,
+pub flags: __u8,
+pub invflags: __u8,
+}
+#[repr(C)]
+pub struct ip6t_entry {
+pub ipv6: ip6t_ip6,
+pub nfcache: crate::ctypes::c_uint,
+pub target_offset: __u16,
+pub next_offset: __u16,
+pub comefrom: crate::ctypes::c_uint,
+pub counters: xt_counters,
+pub elems: __IncompleteArrayField<crate::ctypes::c_uchar>,
+}
+#[repr(C)]
+pub struct ip6t_standard {
+pub entry: ip6t_entry,
+pub target: xt_standard_target,
+}
+#[repr(C)]
+pub struct ip6t_error {
+pub entry: ip6t_entry,
+pub target: xt_error_target,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct ip6t_icmp {
+pub type_: __u8,
+pub code: [__u8; 2usize],
+pub invflags: __u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct ip6t_getinfo {
+pub name: [crate::ctypes::c_char; 32usize],
+pub valid_hooks: crate::ctypes::c_uint,
+pub hook_entry: [crate::ctypes::c_uint; 5usize],
+pub underflow: [crate::ctypes::c_uint; 5usize],
+pub num_entries: crate::ctypes::c_uint,
+pub size: crate::ctypes::c_uint,
+}
+#[repr(C)]
+pub struct ip6t_replace {
+pub name: [crate::ctypes::c_char; 32usize],
+pub valid_hooks: crate::ctypes::c_uint,
+pub num_entries: crate::ctypes::c_uint,
+pub size: crate::ctypes::c_uint,
+pub hook_entry: [crate::ctypes::c_uint; 5usize],
+pub underflow: [crate::ctypes::c_uint; 5usize],
+pub num_counters: crate::ctypes::c_uint,
+pub counters: *mut xt_counters,
+pub entries: __IncompleteArrayField<ip6t_entry>,
+}
+#[repr(C)]
+pub struct ip6t_get_entries {
+pub name: [crate::ctypes::c_char; 32usize],
+pub size: crate::ctypes::c_uint,
+pub entrytable: __IncompleteArrayField<ip6t_entry>,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
pub struct linger {
pub l_onoff: crate::ctypes::c_int,
pub l_linger: crate::ctypes::c_int,
@@ -519,6 +768,16 @@ pub msg_len: crate::ctypes::c_uint,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
+pub struct xt_match {
+pub _address: u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_target {
+pub _address: u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
pub struct iovec {
pub _address: u8,
}
@@ -1157,6 +1416,135 @@ pub const TCP_MD5SIG_FLAG_PREFIX: u32 = 1;
pub const TCP_MD5SIG_FLAG_IFINDEX: u32 = 2;
pub const TCP_RECEIVE_ZEROCOPY_FLAG_TLB_CLEAN_HINT: u32 = 1;
pub const UNIX_PATH_MAX: u32 = 108;
+pub const IFNAMSIZ: u32 = 16;
+pub const IFALIASZ: u32 = 256;
+pub const ALTIFNAMSIZ: u32 = 128;
+pub const GENERIC_HDLC_VERSION: u32 = 4;
+pub const CLOCK_DEFAULT: u32 = 0;
+pub const CLOCK_EXT: u32 = 1;
+pub const CLOCK_INT: u32 = 2;
+pub const CLOCK_TXINT: u32 = 3;
+pub const CLOCK_TXFROMRX: u32 = 4;
+pub const ENCODING_DEFAULT: u32 = 0;
+pub const ENCODING_NRZ: u32 = 1;
+pub const ENCODING_NRZI: u32 = 2;
+pub const ENCODING_FM_MARK: u32 = 3;
+pub const ENCODING_FM_SPACE: u32 = 4;
+pub const ENCODING_MANCHESTER: u32 = 5;
+pub const PARITY_DEFAULT: u32 = 0;
+pub const PARITY_NONE: u32 = 1;
+pub const PARITY_CRC16_PR0: u32 = 2;
+pub const PARITY_CRC16_PR1: u32 = 3;
+pub const PARITY_CRC16_PR0_CCITT: u32 = 4;
+pub const PARITY_CRC16_PR1_CCITT: u32 = 5;
+pub const PARITY_CRC32_PR0_CCITT: u32 = 6;
+pub const PARITY_CRC32_PR1_CCITT: u32 = 7;
+pub const LMI_DEFAULT: u32 = 0;
+pub const LMI_NONE: u32 = 1;
+pub const LMI_ANSI: u32 = 2;
+pub const LMI_CCITT: u32 = 3;
+pub const LMI_CISCO: u32 = 4;
+pub const IF_GET_IFACE: u32 = 1;
+pub const IF_GET_PROTO: u32 = 2;
+pub const IF_IFACE_V35: u32 = 4096;
+pub const IF_IFACE_V24: u32 = 4097;
+pub const IF_IFACE_X21: u32 = 4098;
+pub const IF_IFACE_T1: u32 = 4099;
+pub const IF_IFACE_E1: u32 = 4100;
+pub const IF_IFACE_SYNC_SERIAL: u32 = 4101;
+pub const IF_IFACE_X21D: u32 = 4102;
+pub const IF_PROTO_HDLC: u32 = 8192;
+pub const IF_PROTO_PPP: u32 = 8193;
+pub const IF_PROTO_CISCO: u32 = 8194;
+pub const IF_PROTO_FR: u32 = 8195;
+pub const IF_PROTO_FR_ADD_PVC: u32 = 8196;
+pub const IF_PROTO_FR_DEL_PVC: u32 = 8197;
+pub const IF_PROTO_X25: u32 = 8198;
+pub const IF_PROTO_HDLC_ETH: u32 = 8199;
+pub const IF_PROTO_FR_ADD_ETH_PVC: u32 = 8200;
+pub const IF_PROTO_FR_DEL_ETH_PVC: u32 = 8201;
+pub const IF_PROTO_FR_PVC: u32 = 8202;
+pub const IF_PROTO_FR_ETH_PVC: u32 = 8203;
+pub const IF_PROTO_RAW: u32 = 8204;
+pub const IFHWADDRLEN: u32 = 6;
+pub const NF_DROP: u32 = 0;
+pub const NF_ACCEPT: u32 = 1;
+pub const NF_STOLEN: u32 = 2;
+pub const NF_QUEUE: u32 = 3;
+pub const NF_REPEAT: u32 = 4;
+pub const NF_STOP: u32 = 5;
+pub const NF_MAX_VERDICT: u32 = 5;
+pub const NF_VERDICT_MASK: u32 = 255;
+pub const NF_VERDICT_FLAG_QUEUE_BYPASS: u32 = 32768;
+pub const NF_VERDICT_QMASK: u32 = 4294901760;
+pub const NF_VERDICT_QBITS: u32 = 16;
+pub const NF_VERDICT_BITS: u32 = 16;
+pub const NF_IP6_PRE_ROUTING: u32 = 0;
+pub const NF_IP6_LOCAL_IN: u32 = 1;
+pub const NF_IP6_FORWARD: u32 = 2;
+pub const NF_IP6_LOCAL_OUT: u32 = 3;
+pub const NF_IP6_POST_ROUTING: u32 = 4;
+pub const NF_IP6_NUMHOOKS: u32 = 5;
+pub const XT_FUNCTION_MAXNAMELEN: u32 = 30;
+pub const XT_EXTENSION_MAXNAMELEN: u32 = 29;
+pub const XT_TABLE_MAXNAMELEN: u32 = 32;
+pub const XT_CONTINUE: u32 = 4294967295;
+pub const XT_RETURN: i32 = -5;
+pub const XT_STANDARD_TARGET: &[u8; 1] = b"\0";
+pub const XT_ERROR_TARGET: &[u8; 6] = b"ERROR\0";
+pub const XT_INV_PROTO: u32 = 64;
+pub const IP6T_FUNCTION_MAXNAMELEN: u32 = 30;
+pub const IP6T_TABLE_MAXNAMELEN: u32 = 32;
+pub const IP6T_CONTINUE: u32 = 4294967295;
+pub const IP6T_RETURN: i32 = -5;
+pub const XT_TCP_INV_SRCPT: u32 = 1;
+pub const XT_TCP_INV_DSTPT: u32 = 2;
+pub const XT_TCP_INV_FLAGS: u32 = 4;
+pub const XT_TCP_INV_OPTION: u32 = 8;
+pub const XT_TCP_INV_MASK: u32 = 15;
+pub const XT_UDP_INV_SRCPT: u32 = 1;
+pub const XT_UDP_INV_DSTPT: u32 = 2;
+pub const XT_UDP_INV_MASK: u32 = 3;
+pub const IP6T_TCP_INV_SRCPT: u32 = 1;
+pub const IP6T_TCP_INV_DSTPT: u32 = 2;
+pub const IP6T_TCP_INV_FLAGS: u32 = 4;
+pub const IP6T_TCP_INV_OPTION: u32 = 8;
+pub const IP6T_TCP_INV_MASK: u32 = 15;
+pub const IP6T_UDP_INV_SRCPT: u32 = 1;
+pub const IP6T_UDP_INV_DSTPT: u32 = 2;
+pub const IP6T_UDP_INV_MASK: u32 = 3;
+pub const IP6T_STANDARD_TARGET: &[u8; 1] = b"\0";
+pub const IP6T_ERROR_TARGET: &[u8; 6] = b"ERROR\0";
+pub const IP6T_F_PROTO: u32 = 1;
+pub const IP6T_F_TOS: u32 = 2;
+pub const IP6T_F_GOTO: u32 = 4;
+pub const IP6T_F_MASK: u32 = 7;
+pub const IP6T_INV_VIA_IN: u32 = 1;
+pub const IP6T_INV_VIA_OUT: u32 = 2;
+pub const IP6T_INV_TOS: u32 = 4;
+pub const IP6T_INV_SRCIP: u32 = 8;
+pub const IP6T_INV_DSTIP: u32 = 16;
+pub const IP6T_INV_FRAG: u32 = 32;
+pub const IP6T_INV_PROTO: u32 = 64;
+pub const IP6T_INV_MASK: u32 = 127;
+pub const IP6T_BASE_CTL: u32 = 64;
+pub const IP6T_SO_SET_REPLACE: u32 = 64;
+pub const IP6T_SO_SET_ADD_COUNTERS: u32 = 65;
+pub const IP6T_SO_SET_MAX: u32 = 65;
+pub const IP6T_SO_GET_INFO: u32 = 64;
+pub const IP6T_SO_GET_ENTRIES: u32 = 65;
+pub const IP6T_SO_GET_REVISION_MATCH: u32 = 68;
+pub const IP6T_SO_GET_REVISION_TARGET: u32 = 69;
+pub const IP6T_SO_GET_MAX: u32 = 69;
+pub const IP6T_SO_ORIGINAL_DST: u32 = 80;
+pub const IP6T_ICMP_INV: u32 = 1;
+pub const NF_IP_PRE_ROUTING: u32 = 0;
+pub const NF_IP_LOCAL_IN: u32 = 1;
+pub const NF_IP_FORWARD: u32 = 2;
+pub const NF_IP_LOCAL_OUT: u32 = 3;
+pub const NF_IP_POST_ROUTING: u32 = 4;
+pub const NF_IP_NUMHOOKS: u32 = 5;
+pub const SO_ORIGINAL_DST: u32 = 80;
pub const SHUT_RD: u32 = 0;
pub const SHUT_WR: u32 = 1;
pub const SHUT_RDWR: u32 = 2;
@@ -1385,6 +1773,25 @@ pub const TCP_NLA_BYTES_NOTSENT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_NO
pub const TCP_NLA_EDT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_EDT;
pub const TCP_NLA_TTL: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TTL;
pub const TCP_NLA_REHASH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REHASH;
+pub const IF_OPER_UNKNOWN: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_UNKNOWN;
+pub const IF_OPER_NOTPRESENT: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_NOTPRESENT;
+pub const IF_OPER_DOWN: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_DOWN;
+pub const IF_OPER_LOWERLAYERDOWN: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_LOWERLAYERDOWN;
+pub const IF_OPER_TESTING: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_TESTING;
+pub const IF_OPER_DORMANT: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_DORMANT;
+pub const IF_OPER_UP: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_UP;
+pub const IF_LINK_MODE_DEFAULT: _bindgen_ty_8 = _bindgen_ty_8::IF_LINK_MODE_DEFAULT;
+pub const IF_LINK_MODE_DORMANT: _bindgen_ty_8 = _bindgen_ty_8::IF_LINK_MODE_DORMANT;
+pub const IF_LINK_MODE_TESTING: _bindgen_ty_8 = _bindgen_ty_8::IF_LINK_MODE_TESTING;
+pub const NFPROTO_UNSPEC: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_UNSPEC;
+pub const NFPROTO_INET: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_INET;
+pub const NFPROTO_IPV4: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_IPV4;
+pub const NFPROTO_ARP: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_ARP;
+pub const NFPROTO_NETDEV: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_NETDEV;
+pub const NFPROTO_BRIDGE: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_BRIDGE;
+pub const NFPROTO_IPV6: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_IPV6;
+pub const NFPROTO_DECNET: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_DECNET;
+pub const NFPROTO_NUMPROTO: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_NUMPROTO;
#[repr(u32)]
#[non_exhaustive]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
@@ -1608,6 +2015,121 @@ TCP_NLA_EDT = 25,
TCP_NLA_TTL = 26,
TCP_NLA_REHASH = 27,
}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum net_device_flags {
+IFF_UP = 1,
+IFF_BROADCAST = 2,
+IFF_DEBUG = 4,
+IFF_LOOPBACK = 8,
+IFF_POINTOPOINT = 16,
+IFF_NOTRAILERS = 32,
+IFF_RUNNING = 64,
+IFF_NOARP = 128,
+IFF_PROMISC = 256,
+IFF_ALLMULTI = 512,
+IFF_MASTER = 1024,
+IFF_SLAVE = 2048,
+IFF_MULTICAST = 4096,
+IFF_PORTSEL = 8192,
+IFF_AUTOMEDIA = 16384,
+IFF_DYNAMIC = 32768,
+IFF_LOWER_UP = 65536,
+IFF_DORMANT = 131072,
+IFF_ECHO = 262144,
+}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum _bindgen_ty_7 {
+IF_OPER_UNKNOWN = 0,
+IF_OPER_NOTPRESENT = 1,
+IF_OPER_DOWN = 2,
+IF_OPER_LOWERLAYERDOWN = 3,
+IF_OPER_TESTING = 4,
+IF_OPER_DORMANT = 5,
+IF_OPER_UP = 6,
+}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum _bindgen_ty_8 {
+IF_LINK_MODE_DEFAULT = 0,
+IF_LINK_MODE_DORMANT = 1,
+IF_LINK_MODE_TESTING = 2,
+}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum nf_inet_hooks {
+NF_INET_PRE_ROUTING = 0,
+NF_INET_LOCAL_IN = 1,
+NF_INET_FORWARD = 2,
+NF_INET_LOCAL_OUT = 3,
+NF_INET_POST_ROUTING = 4,
+NF_INET_NUMHOOKS = 5,
+}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum nf_dev_hooks {
+NF_NETDEV_INGRESS = 0,
+NF_NETDEV_EGRESS = 1,
+NF_NETDEV_NUMHOOKS = 2,
+}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum _bindgen_ty_9 {
+NFPROTO_UNSPEC = 0,
+NFPROTO_INET = 1,
+NFPROTO_IPV4 = 2,
+NFPROTO_ARP = 3,
+NFPROTO_NETDEV = 5,
+NFPROTO_BRIDGE = 7,
+NFPROTO_IPV6 = 10,
+NFPROTO_DECNET = 12,
+NFPROTO_NUMPROTO = 13,
+}
+#[repr(i32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum nf_ip6_hook_priorities {
+NF_IP6_PRI_FIRST = -2147483648,
+NF_IP6_PRI_RAW_BEFORE_DEFRAG = -450,
+NF_IP6_PRI_CONNTRACK_DEFRAG = -400,
+NF_IP6_PRI_RAW = -300,
+NF_IP6_PRI_SELINUX_FIRST = -225,
+NF_IP6_PRI_CONNTRACK = -200,
+NF_IP6_PRI_MANGLE = -150,
+NF_IP6_PRI_NAT_DST = -100,
+NF_IP6_PRI_FILTER = 0,
+NF_IP6_PRI_SECURITY = 50,
+NF_IP6_PRI_NAT_SRC = 100,
+NF_IP6_PRI_SELINUX_LAST = 225,
+NF_IP6_PRI_CONNTRACK_HELPER = 300,
+NF_IP6_PRI_LAST = 2147483647,
+}
+#[repr(i32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum nf_ip_hook_priorities {
+NF_IP_PRI_FIRST = -2147483648,
+NF_IP_PRI_RAW_BEFORE_DEFRAG = -450,
+NF_IP_PRI_CONNTRACK_DEFRAG = -400,
+NF_IP_PRI_RAW = -300,
+NF_IP_PRI_SELINUX_FIRST = -225,
+NF_IP_PRI_CONNTRACK = -200,
+NF_IP_PRI_MANGLE = -150,
+NF_IP_PRI_NAT_DST = -100,
+NF_IP_PRI_FILTER = 0,
+NF_IP_PRI_SECURITY = 50,
+NF_IP_PRI_NAT_SRC = 100,
+NF_IP_PRI_SELINUX_LAST = 225,
+NF_IP_PRI_CONNTRACK_HELPER = 300,
+NF_IP_PRI_CONNTRACK_CONFIRM = 2147483647,
+}
#[repr(C)]
#[derive(Copy, Clone)]
pub union __kernel_sockaddr_storage__bindgen_ty_1 {
@@ -1639,6 +2161,69 @@ pub union tcp_word_hdr {
pub hdr: tcphdr,
pub words: [__be32; 5usize],
}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union if_settings__bindgen_ty_1 {
+pub raw_hdlc: *mut raw_hdlc_proto,
+pub cisco: *mut cisco_proto,
+pub fr: *mut fr_proto,
+pub fr_pvc: *mut fr_proto_pvc,
+pub fr_pvc_info: *mut fr_proto_pvc_info,
+pub x25: *mut x25_hdlc_proto,
+pub sync: *mut sync_serial_settings,
+pub te1: *mut te1_settings,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union ifreq__bindgen_ty_1 {
+pub ifrn_name: [crate::ctypes::c_char; 16usize],
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union ifreq__bindgen_ty_2 {
+pub ifru_addr: sockaddr,
+pub ifru_dstaddr: sockaddr,
+pub ifru_broadaddr: sockaddr,
+pub ifru_netmask: sockaddr,
+pub ifru_hwaddr: sockaddr,
+pub ifru_flags: crate::ctypes::c_short,
+pub ifru_ivalue: crate::ctypes::c_int,
+pub ifru_mtu: crate::ctypes::c_int,
+pub ifru_map: ifmap,
+pub ifru_slave: [crate::ctypes::c_char; 16usize],
+pub ifru_newname: [crate::ctypes::c_char; 16usize],
+pub ifru_data: *mut crate::ctypes::c_void,
+pub ifru_settings: if_settings,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union ifconf__bindgen_ty_1 {
+pub ifcu_buf: *mut crate::ctypes::c_char,
+pub ifcu_req: *mut ifreq,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union nf_inet_addr {
+pub all: [__u32; 4usize],
+pub ip: __be32,
+pub ip6: [__be32; 4usize],
+pub in_: in_addr,
+pub in6: in6_addr,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union xt_entry_match__bindgen_ty_1 {
+pub user: xt_entry_match__bindgen_ty_1__bindgen_ty_1,
+pub kernel: xt_entry_match__bindgen_ty_1__bindgen_ty_2,
+pub match_size: __u16,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union xt_entry_target__bindgen_ty_1 {
+pub user: xt_entry_target__bindgen_ty_1__bindgen_ty_1,
+pub kernel: xt_entry_target__bindgen_ty_1__bindgen_ty_2,
+pub target_size: __u16,
+}
impl<Storage> __BindgenBitfieldUnit<Storage> {
#[inline]
pub const fn new(storage: Storage) -> Self {
@@ -2064,3 +2649,9 @@ tcpi_fastopen_client_fail as u64
__bindgen_bitfield_unit
}
}
+impl nf_inet_hooks {
+pub const NF_INET_INGRESS: nf_inet_hooks = nf_inet_hooks::NF_INET_NUMHOOKS;
+}
+impl nf_ip_hook_priorities {
+pub const NF_IP_PRI_LAST: nf_ip_hook_priorities = nf_ip_hook_priorities::NF_IP_PRI_CONNTRACK_CONFIRM;
+}
diff --git a/vendor/linux-raw-sys/src/x32/general.rs b/vendor/linux-raw-sys/src/x32/general.rs
index c23588f13..9eb612884 100644
--- a/vendor/linux-raw-sys/src/x32/general.rs
+++ b/vendor/linux-raw-sys/src/x32/general.rs
@@ -1582,6 +1582,19 @@ pub const POLLRDHUP: u32 = 8192;
pub const GRND_NONBLOCK: u32 = 1;
pub const GRND_RANDOM: u32 = 2;
pub const GRND_INSECURE: u32 = 4;
+pub const LINUX_REBOOT_MAGIC1: u32 = 4276215469;
+pub const LINUX_REBOOT_MAGIC2: u32 = 672274793;
+pub const LINUX_REBOOT_MAGIC2A: u32 = 85072278;
+pub const LINUX_REBOOT_MAGIC2B: u32 = 369367448;
+pub const LINUX_REBOOT_MAGIC2C: u32 = 537993216;
+pub const LINUX_REBOOT_CMD_RESTART: u32 = 19088743;
+pub const LINUX_REBOOT_CMD_HALT: u32 = 3454992675;
+pub const LINUX_REBOOT_CMD_CAD_ON: u32 = 2309737967;
+pub const LINUX_REBOOT_CMD_CAD_OFF: u32 = 0;
+pub const LINUX_REBOOT_CMD_POWER_OFF: u32 = 1126301404;
+pub const LINUX_REBOOT_CMD_RESTART2: u32 = 2712847316;
+pub const LINUX_REBOOT_CMD_SW_SUSPEND: u32 = 3489725666;
+pub const LINUX_REBOOT_CMD_KEXEC: u32 = 1163412803;
pub const ITIMER_REAL: u32 = 0;
pub const ITIMER_VIRTUAL: u32 = 1;
pub const ITIMER_PROF: u32 = 2;
diff --git a/vendor/linux-raw-sys/src/x32/net.rs b/vendor/linux-raw-sys/src/x32/net.rs
index d48dfc269..e01e29ca5 100644
--- a/vendor/linux-raw-sys/src/x32/net.rs
+++ b/vendor/linux-raw-sys/src/x32/net.rs
@@ -476,6 +476,255 @@ pub __storage: __kernel_sockaddr_storage,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
+pub struct sync_serial_settings {
+pub clock_rate: crate::ctypes::c_uint,
+pub clock_type: crate::ctypes::c_uint,
+pub loopback: crate::ctypes::c_ushort,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct te1_settings {
+pub clock_rate: crate::ctypes::c_uint,
+pub clock_type: crate::ctypes::c_uint,
+pub loopback: crate::ctypes::c_ushort,
+pub slot_map: crate::ctypes::c_uint,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct raw_hdlc_proto {
+pub encoding: crate::ctypes::c_ushort,
+pub parity: crate::ctypes::c_ushort,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct fr_proto {
+pub t391: crate::ctypes::c_uint,
+pub t392: crate::ctypes::c_uint,
+pub n391: crate::ctypes::c_uint,
+pub n392: crate::ctypes::c_uint,
+pub n393: crate::ctypes::c_uint,
+pub lmi: crate::ctypes::c_ushort,
+pub dce: crate::ctypes::c_ushort,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct fr_proto_pvc {
+pub dlci: crate::ctypes::c_uint,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct fr_proto_pvc_info {
+pub dlci: crate::ctypes::c_uint,
+pub master: [crate::ctypes::c_char; 16usize],
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct cisco_proto {
+pub interval: crate::ctypes::c_uint,
+pub timeout: crate::ctypes::c_uint,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct x25_hdlc_proto {
+pub dce: crate::ctypes::c_ushort,
+pub modulo: crate::ctypes::c_uint,
+pub window: crate::ctypes::c_uint,
+pub t1: crate::ctypes::c_uint,
+pub t2: crate::ctypes::c_uint,
+pub n2: crate::ctypes::c_uint,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct ifmap {
+pub mem_start: crate::ctypes::c_ulong,
+pub mem_end: crate::ctypes::c_ulong,
+pub base_addr: crate::ctypes::c_ushort,
+pub irq: crate::ctypes::c_uchar,
+pub dma: crate::ctypes::c_uchar,
+pub port: crate::ctypes::c_uchar,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub struct if_settings {
+pub type_: crate::ctypes::c_uint,
+pub size: crate::ctypes::c_uint,
+pub ifs_ifsu: if_settings__bindgen_ty_1,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub struct ifreq {
+pub ifr_ifrn: ifreq__bindgen_ty_1,
+pub ifr_ifru: ifreq__bindgen_ty_2,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub struct ifconf {
+pub ifc_len: crate::ctypes::c_int,
+pub ifc_ifcu: ifconf__bindgen_ty_1,
+}
+#[repr(C)]
+pub struct xt_entry_match {
+pub u: xt_entry_match__bindgen_ty_1,
+pub data: __IncompleteArrayField<crate::ctypes::c_uchar>,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_entry_match__bindgen_ty_1__bindgen_ty_1 {
+pub match_size: __u16,
+pub name: [crate::ctypes::c_char; 29usize],
+pub revision: __u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_entry_match__bindgen_ty_1__bindgen_ty_2 {
+pub match_size: __u16,
+pub match_: *mut xt_match,
+}
+#[repr(C)]
+pub struct xt_entry_target {
+pub u: xt_entry_target__bindgen_ty_1,
+pub data: __IncompleteArrayField<crate::ctypes::c_uchar>,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_entry_target__bindgen_ty_1__bindgen_ty_1 {
+pub target_size: __u16,
+pub name: [crate::ctypes::c_char; 29usize],
+pub revision: __u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_entry_target__bindgen_ty_1__bindgen_ty_2 {
+pub target_size: __u16,
+pub target: *mut xt_target,
+}
+#[repr(C)]
+pub struct xt_standard_target {
+pub target: xt_entry_target,
+pub verdict: crate::ctypes::c_int,
+}
+#[repr(C)]
+pub struct xt_error_target {
+pub target: xt_entry_target,
+pub errorname: [crate::ctypes::c_char; 30usize],
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_get_revision {
+pub name: [crate::ctypes::c_char; 29usize],
+pub revision: __u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct _xt_align {
+pub u8_: __u8,
+pub u16_: __u16,
+pub u32_: __u32,
+pub u64_: __u64,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_counters {
+pub pcnt: __u64,
+pub bcnt: __u64,
+}
+#[repr(C)]
+#[derive(Debug)]
+pub struct xt_counters_info {
+pub name: [crate::ctypes::c_char; 32usize],
+pub num_counters: crate::ctypes::c_uint,
+pub counters: __IncompleteArrayField<xt_counters>,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_tcp {
+pub spts: [__u16; 2usize],
+pub dpts: [__u16; 2usize],
+pub option: __u8,
+pub flg_mask: __u8,
+pub flg_cmp: __u8,
+pub invflags: __u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_udp {
+pub spts: [__u16; 2usize],
+pub dpts: [__u16; 2usize],
+pub invflags: __u8,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub struct ip6t_ip6 {
+pub src: in6_addr,
+pub dst: in6_addr,
+pub smsk: in6_addr,
+pub dmsk: in6_addr,
+pub iniface: [crate::ctypes::c_char; 16usize],
+pub outiface: [crate::ctypes::c_char; 16usize],
+pub iniface_mask: [crate::ctypes::c_uchar; 16usize],
+pub outiface_mask: [crate::ctypes::c_uchar; 16usize],
+pub proto: __u16,
+pub tos: __u8,
+pub flags: __u8,
+pub invflags: __u8,
+}
+#[repr(C)]
+pub struct ip6t_entry {
+pub ipv6: ip6t_ip6,
+pub nfcache: crate::ctypes::c_uint,
+pub target_offset: __u16,
+pub next_offset: __u16,
+pub comefrom: crate::ctypes::c_uint,
+pub counters: xt_counters,
+pub elems: __IncompleteArrayField<crate::ctypes::c_uchar>,
+}
+#[repr(C)]
+pub struct ip6t_standard {
+pub entry: ip6t_entry,
+pub target: xt_standard_target,
+}
+#[repr(C)]
+pub struct ip6t_error {
+pub entry: ip6t_entry,
+pub target: xt_error_target,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct ip6t_icmp {
+pub type_: __u8,
+pub code: [__u8; 2usize],
+pub invflags: __u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct ip6t_getinfo {
+pub name: [crate::ctypes::c_char; 32usize],
+pub valid_hooks: crate::ctypes::c_uint,
+pub hook_entry: [crate::ctypes::c_uint; 5usize],
+pub underflow: [crate::ctypes::c_uint; 5usize],
+pub num_entries: crate::ctypes::c_uint,
+pub size: crate::ctypes::c_uint,
+}
+#[repr(C)]
+pub struct ip6t_replace {
+pub name: [crate::ctypes::c_char; 32usize],
+pub valid_hooks: crate::ctypes::c_uint,
+pub num_entries: crate::ctypes::c_uint,
+pub size: crate::ctypes::c_uint,
+pub hook_entry: [crate::ctypes::c_uint; 5usize],
+pub underflow: [crate::ctypes::c_uint; 5usize],
+pub num_counters: crate::ctypes::c_uint,
+pub counters: *mut xt_counters,
+pub entries: __IncompleteArrayField<ip6t_entry>,
+}
+#[repr(C)]
+pub struct ip6t_get_entries {
+pub name: [crate::ctypes::c_char; 32usize],
+pub size: crate::ctypes::c_uint,
+pub entrytable: __IncompleteArrayField<ip6t_entry>,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
pub struct linger {
pub l_onoff: crate::ctypes::c_int,
pub l_linger: crate::ctypes::c_int,
@@ -513,6 +762,16 @@ pub msg_len: crate::ctypes::c_uint,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
+pub struct xt_match {
+pub _address: u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_target {
+pub _address: u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
pub struct iovec {
pub _address: u8,
}
@@ -935,6 +1194,135 @@ pub const TCP_MD5SIG_FLAG_PREFIX: u32 = 1;
pub const TCP_MD5SIG_FLAG_IFINDEX: u32 = 2;
pub const TCP_RECEIVE_ZEROCOPY_FLAG_TLB_CLEAN_HINT: u32 = 1;
pub const UNIX_PATH_MAX: u32 = 108;
+pub const IFNAMSIZ: u32 = 16;
+pub const IFALIASZ: u32 = 256;
+pub const ALTIFNAMSIZ: u32 = 128;
+pub const GENERIC_HDLC_VERSION: u32 = 4;
+pub const CLOCK_DEFAULT: u32 = 0;
+pub const CLOCK_EXT: u32 = 1;
+pub const CLOCK_INT: u32 = 2;
+pub const CLOCK_TXINT: u32 = 3;
+pub const CLOCK_TXFROMRX: u32 = 4;
+pub const ENCODING_DEFAULT: u32 = 0;
+pub const ENCODING_NRZ: u32 = 1;
+pub const ENCODING_NRZI: u32 = 2;
+pub const ENCODING_FM_MARK: u32 = 3;
+pub const ENCODING_FM_SPACE: u32 = 4;
+pub const ENCODING_MANCHESTER: u32 = 5;
+pub const PARITY_DEFAULT: u32 = 0;
+pub const PARITY_NONE: u32 = 1;
+pub const PARITY_CRC16_PR0: u32 = 2;
+pub const PARITY_CRC16_PR1: u32 = 3;
+pub const PARITY_CRC16_PR0_CCITT: u32 = 4;
+pub const PARITY_CRC16_PR1_CCITT: u32 = 5;
+pub const PARITY_CRC32_PR0_CCITT: u32 = 6;
+pub const PARITY_CRC32_PR1_CCITT: u32 = 7;
+pub const LMI_DEFAULT: u32 = 0;
+pub const LMI_NONE: u32 = 1;
+pub const LMI_ANSI: u32 = 2;
+pub const LMI_CCITT: u32 = 3;
+pub const LMI_CISCO: u32 = 4;
+pub const IF_GET_IFACE: u32 = 1;
+pub const IF_GET_PROTO: u32 = 2;
+pub const IF_IFACE_V35: u32 = 4096;
+pub const IF_IFACE_V24: u32 = 4097;
+pub const IF_IFACE_X21: u32 = 4098;
+pub const IF_IFACE_T1: u32 = 4099;
+pub const IF_IFACE_E1: u32 = 4100;
+pub const IF_IFACE_SYNC_SERIAL: u32 = 4101;
+pub const IF_IFACE_X21D: u32 = 4102;
+pub const IF_PROTO_HDLC: u32 = 8192;
+pub const IF_PROTO_PPP: u32 = 8193;
+pub const IF_PROTO_CISCO: u32 = 8194;
+pub const IF_PROTO_FR: u32 = 8195;
+pub const IF_PROTO_FR_ADD_PVC: u32 = 8196;
+pub const IF_PROTO_FR_DEL_PVC: u32 = 8197;
+pub const IF_PROTO_X25: u32 = 8198;
+pub const IF_PROTO_HDLC_ETH: u32 = 8199;
+pub const IF_PROTO_FR_ADD_ETH_PVC: u32 = 8200;
+pub const IF_PROTO_FR_DEL_ETH_PVC: u32 = 8201;
+pub const IF_PROTO_FR_PVC: u32 = 8202;
+pub const IF_PROTO_FR_ETH_PVC: u32 = 8203;
+pub const IF_PROTO_RAW: u32 = 8204;
+pub const IFHWADDRLEN: u32 = 6;
+pub const NF_DROP: u32 = 0;
+pub const NF_ACCEPT: u32 = 1;
+pub const NF_STOLEN: u32 = 2;
+pub const NF_QUEUE: u32 = 3;
+pub const NF_REPEAT: u32 = 4;
+pub const NF_STOP: u32 = 5;
+pub const NF_MAX_VERDICT: u32 = 5;
+pub const NF_VERDICT_MASK: u32 = 255;
+pub const NF_VERDICT_FLAG_QUEUE_BYPASS: u32 = 32768;
+pub const NF_VERDICT_QMASK: u32 = 4294901760;
+pub const NF_VERDICT_QBITS: u32 = 16;
+pub const NF_VERDICT_BITS: u32 = 16;
+pub const NF_IP6_PRE_ROUTING: u32 = 0;
+pub const NF_IP6_LOCAL_IN: u32 = 1;
+pub const NF_IP6_FORWARD: u32 = 2;
+pub const NF_IP6_LOCAL_OUT: u32 = 3;
+pub const NF_IP6_POST_ROUTING: u32 = 4;
+pub const NF_IP6_NUMHOOKS: u32 = 5;
+pub const XT_FUNCTION_MAXNAMELEN: u32 = 30;
+pub const XT_EXTENSION_MAXNAMELEN: u32 = 29;
+pub const XT_TABLE_MAXNAMELEN: u32 = 32;
+pub const XT_CONTINUE: u32 = 4294967295;
+pub const XT_RETURN: i32 = -5;
+pub const XT_STANDARD_TARGET: &[u8; 1] = b"\0";
+pub const XT_ERROR_TARGET: &[u8; 6] = b"ERROR\0";
+pub const XT_INV_PROTO: u32 = 64;
+pub const IP6T_FUNCTION_MAXNAMELEN: u32 = 30;
+pub const IP6T_TABLE_MAXNAMELEN: u32 = 32;
+pub const IP6T_CONTINUE: u32 = 4294967295;
+pub const IP6T_RETURN: i32 = -5;
+pub const XT_TCP_INV_SRCPT: u32 = 1;
+pub const XT_TCP_INV_DSTPT: u32 = 2;
+pub const XT_TCP_INV_FLAGS: u32 = 4;
+pub const XT_TCP_INV_OPTION: u32 = 8;
+pub const XT_TCP_INV_MASK: u32 = 15;
+pub const XT_UDP_INV_SRCPT: u32 = 1;
+pub const XT_UDP_INV_DSTPT: u32 = 2;
+pub const XT_UDP_INV_MASK: u32 = 3;
+pub const IP6T_TCP_INV_SRCPT: u32 = 1;
+pub const IP6T_TCP_INV_DSTPT: u32 = 2;
+pub const IP6T_TCP_INV_FLAGS: u32 = 4;
+pub const IP6T_TCP_INV_OPTION: u32 = 8;
+pub const IP6T_TCP_INV_MASK: u32 = 15;
+pub const IP6T_UDP_INV_SRCPT: u32 = 1;
+pub const IP6T_UDP_INV_DSTPT: u32 = 2;
+pub const IP6T_UDP_INV_MASK: u32 = 3;
+pub const IP6T_STANDARD_TARGET: &[u8; 1] = b"\0";
+pub const IP6T_ERROR_TARGET: &[u8; 6] = b"ERROR\0";
+pub const IP6T_F_PROTO: u32 = 1;
+pub const IP6T_F_TOS: u32 = 2;
+pub const IP6T_F_GOTO: u32 = 4;
+pub const IP6T_F_MASK: u32 = 7;
+pub const IP6T_INV_VIA_IN: u32 = 1;
+pub const IP6T_INV_VIA_OUT: u32 = 2;
+pub const IP6T_INV_TOS: u32 = 4;
+pub const IP6T_INV_SRCIP: u32 = 8;
+pub const IP6T_INV_DSTIP: u32 = 16;
+pub const IP6T_INV_FRAG: u32 = 32;
+pub const IP6T_INV_PROTO: u32 = 64;
+pub const IP6T_INV_MASK: u32 = 127;
+pub const IP6T_BASE_CTL: u32 = 64;
+pub const IP6T_SO_SET_REPLACE: u32 = 64;
+pub const IP6T_SO_SET_ADD_COUNTERS: u32 = 65;
+pub const IP6T_SO_SET_MAX: u32 = 65;
+pub const IP6T_SO_GET_INFO: u32 = 64;
+pub const IP6T_SO_GET_ENTRIES: u32 = 65;
+pub const IP6T_SO_GET_REVISION_MATCH: u32 = 68;
+pub const IP6T_SO_GET_REVISION_TARGET: u32 = 69;
+pub const IP6T_SO_GET_MAX: u32 = 69;
+pub const IP6T_SO_ORIGINAL_DST: u32 = 80;
+pub const IP6T_ICMP_INV: u32 = 1;
+pub const NF_IP_PRE_ROUTING: u32 = 0;
+pub const NF_IP_LOCAL_IN: u32 = 1;
+pub const NF_IP_FORWARD: u32 = 2;
+pub const NF_IP_LOCAL_OUT: u32 = 3;
+pub const NF_IP_POST_ROUTING: u32 = 4;
+pub const NF_IP_NUMHOOKS: u32 = 5;
+pub const SO_ORIGINAL_DST: u32 = 80;
pub const SHUT_RD: u32 = 0;
pub const SHUT_WR: u32 = 1;
pub const SHUT_RDWR: u32 = 2;
@@ -1163,6 +1551,25 @@ pub const TCP_NLA_BYTES_NOTSENT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_NO
pub const TCP_NLA_EDT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_EDT;
pub const TCP_NLA_TTL: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TTL;
pub const TCP_NLA_REHASH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REHASH;
+pub const IF_OPER_UNKNOWN: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_UNKNOWN;
+pub const IF_OPER_NOTPRESENT: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_NOTPRESENT;
+pub const IF_OPER_DOWN: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_DOWN;
+pub const IF_OPER_LOWERLAYERDOWN: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_LOWERLAYERDOWN;
+pub const IF_OPER_TESTING: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_TESTING;
+pub const IF_OPER_DORMANT: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_DORMANT;
+pub const IF_OPER_UP: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_UP;
+pub const IF_LINK_MODE_DEFAULT: _bindgen_ty_8 = _bindgen_ty_8::IF_LINK_MODE_DEFAULT;
+pub const IF_LINK_MODE_DORMANT: _bindgen_ty_8 = _bindgen_ty_8::IF_LINK_MODE_DORMANT;
+pub const IF_LINK_MODE_TESTING: _bindgen_ty_8 = _bindgen_ty_8::IF_LINK_MODE_TESTING;
+pub const NFPROTO_UNSPEC: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_UNSPEC;
+pub const NFPROTO_INET: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_INET;
+pub const NFPROTO_IPV4: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_IPV4;
+pub const NFPROTO_ARP: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_ARP;
+pub const NFPROTO_NETDEV: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_NETDEV;
+pub const NFPROTO_BRIDGE: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_BRIDGE;
+pub const NFPROTO_IPV6: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_IPV6;
+pub const NFPROTO_DECNET: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_DECNET;
+pub const NFPROTO_NUMPROTO: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_NUMPROTO;
#[repr(u32)]
#[non_exhaustive]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
@@ -1386,6 +1793,121 @@ TCP_NLA_EDT = 25,
TCP_NLA_TTL = 26,
TCP_NLA_REHASH = 27,
}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum net_device_flags {
+IFF_UP = 1,
+IFF_BROADCAST = 2,
+IFF_DEBUG = 4,
+IFF_LOOPBACK = 8,
+IFF_POINTOPOINT = 16,
+IFF_NOTRAILERS = 32,
+IFF_RUNNING = 64,
+IFF_NOARP = 128,
+IFF_PROMISC = 256,
+IFF_ALLMULTI = 512,
+IFF_MASTER = 1024,
+IFF_SLAVE = 2048,
+IFF_MULTICAST = 4096,
+IFF_PORTSEL = 8192,
+IFF_AUTOMEDIA = 16384,
+IFF_DYNAMIC = 32768,
+IFF_LOWER_UP = 65536,
+IFF_DORMANT = 131072,
+IFF_ECHO = 262144,
+}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum _bindgen_ty_7 {
+IF_OPER_UNKNOWN = 0,
+IF_OPER_NOTPRESENT = 1,
+IF_OPER_DOWN = 2,
+IF_OPER_LOWERLAYERDOWN = 3,
+IF_OPER_TESTING = 4,
+IF_OPER_DORMANT = 5,
+IF_OPER_UP = 6,
+}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum _bindgen_ty_8 {
+IF_LINK_MODE_DEFAULT = 0,
+IF_LINK_MODE_DORMANT = 1,
+IF_LINK_MODE_TESTING = 2,
+}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum nf_inet_hooks {
+NF_INET_PRE_ROUTING = 0,
+NF_INET_LOCAL_IN = 1,
+NF_INET_FORWARD = 2,
+NF_INET_LOCAL_OUT = 3,
+NF_INET_POST_ROUTING = 4,
+NF_INET_NUMHOOKS = 5,
+}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum nf_dev_hooks {
+NF_NETDEV_INGRESS = 0,
+NF_NETDEV_EGRESS = 1,
+NF_NETDEV_NUMHOOKS = 2,
+}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum _bindgen_ty_9 {
+NFPROTO_UNSPEC = 0,
+NFPROTO_INET = 1,
+NFPROTO_IPV4 = 2,
+NFPROTO_ARP = 3,
+NFPROTO_NETDEV = 5,
+NFPROTO_BRIDGE = 7,
+NFPROTO_IPV6 = 10,
+NFPROTO_DECNET = 12,
+NFPROTO_NUMPROTO = 13,
+}
+#[repr(i32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum nf_ip6_hook_priorities {
+NF_IP6_PRI_FIRST = -2147483648,
+NF_IP6_PRI_RAW_BEFORE_DEFRAG = -450,
+NF_IP6_PRI_CONNTRACK_DEFRAG = -400,
+NF_IP6_PRI_RAW = -300,
+NF_IP6_PRI_SELINUX_FIRST = -225,
+NF_IP6_PRI_CONNTRACK = -200,
+NF_IP6_PRI_MANGLE = -150,
+NF_IP6_PRI_NAT_DST = -100,
+NF_IP6_PRI_FILTER = 0,
+NF_IP6_PRI_SECURITY = 50,
+NF_IP6_PRI_NAT_SRC = 100,
+NF_IP6_PRI_SELINUX_LAST = 225,
+NF_IP6_PRI_CONNTRACK_HELPER = 300,
+NF_IP6_PRI_LAST = 2147483647,
+}
+#[repr(i32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum nf_ip_hook_priorities {
+NF_IP_PRI_FIRST = -2147483648,
+NF_IP_PRI_RAW_BEFORE_DEFRAG = -450,
+NF_IP_PRI_CONNTRACK_DEFRAG = -400,
+NF_IP_PRI_RAW = -300,
+NF_IP_PRI_SELINUX_FIRST = -225,
+NF_IP_PRI_CONNTRACK = -200,
+NF_IP_PRI_MANGLE = -150,
+NF_IP_PRI_NAT_DST = -100,
+NF_IP_PRI_FILTER = 0,
+NF_IP_PRI_SECURITY = 50,
+NF_IP_PRI_NAT_SRC = 100,
+NF_IP_PRI_SELINUX_LAST = 225,
+NF_IP_PRI_CONNTRACK_HELPER = 300,
+NF_IP_PRI_CONNTRACK_CONFIRM = 2147483647,
+}
#[repr(C)]
#[derive(Copy, Clone)]
pub union __kernel_sockaddr_storage__bindgen_ty_1 {
@@ -1417,6 +1939,69 @@ pub union tcp_word_hdr {
pub hdr: tcphdr,
pub words: [__be32; 5usize],
}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union if_settings__bindgen_ty_1 {
+pub raw_hdlc: *mut raw_hdlc_proto,
+pub cisco: *mut cisco_proto,
+pub fr: *mut fr_proto,
+pub fr_pvc: *mut fr_proto_pvc,
+pub fr_pvc_info: *mut fr_proto_pvc_info,
+pub x25: *mut x25_hdlc_proto,
+pub sync: *mut sync_serial_settings,
+pub te1: *mut te1_settings,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union ifreq__bindgen_ty_1 {
+pub ifrn_name: [crate::ctypes::c_char; 16usize],
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union ifreq__bindgen_ty_2 {
+pub ifru_addr: sockaddr,
+pub ifru_dstaddr: sockaddr,
+pub ifru_broadaddr: sockaddr,
+pub ifru_netmask: sockaddr,
+pub ifru_hwaddr: sockaddr,
+pub ifru_flags: crate::ctypes::c_short,
+pub ifru_ivalue: crate::ctypes::c_int,
+pub ifru_mtu: crate::ctypes::c_int,
+pub ifru_map: ifmap,
+pub ifru_slave: [crate::ctypes::c_char; 16usize],
+pub ifru_newname: [crate::ctypes::c_char; 16usize],
+pub ifru_data: *mut crate::ctypes::c_void,
+pub ifru_settings: if_settings,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union ifconf__bindgen_ty_1 {
+pub ifcu_buf: *mut crate::ctypes::c_char,
+pub ifcu_req: *mut ifreq,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union nf_inet_addr {
+pub all: [__u32; 4usize],
+pub ip: __be32,
+pub ip6: [__be32; 4usize],
+pub in_: in_addr,
+pub in6: in6_addr,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union xt_entry_match__bindgen_ty_1 {
+pub user: xt_entry_match__bindgen_ty_1__bindgen_ty_1,
+pub kernel: xt_entry_match__bindgen_ty_1__bindgen_ty_2,
+pub match_size: __u16,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union xt_entry_target__bindgen_ty_1 {
+pub user: xt_entry_target__bindgen_ty_1__bindgen_ty_1,
+pub kernel: xt_entry_target__bindgen_ty_1__bindgen_ty_2,
+pub target_size: __u16,
+}
impl<Storage> __BindgenBitfieldUnit<Storage> {
#[inline]
pub const fn new(storage: Storage) -> Self {
@@ -1842,3 +2427,9 @@ tcpi_fastopen_client_fail as u64
__bindgen_bitfield_unit
}
}
+impl nf_inet_hooks {
+pub const NF_INET_INGRESS: nf_inet_hooks = nf_inet_hooks::NF_INET_NUMHOOKS;
+}
+impl nf_ip_hook_priorities {
+pub const NF_IP_PRI_LAST: nf_ip_hook_priorities = nf_ip_hook_priorities::NF_IP_PRI_CONNTRACK_CONFIRM;
+}
diff --git a/vendor/linux-raw-sys/src/x86/general.rs b/vendor/linux-raw-sys/src/x86/general.rs
index 68bc4ab4d..17b34b1ae 100644
--- a/vendor/linux-raw-sys/src/x86/general.rs
+++ b/vendor/linux-raw-sys/src/x86/general.rs
@@ -1605,6 +1605,19 @@ pub const POLLRDHUP: u32 = 8192;
pub const GRND_NONBLOCK: u32 = 1;
pub const GRND_RANDOM: u32 = 2;
pub const GRND_INSECURE: u32 = 4;
+pub const LINUX_REBOOT_MAGIC1: u32 = 4276215469;
+pub const LINUX_REBOOT_MAGIC2: u32 = 672274793;
+pub const LINUX_REBOOT_MAGIC2A: u32 = 85072278;
+pub const LINUX_REBOOT_MAGIC2B: u32 = 369367448;
+pub const LINUX_REBOOT_MAGIC2C: u32 = 537993216;
+pub const LINUX_REBOOT_CMD_RESTART: u32 = 19088743;
+pub const LINUX_REBOOT_CMD_HALT: u32 = 3454992675;
+pub const LINUX_REBOOT_CMD_CAD_ON: u32 = 2309737967;
+pub const LINUX_REBOOT_CMD_CAD_OFF: u32 = 0;
+pub const LINUX_REBOOT_CMD_POWER_OFF: u32 = 1126301404;
+pub const LINUX_REBOOT_CMD_RESTART2: u32 = 2712847316;
+pub const LINUX_REBOOT_CMD_SW_SUSPEND: u32 = 3489725666;
+pub const LINUX_REBOOT_CMD_KEXEC: u32 = 1163412803;
pub const ITIMER_REAL: u32 = 0;
pub const ITIMER_VIRTUAL: u32 = 1;
pub const ITIMER_PROF: u32 = 2;
diff --git a/vendor/linux-raw-sys/src/x86/net.rs b/vendor/linux-raw-sys/src/x86/net.rs
index 86228098f..77c92c318 100644
--- a/vendor/linux-raw-sys/src/x86/net.rs
+++ b/vendor/linux-raw-sys/src/x86/net.rs
@@ -476,6 +476,255 @@ pub __storage: __kernel_sockaddr_storage,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
+pub struct sync_serial_settings {
+pub clock_rate: crate::ctypes::c_uint,
+pub clock_type: crate::ctypes::c_uint,
+pub loopback: crate::ctypes::c_ushort,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct te1_settings {
+pub clock_rate: crate::ctypes::c_uint,
+pub clock_type: crate::ctypes::c_uint,
+pub loopback: crate::ctypes::c_ushort,
+pub slot_map: crate::ctypes::c_uint,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct raw_hdlc_proto {
+pub encoding: crate::ctypes::c_ushort,
+pub parity: crate::ctypes::c_ushort,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct fr_proto {
+pub t391: crate::ctypes::c_uint,
+pub t392: crate::ctypes::c_uint,
+pub n391: crate::ctypes::c_uint,
+pub n392: crate::ctypes::c_uint,
+pub n393: crate::ctypes::c_uint,
+pub lmi: crate::ctypes::c_ushort,
+pub dce: crate::ctypes::c_ushort,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct fr_proto_pvc {
+pub dlci: crate::ctypes::c_uint,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct fr_proto_pvc_info {
+pub dlci: crate::ctypes::c_uint,
+pub master: [crate::ctypes::c_char; 16usize],
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct cisco_proto {
+pub interval: crate::ctypes::c_uint,
+pub timeout: crate::ctypes::c_uint,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct x25_hdlc_proto {
+pub dce: crate::ctypes::c_ushort,
+pub modulo: crate::ctypes::c_uint,
+pub window: crate::ctypes::c_uint,
+pub t1: crate::ctypes::c_uint,
+pub t2: crate::ctypes::c_uint,
+pub n2: crate::ctypes::c_uint,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct ifmap {
+pub mem_start: crate::ctypes::c_ulong,
+pub mem_end: crate::ctypes::c_ulong,
+pub base_addr: crate::ctypes::c_ushort,
+pub irq: crate::ctypes::c_uchar,
+pub dma: crate::ctypes::c_uchar,
+pub port: crate::ctypes::c_uchar,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub struct if_settings {
+pub type_: crate::ctypes::c_uint,
+pub size: crate::ctypes::c_uint,
+pub ifs_ifsu: if_settings__bindgen_ty_1,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub struct ifreq {
+pub ifr_ifrn: ifreq__bindgen_ty_1,
+pub ifr_ifru: ifreq__bindgen_ty_2,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub struct ifconf {
+pub ifc_len: crate::ctypes::c_int,
+pub ifc_ifcu: ifconf__bindgen_ty_1,
+}
+#[repr(C)]
+pub struct xt_entry_match {
+pub u: xt_entry_match__bindgen_ty_1,
+pub data: __IncompleteArrayField<crate::ctypes::c_uchar>,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_entry_match__bindgen_ty_1__bindgen_ty_1 {
+pub match_size: __u16,
+pub name: [crate::ctypes::c_char; 29usize],
+pub revision: __u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_entry_match__bindgen_ty_1__bindgen_ty_2 {
+pub match_size: __u16,
+pub match_: *mut xt_match,
+}
+#[repr(C)]
+pub struct xt_entry_target {
+pub u: xt_entry_target__bindgen_ty_1,
+pub data: __IncompleteArrayField<crate::ctypes::c_uchar>,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_entry_target__bindgen_ty_1__bindgen_ty_1 {
+pub target_size: __u16,
+pub name: [crate::ctypes::c_char; 29usize],
+pub revision: __u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_entry_target__bindgen_ty_1__bindgen_ty_2 {
+pub target_size: __u16,
+pub target: *mut xt_target,
+}
+#[repr(C)]
+pub struct xt_standard_target {
+pub target: xt_entry_target,
+pub verdict: crate::ctypes::c_int,
+}
+#[repr(C)]
+pub struct xt_error_target {
+pub target: xt_entry_target,
+pub errorname: [crate::ctypes::c_char; 30usize],
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_get_revision {
+pub name: [crate::ctypes::c_char; 29usize],
+pub revision: __u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct _xt_align {
+pub u8_: __u8,
+pub u16_: __u16,
+pub u32_: __u32,
+pub u64_: __u64,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_counters {
+pub pcnt: __u64,
+pub bcnt: __u64,
+}
+#[repr(C)]
+#[derive(Debug)]
+pub struct xt_counters_info {
+pub name: [crate::ctypes::c_char; 32usize],
+pub num_counters: crate::ctypes::c_uint,
+pub counters: __IncompleteArrayField<xt_counters>,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_tcp {
+pub spts: [__u16; 2usize],
+pub dpts: [__u16; 2usize],
+pub option: __u8,
+pub flg_mask: __u8,
+pub flg_cmp: __u8,
+pub invflags: __u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_udp {
+pub spts: [__u16; 2usize],
+pub dpts: [__u16; 2usize],
+pub invflags: __u8,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub struct ip6t_ip6 {
+pub src: in6_addr,
+pub dst: in6_addr,
+pub smsk: in6_addr,
+pub dmsk: in6_addr,
+pub iniface: [crate::ctypes::c_char; 16usize],
+pub outiface: [crate::ctypes::c_char; 16usize],
+pub iniface_mask: [crate::ctypes::c_uchar; 16usize],
+pub outiface_mask: [crate::ctypes::c_uchar; 16usize],
+pub proto: __u16,
+pub tos: __u8,
+pub flags: __u8,
+pub invflags: __u8,
+}
+#[repr(C)]
+pub struct ip6t_entry {
+pub ipv6: ip6t_ip6,
+pub nfcache: crate::ctypes::c_uint,
+pub target_offset: __u16,
+pub next_offset: __u16,
+pub comefrom: crate::ctypes::c_uint,
+pub counters: xt_counters,
+pub elems: __IncompleteArrayField<crate::ctypes::c_uchar>,
+}
+#[repr(C)]
+pub struct ip6t_standard {
+pub entry: ip6t_entry,
+pub target: xt_standard_target,
+}
+#[repr(C)]
+pub struct ip6t_error {
+pub entry: ip6t_entry,
+pub target: xt_error_target,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct ip6t_icmp {
+pub type_: __u8,
+pub code: [__u8; 2usize],
+pub invflags: __u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct ip6t_getinfo {
+pub name: [crate::ctypes::c_char; 32usize],
+pub valid_hooks: crate::ctypes::c_uint,
+pub hook_entry: [crate::ctypes::c_uint; 5usize],
+pub underflow: [crate::ctypes::c_uint; 5usize],
+pub num_entries: crate::ctypes::c_uint,
+pub size: crate::ctypes::c_uint,
+}
+#[repr(C)]
+pub struct ip6t_replace {
+pub name: [crate::ctypes::c_char; 32usize],
+pub valid_hooks: crate::ctypes::c_uint,
+pub num_entries: crate::ctypes::c_uint,
+pub size: crate::ctypes::c_uint,
+pub hook_entry: [crate::ctypes::c_uint; 5usize],
+pub underflow: [crate::ctypes::c_uint; 5usize],
+pub num_counters: crate::ctypes::c_uint,
+pub counters: *mut xt_counters,
+pub entries: __IncompleteArrayField<ip6t_entry>,
+}
+#[repr(C)]
+pub struct ip6t_get_entries {
+pub name: [crate::ctypes::c_char; 32usize],
+pub size: crate::ctypes::c_uint,
+pub entrytable: __IncompleteArrayField<ip6t_entry>,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
pub struct linger {
pub l_onoff: crate::ctypes::c_int,
pub l_linger: crate::ctypes::c_int,
@@ -513,6 +762,16 @@ pub msg_len: crate::ctypes::c_uint,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
+pub struct xt_match {
+pub _address: u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_target {
+pub _address: u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
pub struct iovec {
pub _address: u8,
}
@@ -927,6 +1186,135 @@ pub const TCP_MD5SIG_FLAG_PREFIX: u32 = 1;
pub const TCP_MD5SIG_FLAG_IFINDEX: u32 = 2;
pub const TCP_RECEIVE_ZEROCOPY_FLAG_TLB_CLEAN_HINT: u32 = 1;
pub const UNIX_PATH_MAX: u32 = 108;
+pub const IFNAMSIZ: u32 = 16;
+pub const IFALIASZ: u32 = 256;
+pub const ALTIFNAMSIZ: u32 = 128;
+pub const GENERIC_HDLC_VERSION: u32 = 4;
+pub const CLOCK_DEFAULT: u32 = 0;
+pub const CLOCK_EXT: u32 = 1;
+pub const CLOCK_INT: u32 = 2;
+pub const CLOCK_TXINT: u32 = 3;
+pub const CLOCK_TXFROMRX: u32 = 4;
+pub const ENCODING_DEFAULT: u32 = 0;
+pub const ENCODING_NRZ: u32 = 1;
+pub const ENCODING_NRZI: u32 = 2;
+pub const ENCODING_FM_MARK: u32 = 3;
+pub const ENCODING_FM_SPACE: u32 = 4;
+pub const ENCODING_MANCHESTER: u32 = 5;
+pub const PARITY_DEFAULT: u32 = 0;
+pub const PARITY_NONE: u32 = 1;
+pub const PARITY_CRC16_PR0: u32 = 2;
+pub const PARITY_CRC16_PR1: u32 = 3;
+pub const PARITY_CRC16_PR0_CCITT: u32 = 4;
+pub const PARITY_CRC16_PR1_CCITT: u32 = 5;
+pub const PARITY_CRC32_PR0_CCITT: u32 = 6;
+pub const PARITY_CRC32_PR1_CCITT: u32 = 7;
+pub const LMI_DEFAULT: u32 = 0;
+pub const LMI_NONE: u32 = 1;
+pub const LMI_ANSI: u32 = 2;
+pub const LMI_CCITT: u32 = 3;
+pub const LMI_CISCO: u32 = 4;
+pub const IF_GET_IFACE: u32 = 1;
+pub const IF_GET_PROTO: u32 = 2;
+pub const IF_IFACE_V35: u32 = 4096;
+pub const IF_IFACE_V24: u32 = 4097;
+pub const IF_IFACE_X21: u32 = 4098;
+pub const IF_IFACE_T1: u32 = 4099;
+pub const IF_IFACE_E1: u32 = 4100;
+pub const IF_IFACE_SYNC_SERIAL: u32 = 4101;
+pub const IF_IFACE_X21D: u32 = 4102;
+pub const IF_PROTO_HDLC: u32 = 8192;
+pub const IF_PROTO_PPP: u32 = 8193;
+pub const IF_PROTO_CISCO: u32 = 8194;
+pub const IF_PROTO_FR: u32 = 8195;
+pub const IF_PROTO_FR_ADD_PVC: u32 = 8196;
+pub const IF_PROTO_FR_DEL_PVC: u32 = 8197;
+pub const IF_PROTO_X25: u32 = 8198;
+pub const IF_PROTO_HDLC_ETH: u32 = 8199;
+pub const IF_PROTO_FR_ADD_ETH_PVC: u32 = 8200;
+pub const IF_PROTO_FR_DEL_ETH_PVC: u32 = 8201;
+pub const IF_PROTO_FR_PVC: u32 = 8202;
+pub const IF_PROTO_FR_ETH_PVC: u32 = 8203;
+pub const IF_PROTO_RAW: u32 = 8204;
+pub const IFHWADDRLEN: u32 = 6;
+pub const NF_DROP: u32 = 0;
+pub const NF_ACCEPT: u32 = 1;
+pub const NF_STOLEN: u32 = 2;
+pub const NF_QUEUE: u32 = 3;
+pub const NF_REPEAT: u32 = 4;
+pub const NF_STOP: u32 = 5;
+pub const NF_MAX_VERDICT: u32 = 5;
+pub const NF_VERDICT_MASK: u32 = 255;
+pub const NF_VERDICT_FLAG_QUEUE_BYPASS: u32 = 32768;
+pub const NF_VERDICT_QMASK: u32 = 4294901760;
+pub const NF_VERDICT_QBITS: u32 = 16;
+pub const NF_VERDICT_BITS: u32 = 16;
+pub const NF_IP6_PRE_ROUTING: u32 = 0;
+pub const NF_IP6_LOCAL_IN: u32 = 1;
+pub const NF_IP6_FORWARD: u32 = 2;
+pub const NF_IP6_LOCAL_OUT: u32 = 3;
+pub const NF_IP6_POST_ROUTING: u32 = 4;
+pub const NF_IP6_NUMHOOKS: u32 = 5;
+pub const XT_FUNCTION_MAXNAMELEN: u32 = 30;
+pub const XT_EXTENSION_MAXNAMELEN: u32 = 29;
+pub const XT_TABLE_MAXNAMELEN: u32 = 32;
+pub const XT_CONTINUE: u32 = 4294967295;
+pub const XT_RETURN: i32 = -5;
+pub const XT_STANDARD_TARGET: &[u8; 1] = b"\0";
+pub const XT_ERROR_TARGET: &[u8; 6] = b"ERROR\0";
+pub const XT_INV_PROTO: u32 = 64;
+pub const IP6T_FUNCTION_MAXNAMELEN: u32 = 30;
+pub const IP6T_TABLE_MAXNAMELEN: u32 = 32;
+pub const IP6T_CONTINUE: u32 = 4294967295;
+pub const IP6T_RETURN: i32 = -5;
+pub const XT_TCP_INV_SRCPT: u32 = 1;
+pub const XT_TCP_INV_DSTPT: u32 = 2;
+pub const XT_TCP_INV_FLAGS: u32 = 4;
+pub const XT_TCP_INV_OPTION: u32 = 8;
+pub const XT_TCP_INV_MASK: u32 = 15;
+pub const XT_UDP_INV_SRCPT: u32 = 1;
+pub const XT_UDP_INV_DSTPT: u32 = 2;
+pub const XT_UDP_INV_MASK: u32 = 3;
+pub const IP6T_TCP_INV_SRCPT: u32 = 1;
+pub const IP6T_TCP_INV_DSTPT: u32 = 2;
+pub const IP6T_TCP_INV_FLAGS: u32 = 4;
+pub const IP6T_TCP_INV_OPTION: u32 = 8;
+pub const IP6T_TCP_INV_MASK: u32 = 15;
+pub const IP6T_UDP_INV_SRCPT: u32 = 1;
+pub const IP6T_UDP_INV_DSTPT: u32 = 2;
+pub const IP6T_UDP_INV_MASK: u32 = 3;
+pub const IP6T_STANDARD_TARGET: &[u8; 1] = b"\0";
+pub const IP6T_ERROR_TARGET: &[u8; 6] = b"ERROR\0";
+pub const IP6T_F_PROTO: u32 = 1;
+pub const IP6T_F_TOS: u32 = 2;
+pub const IP6T_F_GOTO: u32 = 4;
+pub const IP6T_F_MASK: u32 = 7;
+pub const IP6T_INV_VIA_IN: u32 = 1;
+pub const IP6T_INV_VIA_OUT: u32 = 2;
+pub const IP6T_INV_TOS: u32 = 4;
+pub const IP6T_INV_SRCIP: u32 = 8;
+pub const IP6T_INV_DSTIP: u32 = 16;
+pub const IP6T_INV_FRAG: u32 = 32;
+pub const IP6T_INV_PROTO: u32 = 64;
+pub const IP6T_INV_MASK: u32 = 127;
+pub const IP6T_BASE_CTL: u32 = 64;
+pub const IP6T_SO_SET_REPLACE: u32 = 64;
+pub const IP6T_SO_SET_ADD_COUNTERS: u32 = 65;
+pub const IP6T_SO_SET_MAX: u32 = 65;
+pub const IP6T_SO_GET_INFO: u32 = 64;
+pub const IP6T_SO_GET_ENTRIES: u32 = 65;
+pub const IP6T_SO_GET_REVISION_MATCH: u32 = 68;
+pub const IP6T_SO_GET_REVISION_TARGET: u32 = 69;
+pub const IP6T_SO_GET_MAX: u32 = 69;
+pub const IP6T_SO_ORIGINAL_DST: u32 = 80;
+pub const IP6T_ICMP_INV: u32 = 1;
+pub const NF_IP_PRE_ROUTING: u32 = 0;
+pub const NF_IP_LOCAL_IN: u32 = 1;
+pub const NF_IP_FORWARD: u32 = 2;
+pub const NF_IP_LOCAL_OUT: u32 = 3;
+pub const NF_IP_POST_ROUTING: u32 = 4;
+pub const NF_IP_NUMHOOKS: u32 = 5;
+pub const SO_ORIGINAL_DST: u32 = 80;
pub const SHUT_RD: u32 = 0;
pub const SHUT_WR: u32 = 1;
pub const SHUT_RDWR: u32 = 2;
@@ -1155,6 +1543,25 @@ pub const TCP_NLA_BYTES_NOTSENT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_NO
pub const TCP_NLA_EDT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_EDT;
pub const TCP_NLA_TTL: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TTL;
pub const TCP_NLA_REHASH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REHASH;
+pub const IF_OPER_UNKNOWN: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_UNKNOWN;
+pub const IF_OPER_NOTPRESENT: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_NOTPRESENT;
+pub const IF_OPER_DOWN: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_DOWN;
+pub const IF_OPER_LOWERLAYERDOWN: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_LOWERLAYERDOWN;
+pub const IF_OPER_TESTING: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_TESTING;
+pub const IF_OPER_DORMANT: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_DORMANT;
+pub const IF_OPER_UP: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_UP;
+pub const IF_LINK_MODE_DEFAULT: _bindgen_ty_8 = _bindgen_ty_8::IF_LINK_MODE_DEFAULT;
+pub const IF_LINK_MODE_DORMANT: _bindgen_ty_8 = _bindgen_ty_8::IF_LINK_MODE_DORMANT;
+pub const IF_LINK_MODE_TESTING: _bindgen_ty_8 = _bindgen_ty_8::IF_LINK_MODE_TESTING;
+pub const NFPROTO_UNSPEC: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_UNSPEC;
+pub const NFPROTO_INET: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_INET;
+pub const NFPROTO_IPV4: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_IPV4;
+pub const NFPROTO_ARP: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_ARP;
+pub const NFPROTO_NETDEV: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_NETDEV;
+pub const NFPROTO_BRIDGE: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_BRIDGE;
+pub const NFPROTO_IPV6: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_IPV6;
+pub const NFPROTO_DECNET: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_DECNET;
+pub const NFPROTO_NUMPROTO: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_NUMPROTO;
#[repr(u32)]
#[non_exhaustive]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
@@ -1378,6 +1785,121 @@ TCP_NLA_EDT = 25,
TCP_NLA_TTL = 26,
TCP_NLA_REHASH = 27,
}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum net_device_flags {
+IFF_UP = 1,
+IFF_BROADCAST = 2,
+IFF_DEBUG = 4,
+IFF_LOOPBACK = 8,
+IFF_POINTOPOINT = 16,
+IFF_NOTRAILERS = 32,
+IFF_RUNNING = 64,
+IFF_NOARP = 128,
+IFF_PROMISC = 256,
+IFF_ALLMULTI = 512,
+IFF_MASTER = 1024,
+IFF_SLAVE = 2048,
+IFF_MULTICAST = 4096,
+IFF_PORTSEL = 8192,
+IFF_AUTOMEDIA = 16384,
+IFF_DYNAMIC = 32768,
+IFF_LOWER_UP = 65536,
+IFF_DORMANT = 131072,
+IFF_ECHO = 262144,
+}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum _bindgen_ty_7 {
+IF_OPER_UNKNOWN = 0,
+IF_OPER_NOTPRESENT = 1,
+IF_OPER_DOWN = 2,
+IF_OPER_LOWERLAYERDOWN = 3,
+IF_OPER_TESTING = 4,
+IF_OPER_DORMANT = 5,
+IF_OPER_UP = 6,
+}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum _bindgen_ty_8 {
+IF_LINK_MODE_DEFAULT = 0,
+IF_LINK_MODE_DORMANT = 1,
+IF_LINK_MODE_TESTING = 2,
+}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum nf_inet_hooks {
+NF_INET_PRE_ROUTING = 0,
+NF_INET_LOCAL_IN = 1,
+NF_INET_FORWARD = 2,
+NF_INET_LOCAL_OUT = 3,
+NF_INET_POST_ROUTING = 4,
+NF_INET_NUMHOOKS = 5,
+}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum nf_dev_hooks {
+NF_NETDEV_INGRESS = 0,
+NF_NETDEV_EGRESS = 1,
+NF_NETDEV_NUMHOOKS = 2,
+}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum _bindgen_ty_9 {
+NFPROTO_UNSPEC = 0,
+NFPROTO_INET = 1,
+NFPROTO_IPV4 = 2,
+NFPROTO_ARP = 3,
+NFPROTO_NETDEV = 5,
+NFPROTO_BRIDGE = 7,
+NFPROTO_IPV6 = 10,
+NFPROTO_DECNET = 12,
+NFPROTO_NUMPROTO = 13,
+}
+#[repr(i32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum nf_ip6_hook_priorities {
+NF_IP6_PRI_FIRST = -2147483648,
+NF_IP6_PRI_RAW_BEFORE_DEFRAG = -450,
+NF_IP6_PRI_CONNTRACK_DEFRAG = -400,
+NF_IP6_PRI_RAW = -300,
+NF_IP6_PRI_SELINUX_FIRST = -225,
+NF_IP6_PRI_CONNTRACK = -200,
+NF_IP6_PRI_MANGLE = -150,
+NF_IP6_PRI_NAT_DST = -100,
+NF_IP6_PRI_FILTER = 0,
+NF_IP6_PRI_SECURITY = 50,
+NF_IP6_PRI_NAT_SRC = 100,
+NF_IP6_PRI_SELINUX_LAST = 225,
+NF_IP6_PRI_CONNTRACK_HELPER = 300,
+NF_IP6_PRI_LAST = 2147483647,
+}
+#[repr(i32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum nf_ip_hook_priorities {
+NF_IP_PRI_FIRST = -2147483648,
+NF_IP_PRI_RAW_BEFORE_DEFRAG = -450,
+NF_IP_PRI_CONNTRACK_DEFRAG = -400,
+NF_IP_PRI_RAW = -300,
+NF_IP_PRI_SELINUX_FIRST = -225,
+NF_IP_PRI_CONNTRACK = -200,
+NF_IP_PRI_MANGLE = -150,
+NF_IP_PRI_NAT_DST = -100,
+NF_IP_PRI_FILTER = 0,
+NF_IP_PRI_SECURITY = 50,
+NF_IP_PRI_NAT_SRC = 100,
+NF_IP_PRI_SELINUX_LAST = 225,
+NF_IP_PRI_CONNTRACK_HELPER = 300,
+NF_IP_PRI_CONNTRACK_CONFIRM = 2147483647,
+}
#[repr(C)]
#[derive(Copy, Clone)]
pub union __kernel_sockaddr_storage__bindgen_ty_1 {
@@ -1409,6 +1931,69 @@ pub union tcp_word_hdr {
pub hdr: tcphdr,
pub words: [__be32; 5usize],
}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union if_settings__bindgen_ty_1 {
+pub raw_hdlc: *mut raw_hdlc_proto,
+pub cisco: *mut cisco_proto,
+pub fr: *mut fr_proto,
+pub fr_pvc: *mut fr_proto_pvc,
+pub fr_pvc_info: *mut fr_proto_pvc_info,
+pub x25: *mut x25_hdlc_proto,
+pub sync: *mut sync_serial_settings,
+pub te1: *mut te1_settings,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union ifreq__bindgen_ty_1 {
+pub ifrn_name: [crate::ctypes::c_char; 16usize],
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union ifreq__bindgen_ty_2 {
+pub ifru_addr: sockaddr,
+pub ifru_dstaddr: sockaddr,
+pub ifru_broadaddr: sockaddr,
+pub ifru_netmask: sockaddr,
+pub ifru_hwaddr: sockaddr,
+pub ifru_flags: crate::ctypes::c_short,
+pub ifru_ivalue: crate::ctypes::c_int,
+pub ifru_mtu: crate::ctypes::c_int,
+pub ifru_map: ifmap,
+pub ifru_slave: [crate::ctypes::c_char; 16usize],
+pub ifru_newname: [crate::ctypes::c_char; 16usize],
+pub ifru_data: *mut crate::ctypes::c_void,
+pub ifru_settings: if_settings,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union ifconf__bindgen_ty_1 {
+pub ifcu_buf: *mut crate::ctypes::c_char,
+pub ifcu_req: *mut ifreq,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union nf_inet_addr {
+pub all: [__u32; 4usize],
+pub ip: __be32,
+pub ip6: [__be32; 4usize],
+pub in_: in_addr,
+pub in6: in6_addr,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union xt_entry_match__bindgen_ty_1 {
+pub user: xt_entry_match__bindgen_ty_1__bindgen_ty_1,
+pub kernel: xt_entry_match__bindgen_ty_1__bindgen_ty_2,
+pub match_size: __u16,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union xt_entry_target__bindgen_ty_1 {
+pub user: xt_entry_target__bindgen_ty_1__bindgen_ty_1,
+pub kernel: xt_entry_target__bindgen_ty_1__bindgen_ty_2,
+pub target_size: __u16,
+}
impl<Storage> __BindgenBitfieldUnit<Storage> {
#[inline]
pub const fn new(storage: Storage) -> Self {
@@ -1834,3 +2419,9 @@ tcpi_fastopen_client_fail as u64
__bindgen_bitfield_unit
}
}
+impl nf_inet_hooks {
+pub const NF_INET_INGRESS: nf_inet_hooks = nf_inet_hooks::NF_INET_NUMHOOKS;
+}
+impl nf_ip_hook_priorities {
+pub const NF_IP_PRI_LAST: nf_ip_hook_priorities = nf_ip_hook_priorities::NF_IP_PRI_CONNTRACK_CONFIRM;
+}
diff --git a/vendor/linux-raw-sys/src/x86_64/general.rs b/vendor/linux-raw-sys/src/x86_64/general.rs
index d33497c46..6c6fbe412 100644
--- a/vendor/linux-raw-sys/src/x86_64/general.rs
+++ b/vendor/linux-raw-sys/src/x86_64/general.rs
@@ -1577,6 +1577,19 @@ pub const POLLRDHUP: u32 = 8192;
pub const GRND_NONBLOCK: u32 = 1;
pub const GRND_RANDOM: u32 = 2;
pub const GRND_INSECURE: u32 = 4;
+pub const LINUX_REBOOT_MAGIC1: u32 = 4276215469;
+pub const LINUX_REBOOT_MAGIC2: u32 = 672274793;
+pub const LINUX_REBOOT_MAGIC2A: u32 = 85072278;
+pub const LINUX_REBOOT_MAGIC2B: u32 = 369367448;
+pub const LINUX_REBOOT_MAGIC2C: u32 = 537993216;
+pub const LINUX_REBOOT_CMD_RESTART: u32 = 19088743;
+pub const LINUX_REBOOT_CMD_HALT: u32 = 3454992675;
+pub const LINUX_REBOOT_CMD_CAD_ON: u32 = 2309737967;
+pub const LINUX_REBOOT_CMD_CAD_OFF: u32 = 0;
+pub const LINUX_REBOOT_CMD_POWER_OFF: u32 = 1126301404;
+pub const LINUX_REBOOT_CMD_RESTART2: u32 = 2712847316;
+pub const LINUX_REBOOT_CMD_SW_SUSPEND: u32 = 3489725666;
+pub const LINUX_REBOOT_CMD_KEXEC: u32 = 1163412803;
pub const ITIMER_REAL: u32 = 0;
pub const ITIMER_VIRTUAL: u32 = 1;
pub const ITIMER_PROF: u32 = 2;
diff --git a/vendor/linux-raw-sys/src/x86_64/net.rs b/vendor/linux-raw-sys/src/x86_64/net.rs
index 51e11c283..6e55068af 100644
--- a/vendor/linux-raw-sys/src/x86_64/net.rs
+++ b/vendor/linux-raw-sys/src/x86_64/net.rs
@@ -476,6 +476,255 @@ pub __storage: __kernel_sockaddr_storage,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
+pub struct sync_serial_settings {
+pub clock_rate: crate::ctypes::c_uint,
+pub clock_type: crate::ctypes::c_uint,
+pub loopback: crate::ctypes::c_ushort,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct te1_settings {
+pub clock_rate: crate::ctypes::c_uint,
+pub clock_type: crate::ctypes::c_uint,
+pub loopback: crate::ctypes::c_ushort,
+pub slot_map: crate::ctypes::c_uint,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct raw_hdlc_proto {
+pub encoding: crate::ctypes::c_ushort,
+pub parity: crate::ctypes::c_ushort,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct fr_proto {
+pub t391: crate::ctypes::c_uint,
+pub t392: crate::ctypes::c_uint,
+pub n391: crate::ctypes::c_uint,
+pub n392: crate::ctypes::c_uint,
+pub n393: crate::ctypes::c_uint,
+pub lmi: crate::ctypes::c_ushort,
+pub dce: crate::ctypes::c_ushort,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct fr_proto_pvc {
+pub dlci: crate::ctypes::c_uint,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct fr_proto_pvc_info {
+pub dlci: crate::ctypes::c_uint,
+pub master: [crate::ctypes::c_char; 16usize],
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct cisco_proto {
+pub interval: crate::ctypes::c_uint,
+pub timeout: crate::ctypes::c_uint,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct x25_hdlc_proto {
+pub dce: crate::ctypes::c_ushort,
+pub modulo: crate::ctypes::c_uint,
+pub window: crate::ctypes::c_uint,
+pub t1: crate::ctypes::c_uint,
+pub t2: crate::ctypes::c_uint,
+pub n2: crate::ctypes::c_uint,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct ifmap {
+pub mem_start: crate::ctypes::c_ulong,
+pub mem_end: crate::ctypes::c_ulong,
+pub base_addr: crate::ctypes::c_ushort,
+pub irq: crate::ctypes::c_uchar,
+pub dma: crate::ctypes::c_uchar,
+pub port: crate::ctypes::c_uchar,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub struct if_settings {
+pub type_: crate::ctypes::c_uint,
+pub size: crate::ctypes::c_uint,
+pub ifs_ifsu: if_settings__bindgen_ty_1,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub struct ifreq {
+pub ifr_ifrn: ifreq__bindgen_ty_1,
+pub ifr_ifru: ifreq__bindgen_ty_2,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub struct ifconf {
+pub ifc_len: crate::ctypes::c_int,
+pub ifc_ifcu: ifconf__bindgen_ty_1,
+}
+#[repr(C)]
+pub struct xt_entry_match {
+pub u: xt_entry_match__bindgen_ty_1,
+pub data: __IncompleteArrayField<crate::ctypes::c_uchar>,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_entry_match__bindgen_ty_1__bindgen_ty_1 {
+pub match_size: __u16,
+pub name: [crate::ctypes::c_char; 29usize],
+pub revision: __u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_entry_match__bindgen_ty_1__bindgen_ty_2 {
+pub match_size: __u16,
+pub match_: *mut xt_match,
+}
+#[repr(C)]
+pub struct xt_entry_target {
+pub u: xt_entry_target__bindgen_ty_1,
+pub data: __IncompleteArrayField<crate::ctypes::c_uchar>,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_entry_target__bindgen_ty_1__bindgen_ty_1 {
+pub target_size: __u16,
+pub name: [crate::ctypes::c_char; 29usize],
+pub revision: __u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_entry_target__bindgen_ty_1__bindgen_ty_2 {
+pub target_size: __u16,
+pub target: *mut xt_target,
+}
+#[repr(C)]
+pub struct xt_standard_target {
+pub target: xt_entry_target,
+pub verdict: crate::ctypes::c_int,
+}
+#[repr(C)]
+pub struct xt_error_target {
+pub target: xt_entry_target,
+pub errorname: [crate::ctypes::c_char; 30usize],
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_get_revision {
+pub name: [crate::ctypes::c_char; 29usize],
+pub revision: __u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct _xt_align {
+pub u8_: __u8,
+pub u16_: __u16,
+pub u32_: __u32,
+pub u64_: __u64,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_counters {
+pub pcnt: __u64,
+pub bcnt: __u64,
+}
+#[repr(C)]
+#[derive(Debug)]
+pub struct xt_counters_info {
+pub name: [crate::ctypes::c_char; 32usize],
+pub num_counters: crate::ctypes::c_uint,
+pub counters: __IncompleteArrayField<xt_counters>,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_tcp {
+pub spts: [__u16; 2usize],
+pub dpts: [__u16; 2usize],
+pub option: __u8,
+pub flg_mask: __u8,
+pub flg_cmp: __u8,
+pub invflags: __u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_udp {
+pub spts: [__u16; 2usize],
+pub dpts: [__u16; 2usize],
+pub invflags: __u8,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub struct ip6t_ip6 {
+pub src: in6_addr,
+pub dst: in6_addr,
+pub smsk: in6_addr,
+pub dmsk: in6_addr,
+pub iniface: [crate::ctypes::c_char; 16usize],
+pub outiface: [crate::ctypes::c_char; 16usize],
+pub iniface_mask: [crate::ctypes::c_uchar; 16usize],
+pub outiface_mask: [crate::ctypes::c_uchar; 16usize],
+pub proto: __u16,
+pub tos: __u8,
+pub flags: __u8,
+pub invflags: __u8,
+}
+#[repr(C)]
+pub struct ip6t_entry {
+pub ipv6: ip6t_ip6,
+pub nfcache: crate::ctypes::c_uint,
+pub target_offset: __u16,
+pub next_offset: __u16,
+pub comefrom: crate::ctypes::c_uint,
+pub counters: xt_counters,
+pub elems: __IncompleteArrayField<crate::ctypes::c_uchar>,
+}
+#[repr(C)]
+pub struct ip6t_standard {
+pub entry: ip6t_entry,
+pub target: xt_standard_target,
+}
+#[repr(C)]
+pub struct ip6t_error {
+pub entry: ip6t_entry,
+pub target: xt_error_target,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct ip6t_icmp {
+pub type_: __u8,
+pub code: [__u8; 2usize],
+pub invflags: __u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct ip6t_getinfo {
+pub name: [crate::ctypes::c_char; 32usize],
+pub valid_hooks: crate::ctypes::c_uint,
+pub hook_entry: [crate::ctypes::c_uint; 5usize],
+pub underflow: [crate::ctypes::c_uint; 5usize],
+pub num_entries: crate::ctypes::c_uint,
+pub size: crate::ctypes::c_uint,
+}
+#[repr(C)]
+pub struct ip6t_replace {
+pub name: [crate::ctypes::c_char; 32usize],
+pub valid_hooks: crate::ctypes::c_uint,
+pub num_entries: crate::ctypes::c_uint,
+pub size: crate::ctypes::c_uint,
+pub hook_entry: [crate::ctypes::c_uint; 5usize],
+pub underflow: [crate::ctypes::c_uint; 5usize],
+pub num_counters: crate::ctypes::c_uint,
+pub counters: *mut xt_counters,
+pub entries: __IncompleteArrayField<ip6t_entry>,
+}
+#[repr(C)]
+pub struct ip6t_get_entries {
+pub name: [crate::ctypes::c_char; 32usize],
+pub size: crate::ctypes::c_uint,
+pub entrytable: __IncompleteArrayField<ip6t_entry>,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
pub struct linger {
pub l_onoff: crate::ctypes::c_int,
pub l_linger: crate::ctypes::c_int,
@@ -513,6 +762,16 @@ pub msg_len: crate::ctypes::c_uint,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
+pub struct xt_match {
+pub _address: u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct xt_target {
+pub _address: u8,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
pub struct iovec {
pub _address: u8,
}
@@ -935,6 +1194,135 @@ pub const TCP_MD5SIG_FLAG_PREFIX: u32 = 1;
pub const TCP_MD5SIG_FLAG_IFINDEX: u32 = 2;
pub const TCP_RECEIVE_ZEROCOPY_FLAG_TLB_CLEAN_HINT: u32 = 1;
pub const UNIX_PATH_MAX: u32 = 108;
+pub const IFNAMSIZ: u32 = 16;
+pub const IFALIASZ: u32 = 256;
+pub const ALTIFNAMSIZ: u32 = 128;
+pub const GENERIC_HDLC_VERSION: u32 = 4;
+pub const CLOCK_DEFAULT: u32 = 0;
+pub const CLOCK_EXT: u32 = 1;
+pub const CLOCK_INT: u32 = 2;
+pub const CLOCK_TXINT: u32 = 3;
+pub const CLOCK_TXFROMRX: u32 = 4;
+pub const ENCODING_DEFAULT: u32 = 0;
+pub const ENCODING_NRZ: u32 = 1;
+pub const ENCODING_NRZI: u32 = 2;
+pub const ENCODING_FM_MARK: u32 = 3;
+pub const ENCODING_FM_SPACE: u32 = 4;
+pub const ENCODING_MANCHESTER: u32 = 5;
+pub const PARITY_DEFAULT: u32 = 0;
+pub const PARITY_NONE: u32 = 1;
+pub const PARITY_CRC16_PR0: u32 = 2;
+pub const PARITY_CRC16_PR1: u32 = 3;
+pub const PARITY_CRC16_PR0_CCITT: u32 = 4;
+pub const PARITY_CRC16_PR1_CCITT: u32 = 5;
+pub const PARITY_CRC32_PR0_CCITT: u32 = 6;
+pub const PARITY_CRC32_PR1_CCITT: u32 = 7;
+pub const LMI_DEFAULT: u32 = 0;
+pub const LMI_NONE: u32 = 1;
+pub const LMI_ANSI: u32 = 2;
+pub const LMI_CCITT: u32 = 3;
+pub const LMI_CISCO: u32 = 4;
+pub const IF_GET_IFACE: u32 = 1;
+pub const IF_GET_PROTO: u32 = 2;
+pub const IF_IFACE_V35: u32 = 4096;
+pub const IF_IFACE_V24: u32 = 4097;
+pub const IF_IFACE_X21: u32 = 4098;
+pub const IF_IFACE_T1: u32 = 4099;
+pub const IF_IFACE_E1: u32 = 4100;
+pub const IF_IFACE_SYNC_SERIAL: u32 = 4101;
+pub const IF_IFACE_X21D: u32 = 4102;
+pub const IF_PROTO_HDLC: u32 = 8192;
+pub const IF_PROTO_PPP: u32 = 8193;
+pub const IF_PROTO_CISCO: u32 = 8194;
+pub const IF_PROTO_FR: u32 = 8195;
+pub const IF_PROTO_FR_ADD_PVC: u32 = 8196;
+pub const IF_PROTO_FR_DEL_PVC: u32 = 8197;
+pub const IF_PROTO_X25: u32 = 8198;
+pub const IF_PROTO_HDLC_ETH: u32 = 8199;
+pub const IF_PROTO_FR_ADD_ETH_PVC: u32 = 8200;
+pub const IF_PROTO_FR_DEL_ETH_PVC: u32 = 8201;
+pub const IF_PROTO_FR_PVC: u32 = 8202;
+pub const IF_PROTO_FR_ETH_PVC: u32 = 8203;
+pub const IF_PROTO_RAW: u32 = 8204;
+pub const IFHWADDRLEN: u32 = 6;
+pub const NF_DROP: u32 = 0;
+pub const NF_ACCEPT: u32 = 1;
+pub const NF_STOLEN: u32 = 2;
+pub const NF_QUEUE: u32 = 3;
+pub const NF_REPEAT: u32 = 4;
+pub const NF_STOP: u32 = 5;
+pub const NF_MAX_VERDICT: u32 = 5;
+pub const NF_VERDICT_MASK: u32 = 255;
+pub const NF_VERDICT_FLAG_QUEUE_BYPASS: u32 = 32768;
+pub const NF_VERDICT_QMASK: u32 = 4294901760;
+pub const NF_VERDICT_QBITS: u32 = 16;
+pub const NF_VERDICT_BITS: u32 = 16;
+pub const NF_IP6_PRE_ROUTING: u32 = 0;
+pub const NF_IP6_LOCAL_IN: u32 = 1;
+pub const NF_IP6_FORWARD: u32 = 2;
+pub const NF_IP6_LOCAL_OUT: u32 = 3;
+pub const NF_IP6_POST_ROUTING: u32 = 4;
+pub const NF_IP6_NUMHOOKS: u32 = 5;
+pub const XT_FUNCTION_MAXNAMELEN: u32 = 30;
+pub const XT_EXTENSION_MAXNAMELEN: u32 = 29;
+pub const XT_TABLE_MAXNAMELEN: u32 = 32;
+pub const XT_CONTINUE: u32 = 4294967295;
+pub const XT_RETURN: i32 = -5;
+pub const XT_STANDARD_TARGET: &[u8; 1] = b"\0";
+pub const XT_ERROR_TARGET: &[u8; 6] = b"ERROR\0";
+pub const XT_INV_PROTO: u32 = 64;
+pub const IP6T_FUNCTION_MAXNAMELEN: u32 = 30;
+pub const IP6T_TABLE_MAXNAMELEN: u32 = 32;
+pub const IP6T_CONTINUE: u32 = 4294967295;
+pub const IP6T_RETURN: i32 = -5;
+pub const XT_TCP_INV_SRCPT: u32 = 1;
+pub const XT_TCP_INV_DSTPT: u32 = 2;
+pub const XT_TCP_INV_FLAGS: u32 = 4;
+pub const XT_TCP_INV_OPTION: u32 = 8;
+pub const XT_TCP_INV_MASK: u32 = 15;
+pub const XT_UDP_INV_SRCPT: u32 = 1;
+pub const XT_UDP_INV_DSTPT: u32 = 2;
+pub const XT_UDP_INV_MASK: u32 = 3;
+pub const IP6T_TCP_INV_SRCPT: u32 = 1;
+pub const IP6T_TCP_INV_DSTPT: u32 = 2;
+pub const IP6T_TCP_INV_FLAGS: u32 = 4;
+pub const IP6T_TCP_INV_OPTION: u32 = 8;
+pub const IP6T_TCP_INV_MASK: u32 = 15;
+pub const IP6T_UDP_INV_SRCPT: u32 = 1;
+pub const IP6T_UDP_INV_DSTPT: u32 = 2;
+pub const IP6T_UDP_INV_MASK: u32 = 3;
+pub const IP6T_STANDARD_TARGET: &[u8; 1] = b"\0";
+pub const IP6T_ERROR_TARGET: &[u8; 6] = b"ERROR\0";
+pub const IP6T_F_PROTO: u32 = 1;
+pub const IP6T_F_TOS: u32 = 2;
+pub const IP6T_F_GOTO: u32 = 4;
+pub const IP6T_F_MASK: u32 = 7;
+pub const IP6T_INV_VIA_IN: u32 = 1;
+pub const IP6T_INV_VIA_OUT: u32 = 2;
+pub const IP6T_INV_TOS: u32 = 4;
+pub const IP6T_INV_SRCIP: u32 = 8;
+pub const IP6T_INV_DSTIP: u32 = 16;
+pub const IP6T_INV_FRAG: u32 = 32;
+pub const IP6T_INV_PROTO: u32 = 64;
+pub const IP6T_INV_MASK: u32 = 127;
+pub const IP6T_BASE_CTL: u32 = 64;
+pub const IP6T_SO_SET_REPLACE: u32 = 64;
+pub const IP6T_SO_SET_ADD_COUNTERS: u32 = 65;
+pub const IP6T_SO_SET_MAX: u32 = 65;
+pub const IP6T_SO_GET_INFO: u32 = 64;
+pub const IP6T_SO_GET_ENTRIES: u32 = 65;
+pub const IP6T_SO_GET_REVISION_MATCH: u32 = 68;
+pub const IP6T_SO_GET_REVISION_TARGET: u32 = 69;
+pub const IP6T_SO_GET_MAX: u32 = 69;
+pub const IP6T_SO_ORIGINAL_DST: u32 = 80;
+pub const IP6T_ICMP_INV: u32 = 1;
+pub const NF_IP_PRE_ROUTING: u32 = 0;
+pub const NF_IP_LOCAL_IN: u32 = 1;
+pub const NF_IP_FORWARD: u32 = 2;
+pub const NF_IP_LOCAL_OUT: u32 = 3;
+pub const NF_IP_POST_ROUTING: u32 = 4;
+pub const NF_IP_NUMHOOKS: u32 = 5;
+pub const SO_ORIGINAL_DST: u32 = 80;
pub const SHUT_RD: u32 = 0;
pub const SHUT_WR: u32 = 1;
pub const SHUT_RDWR: u32 = 2;
@@ -1163,6 +1551,25 @@ pub const TCP_NLA_BYTES_NOTSENT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_NO
pub const TCP_NLA_EDT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_EDT;
pub const TCP_NLA_TTL: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TTL;
pub const TCP_NLA_REHASH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REHASH;
+pub const IF_OPER_UNKNOWN: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_UNKNOWN;
+pub const IF_OPER_NOTPRESENT: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_NOTPRESENT;
+pub const IF_OPER_DOWN: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_DOWN;
+pub const IF_OPER_LOWERLAYERDOWN: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_LOWERLAYERDOWN;
+pub const IF_OPER_TESTING: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_TESTING;
+pub const IF_OPER_DORMANT: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_DORMANT;
+pub const IF_OPER_UP: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_UP;
+pub const IF_LINK_MODE_DEFAULT: _bindgen_ty_8 = _bindgen_ty_8::IF_LINK_MODE_DEFAULT;
+pub const IF_LINK_MODE_DORMANT: _bindgen_ty_8 = _bindgen_ty_8::IF_LINK_MODE_DORMANT;
+pub const IF_LINK_MODE_TESTING: _bindgen_ty_8 = _bindgen_ty_8::IF_LINK_MODE_TESTING;
+pub const NFPROTO_UNSPEC: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_UNSPEC;
+pub const NFPROTO_INET: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_INET;
+pub const NFPROTO_IPV4: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_IPV4;
+pub const NFPROTO_ARP: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_ARP;
+pub const NFPROTO_NETDEV: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_NETDEV;
+pub const NFPROTO_BRIDGE: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_BRIDGE;
+pub const NFPROTO_IPV6: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_IPV6;
+pub const NFPROTO_DECNET: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_DECNET;
+pub const NFPROTO_NUMPROTO: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_NUMPROTO;
#[repr(u32)]
#[non_exhaustive]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
@@ -1386,6 +1793,121 @@ TCP_NLA_EDT = 25,
TCP_NLA_TTL = 26,
TCP_NLA_REHASH = 27,
}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum net_device_flags {
+IFF_UP = 1,
+IFF_BROADCAST = 2,
+IFF_DEBUG = 4,
+IFF_LOOPBACK = 8,
+IFF_POINTOPOINT = 16,
+IFF_NOTRAILERS = 32,
+IFF_RUNNING = 64,
+IFF_NOARP = 128,
+IFF_PROMISC = 256,
+IFF_ALLMULTI = 512,
+IFF_MASTER = 1024,
+IFF_SLAVE = 2048,
+IFF_MULTICAST = 4096,
+IFF_PORTSEL = 8192,
+IFF_AUTOMEDIA = 16384,
+IFF_DYNAMIC = 32768,
+IFF_LOWER_UP = 65536,
+IFF_DORMANT = 131072,
+IFF_ECHO = 262144,
+}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum _bindgen_ty_7 {
+IF_OPER_UNKNOWN = 0,
+IF_OPER_NOTPRESENT = 1,
+IF_OPER_DOWN = 2,
+IF_OPER_LOWERLAYERDOWN = 3,
+IF_OPER_TESTING = 4,
+IF_OPER_DORMANT = 5,
+IF_OPER_UP = 6,
+}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum _bindgen_ty_8 {
+IF_LINK_MODE_DEFAULT = 0,
+IF_LINK_MODE_DORMANT = 1,
+IF_LINK_MODE_TESTING = 2,
+}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum nf_inet_hooks {
+NF_INET_PRE_ROUTING = 0,
+NF_INET_LOCAL_IN = 1,
+NF_INET_FORWARD = 2,
+NF_INET_LOCAL_OUT = 3,
+NF_INET_POST_ROUTING = 4,
+NF_INET_NUMHOOKS = 5,
+}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum nf_dev_hooks {
+NF_NETDEV_INGRESS = 0,
+NF_NETDEV_EGRESS = 1,
+NF_NETDEV_NUMHOOKS = 2,
+}
+#[repr(u32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum _bindgen_ty_9 {
+NFPROTO_UNSPEC = 0,
+NFPROTO_INET = 1,
+NFPROTO_IPV4 = 2,
+NFPROTO_ARP = 3,
+NFPROTO_NETDEV = 5,
+NFPROTO_BRIDGE = 7,
+NFPROTO_IPV6 = 10,
+NFPROTO_DECNET = 12,
+NFPROTO_NUMPROTO = 13,
+}
+#[repr(i32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum nf_ip6_hook_priorities {
+NF_IP6_PRI_FIRST = -2147483648,
+NF_IP6_PRI_RAW_BEFORE_DEFRAG = -450,
+NF_IP6_PRI_CONNTRACK_DEFRAG = -400,
+NF_IP6_PRI_RAW = -300,
+NF_IP6_PRI_SELINUX_FIRST = -225,
+NF_IP6_PRI_CONNTRACK = -200,
+NF_IP6_PRI_MANGLE = -150,
+NF_IP6_PRI_NAT_DST = -100,
+NF_IP6_PRI_FILTER = 0,
+NF_IP6_PRI_SECURITY = 50,
+NF_IP6_PRI_NAT_SRC = 100,
+NF_IP6_PRI_SELINUX_LAST = 225,
+NF_IP6_PRI_CONNTRACK_HELPER = 300,
+NF_IP6_PRI_LAST = 2147483647,
+}
+#[repr(i32)]
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum nf_ip_hook_priorities {
+NF_IP_PRI_FIRST = -2147483648,
+NF_IP_PRI_RAW_BEFORE_DEFRAG = -450,
+NF_IP_PRI_CONNTRACK_DEFRAG = -400,
+NF_IP_PRI_RAW = -300,
+NF_IP_PRI_SELINUX_FIRST = -225,
+NF_IP_PRI_CONNTRACK = -200,
+NF_IP_PRI_MANGLE = -150,
+NF_IP_PRI_NAT_DST = -100,
+NF_IP_PRI_FILTER = 0,
+NF_IP_PRI_SECURITY = 50,
+NF_IP_PRI_NAT_SRC = 100,
+NF_IP_PRI_SELINUX_LAST = 225,
+NF_IP_PRI_CONNTRACK_HELPER = 300,
+NF_IP_PRI_CONNTRACK_CONFIRM = 2147483647,
+}
#[repr(C)]
#[derive(Copy, Clone)]
pub union __kernel_sockaddr_storage__bindgen_ty_1 {
@@ -1417,6 +1939,69 @@ pub union tcp_word_hdr {
pub hdr: tcphdr,
pub words: [__be32; 5usize],
}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union if_settings__bindgen_ty_1 {
+pub raw_hdlc: *mut raw_hdlc_proto,
+pub cisco: *mut cisco_proto,
+pub fr: *mut fr_proto,
+pub fr_pvc: *mut fr_proto_pvc,
+pub fr_pvc_info: *mut fr_proto_pvc_info,
+pub x25: *mut x25_hdlc_proto,
+pub sync: *mut sync_serial_settings,
+pub te1: *mut te1_settings,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union ifreq__bindgen_ty_1 {
+pub ifrn_name: [crate::ctypes::c_char; 16usize],
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union ifreq__bindgen_ty_2 {
+pub ifru_addr: sockaddr,
+pub ifru_dstaddr: sockaddr,
+pub ifru_broadaddr: sockaddr,
+pub ifru_netmask: sockaddr,
+pub ifru_hwaddr: sockaddr,
+pub ifru_flags: crate::ctypes::c_short,
+pub ifru_ivalue: crate::ctypes::c_int,
+pub ifru_mtu: crate::ctypes::c_int,
+pub ifru_map: ifmap,
+pub ifru_slave: [crate::ctypes::c_char; 16usize],
+pub ifru_newname: [crate::ctypes::c_char; 16usize],
+pub ifru_data: *mut crate::ctypes::c_void,
+pub ifru_settings: if_settings,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union ifconf__bindgen_ty_1 {
+pub ifcu_buf: *mut crate::ctypes::c_char,
+pub ifcu_req: *mut ifreq,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union nf_inet_addr {
+pub all: [__u32; 4usize],
+pub ip: __be32,
+pub ip6: [__be32; 4usize],
+pub in_: in_addr,
+pub in6: in6_addr,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union xt_entry_match__bindgen_ty_1 {
+pub user: xt_entry_match__bindgen_ty_1__bindgen_ty_1,
+pub kernel: xt_entry_match__bindgen_ty_1__bindgen_ty_2,
+pub match_size: __u16,
+}
+#[repr(C)]
+#[derive(Copy, Clone)]
+pub union xt_entry_target__bindgen_ty_1 {
+pub user: xt_entry_target__bindgen_ty_1__bindgen_ty_1,
+pub kernel: xt_entry_target__bindgen_ty_1__bindgen_ty_2,
+pub target_size: __u16,
+}
impl<Storage> __BindgenBitfieldUnit<Storage> {
#[inline]
pub const fn new(storage: Storage) -> Self {
@@ -1842,3 +2427,9 @@ tcpi_fastopen_client_fail as u64
__bindgen_bitfield_unit
}
}
+impl nf_inet_hooks {
+pub const NF_INET_INGRESS: nf_inet_hooks = nf_inet_hooks::NF_INET_NUMHOOKS;
+}
+impl nf_ip_hook_priorities {
+pub const NF_IP_PRI_LAST: nf_ip_hook_priorities = nf_ip_hook_priorities::NF_IP_PRI_CONNTRACK_CONFIRM;
+}