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

void rtnl_htb_set_rate ( struct rtnl_class *  class,
uint32_t  rate 

Set rate of HTB class.

  • class HTB class to be modified.
  • rate New rate in bytes per second.

Definition at line 411 of file htb.c.

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

      d->ch_rate.rs_cell_log = UINT8_MAX; /* use default value */
      d->ch_rate.rs_rate = rate;
      d->ch_mask |= SCH_HTB_HAS_RATE;

Generated by  Doxygen 1.6.0   Back to index