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

void rtnl_htb_set_ceil ( struct rtnl_class *  class,
uint32_t  ceil 
)

Set ceil of HTB class.

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

Definition at line 427 of file htb.c.

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

      d->ch_ceil.rs_cell_log = UINT8_MAX; /* use default value */
      d->ch_ceil.rs_rate = ceil;
      d->ch_mask |= SCH_HTB_HAS_CEIL;
}


Generated by  Doxygen 1.6.0   Back to index