pub struct Request<'buf> { /* private fields */ }tc only.Implementations§
Source§impl<'buf> Request<'buf>
impl<'buf> Request<'buf>
pub fn new_with_buf(buf: &'buf mut Vec<u8>) -> Self
pub fn new_extend(buf: &'buf mut Vec<u8>) -> Self
pub fn buf(&self) -> &Vec<u8> ⓘ
pub fn buf_mut(&mut self) -> &mut Vec<u8> ⓘ
Sourcepub fn set_create(self) -> Self
pub fn set_create(self) -> Self
Set NLM_F_CREATE flag
Sourcepub fn set_replace(self) -> Self
pub fn set_replace(self) -> Self
Set NLM_F_REPLACE flag
Sourcepub fn set_change(self) -> Self
pub fn set_change(self) -> Self
Set NLM_F_CREATE and NLM_F_REPLACE flag
Sourcepub fn set_append(self) -> Self
pub fn set_append(self) -> Self
Set NLM_F_APPEND flag
Sourcepub fn unset_flags(self, flags: u16) -> Self
pub fn unset_flags(self, flags: u16) -> Self
Set self.flags ^= self.flags & flags
Sourcepub fn op_newqdisc_do(self, header: &Tcmsg) -> OpNewqdiscDo<'buf>
pub fn op_newqdisc_do(self, header: &Tcmsg) -> OpNewqdiscDo<'buf>
Create new tc qdisc.
Request attributes:
- .push_kind()
- .nested_options_basic()
- .nested_options_bpf()
- .nested_options_bfifo()
- .nested_options_cake()
- .nested_options_cbs()
- .nested_options_cgroup()
- .nested_options_choke()
- .nested_options_clsact()
- .nested_options_codel()
- .nested_options_drr()
- .nested_options_dualpi2()
- .nested_options_etf()
- .nested_options_ets()
- .nested_options_flow()
- .nested_options_flower()
- .nested_options_fq()
- .nested_options_fq_codel()
- .nested_options_fq_pie()
- .nested_options_fw()
- .nested_options_gred()
- .nested_options_hfsc()
- .nested_options_hhf()
- .nested_options_htb()
- .nested_options_ingress()
- .nested_options_matchall()
- .nested_options_mq()
- .nested_options_mqprio()
- .nested_options_multiq()
- .nested_options_netem()
- .nested_options_pfifo()
- .nested_options_pfifo_fast()
- .nested_options_pfifo_head_drop()
- .nested_options_pie()
- .nested_options_plug()
- .nested_options_prio()
- .nested_options_qfq()
- .nested_options_red()
- .nested_options_route()
- .nested_options_sfb()
- .nested_options_sfq()
- .nested_options_taprio()
- .nested_options_tbf()
- .nested_options_u32()
- .push_rate()
- .push_chain()
- .push_ingress_block()
- .push_egress_block()
Sourcepub fn op_delqdisc_do(self, header: &Tcmsg) -> OpDelqdiscDo<'buf>
pub fn op_delqdisc_do(self, header: &Tcmsg) -> OpDelqdiscDo<'buf>
Delete existing tc qdisc.
Sourcepub fn op_getqdisc_dump(self, header: &Tcmsg) -> OpGetqdiscDump<'buf>
pub fn op_getqdisc_dump(self, header: &Tcmsg) -> OpGetqdiscDump<'buf>
Get / dump tc qdisc information.
Request attributes:
Reply attributes:
Sourcepub fn op_getqdisc_do(self, header: &Tcmsg) -> OpGetqdiscDo<'buf>
pub fn op_getqdisc_do(self, header: &Tcmsg) -> OpGetqdiscDo<'buf>
Get / dump tc qdisc information.
Request attributes:
Reply attributes:
Sourcepub fn op_newtclass_do(self, header: &Tcmsg) -> OpNewtclassDo<'buf>
pub fn op_newtclass_do(self, header: &Tcmsg) -> OpNewtclassDo<'buf>
Get / dump tc traffic class information.
Request attributes:
- .push_kind()
- .nested_options_basic()
- .nested_options_bpf()
- .nested_options_bfifo()
- .nested_options_cake()
- .nested_options_cbs()
- .nested_options_cgroup()
- .nested_options_choke()
- .nested_options_clsact()
- .nested_options_codel()
- .nested_options_drr()
- .nested_options_dualpi2()
- .nested_options_etf()
- .nested_options_ets()
- .nested_options_flow()
- .nested_options_flower()
- .nested_options_fq()
- .nested_options_fq_codel()
- .nested_options_fq_pie()
- .nested_options_fw()
- .nested_options_gred()
- .nested_options_hfsc()
- .nested_options_hhf()
- .nested_options_htb()
- .nested_options_ingress()
- .nested_options_matchall()
- .nested_options_mq()
- .nested_options_mqprio()
- .nested_options_multiq()
- .nested_options_netem()
- .nested_options_pfifo()
- .nested_options_pfifo_fast()
- .nested_options_pfifo_head_drop()
- .nested_options_pie()
- .nested_options_plug()
- .nested_options_prio()
- .nested_options_qfq()
- .nested_options_red()
- .nested_options_route()
- .nested_options_sfb()
- .nested_options_sfq()
- .nested_options_taprio()
- .nested_options_tbf()
- .nested_options_u32()
- .push_rate()
- .push_chain()
- .push_ingress_block()
- .push_egress_block()
Sourcepub fn op_deltclass_do(self, header: &Tcmsg) -> OpDeltclassDo<'buf>
pub fn op_deltclass_do(self, header: &Tcmsg) -> OpDeltclassDo<'buf>
Get / dump tc traffic class information.
Sourcepub fn op_gettclass_do(self, header: &Tcmsg) -> OpGettclassDo<'buf>
pub fn op_gettclass_do(self, header: &Tcmsg) -> OpGettclassDo<'buf>
Get / dump tc traffic class information.
Reply attributes:
Sourcepub fn op_newtfilter_do(self, header: &Tcmsg) -> OpNewtfilterDo<'buf>
pub fn op_newtfilter_do(self, header: &Tcmsg) -> OpNewtfilterDo<'buf>
Get / dump tc filter information.
Request attributes:
- .push_kind()
- .nested_options_basic()
- .nested_options_bpf()
- .nested_options_bfifo()
- .nested_options_cake()
- .nested_options_cbs()
- .nested_options_cgroup()
- .nested_options_choke()
- .nested_options_clsact()
- .nested_options_codel()
- .nested_options_drr()
- .nested_options_dualpi2()
- .nested_options_etf()
- .nested_options_ets()
- .nested_options_flow()
- .nested_options_flower()
- .nested_options_fq()
- .nested_options_fq_codel()
- .nested_options_fq_pie()
- .nested_options_fw()
- .nested_options_gred()
- .nested_options_hfsc()
- .nested_options_hhf()
- .nested_options_htb()
- .nested_options_ingress()
- .nested_options_matchall()
- .nested_options_mq()
- .nested_options_mqprio()
- .nested_options_multiq()
- .nested_options_netem()
- .nested_options_pfifo()
- .nested_options_pfifo_fast()
- .nested_options_pfifo_head_drop()
- .nested_options_pie()
- .nested_options_plug()
- .nested_options_prio()
- .nested_options_qfq()
- .nested_options_red()
- .nested_options_route()
- .nested_options_sfb()
- .nested_options_sfq()
- .nested_options_taprio()
- .nested_options_tbf()
- .nested_options_u32()
- .push_rate()
- .push_chain()
- .push_ingress_block()
- .push_egress_block()
Sourcepub fn op_deltfilter_do(self, header: &Tcmsg) -> OpDeltfilterDo<'buf>
pub fn op_deltfilter_do(self, header: &Tcmsg) -> OpDeltfilterDo<'buf>
Sourcepub fn op_gettfilter_dump(self, header: &Tcmsg) -> OpGettfilterDump<'buf>
pub fn op_gettfilter_dump(self, header: &Tcmsg) -> OpGettfilterDump<'buf>
Get / dump tc filter information.
Request attributes:
Reply attributes:
Sourcepub fn op_gettfilter_do(self, header: &Tcmsg) -> OpGettfilterDo<'buf>
pub fn op_gettfilter_do(self, header: &Tcmsg) -> OpGettfilterDo<'buf>
Get / dump tc filter information.
Request attributes:
Reply attributes:
Sourcepub fn op_newchain_do(self, header: &Tcmsg) -> OpNewchainDo<'buf>
pub fn op_newchain_do(self, header: &Tcmsg) -> OpNewchainDo<'buf>
Get / dump tc chain information.
Request attributes:
- .push_kind()
- .nested_options_basic()
- .nested_options_bpf()
- .nested_options_bfifo()
- .nested_options_cake()
- .nested_options_cbs()
- .nested_options_cgroup()
- .nested_options_choke()
- .nested_options_clsact()
- .nested_options_codel()
- .nested_options_drr()
- .nested_options_dualpi2()
- .nested_options_etf()
- .nested_options_ets()
- .nested_options_flow()
- .nested_options_flower()
- .nested_options_fq()
- .nested_options_fq_codel()
- .nested_options_fq_pie()
- .nested_options_fw()
- .nested_options_gred()
- .nested_options_hfsc()
- .nested_options_hhf()
- .nested_options_htb()
- .nested_options_ingress()
- .nested_options_matchall()
- .nested_options_mq()
- .nested_options_mqprio()
- .nested_options_multiq()
- .nested_options_netem()
- .nested_options_pfifo()
- .nested_options_pfifo_fast()
- .nested_options_pfifo_head_drop()
- .nested_options_pie()
- .nested_options_plug()
- .nested_options_prio()
- .nested_options_qfq()
- .nested_options_red()
- .nested_options_route()
- .nested_options_sfb()
- .nested_options_sfq()
- .nested_options_taprio()
- .nested_options_tbf()
- .nested_options_u32()
- .push_rate()
- .push_chain()
- .push_ingress_block()
- .push_egress_block()
Sourcepub fn op_delchain_do(self, header: &Tcmsg) -> OpDelchainDo<'buf>
pub fn op_delchain_do(self, header: &Tcmsg) -> OpDelchainDo<'buf>
Sourcepub fn op_getchain_do(self, header: &Tcmsg) -> OpGetchainDo<'buf>
pub fn op_getchain_do(self, header: &Tcmsg) -> OpGetchainDo<'buf>
Get / dump tc chain information.
Request attributes:
Reply attributes: