rust-iptables:iptables的Rust绑定

时间:2021-05-07 03:06:44
【文件属性】:
文件名称:rust-iptables:iptables的Rust绑定
文件大小:8KB
文件格式:ZIP
更新时间:2021-05-07 03:06:44
rust iptables bindings netfilter rust-crate 锈iptables 此板条箱为Linux中的应用程序提供了绑定(受启发)。 这个板条箱使用iptables二进制文件来操作链和表。 此源代码是根据MIT许可(可在LICENSE文件中找到)许可的。 [ dependencies ] iptables = " 0.4 " 入门 1-导入板条箱iptables并操作链: let ipt = iptables :: new ( false ). unwrap (); assert! (ipt. new_chain ( "nat" , "NEWCHAINNAME" ). is_ok ()); assert! (ipt. append ( "nat" , "NEWCHAINNAME" , "-j ACCEPT" ). is_ok ()); assert! (ipt. exists ( "nat" , "NEWCHAINNAME" , "-j A
【文件预览】:
rust-iptables-master
----.travis.yml(328B)
----tests()
--------iptables_test.rs(6KB)
----LICENSE(1KB)
----src()
--------error.rs(616B)
--------lib.rs(14KB)
----Cargo.toml(573B)
----.gitignore(24B)
----README.md(1KB)

网友评论