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

int rtnl_qdisc_tbf_set_mpu ( struct rtnl_qdisc *  qdisc,
int  mpu 
)

Set MPU of TBF qdisc.

  • qdisc TBF qdisc to be modified.
  • mpu New MPU in bytes.
    Returns:
    0 on success or a negative error code.

Definition at line 305 of file tbf.c.

{
      struct rtnl_tbf *tbf;
      
      tbf = tbf_alloc(qdisc);
      if (!tbf)
            return -NLE_NOMEM;

      tbf->qt_mpu = mpu;
      tbf->qt_mask |= TBF_ATTR_MPU;

      return 0;
}


Generated by  Doxygen 1.6.0   Back to index