Logo Search packages:      
Sourcecode: libnl2 version File versions  Download package

void rtnl_htb_set_mtu ( struct rtnl_class *  class,
uint32_t  mtu 
)

Set MTU of the data link.

  • class HTB class to be modified.
  • mtu New MTU in bytes.
Sets MTU of the data link controlled by the HTB class. If not set, the Ethernet MTU (1600) is used.

Definition at line 396 of file htb.c.

{
      struct rtnl_htb_class *d = htb_class(class);
      if (d == NULL)
            return;

      d->ch_mtu = mtu;
      d->ch_mask |= SCH_HTB_HAS_MTU;
}


Generated by  Doxygen 1.6.0   Back to index