]> granicus.if.org Git - libnl/commit
New netem funtionality and TBF fix
authorTad Kollar <Thaddeus.J.Kollar@nasa.gov>
Wed, 30 Apr 2008 15:40:44 +0000 (11:40 -0400)
committerThomas Graf <tgr@lsx.localdomain>
Wed, 30 Apr 2008 17:59:06 +0000 (19:59 +0200)
commit241b2b83ba5672f5c86154d29eeb8ef4c7c6e9b4
tree0c168d810d663ce5e53234586dab732b34e7cd2a
parent5c92c656cc6d1197c66d8876a17189926dfbc343
New netem funtionality and TBF fix

New netem-related functionality:
Added ability to save new settings to the kernel. In netem.c, the
netem_get_opts() stub has been replaced with netem_build_msg() which
manipulates the nl_msg data directly and returns an error code instead
of a new nl_msg. Modifications to qdisc_build() in qdisc.c and struct
rtnl_qdisc_ops were necessary for this.
Added support for getting/setting corruption probability/correlation.
Added support for setting a delay distribution.

Fixed tbf_msg_parser() to call tbf_alloc() instead of tbf_qdisc() to
prevent a seg fault.
include/netlink-types.h
include/netlink/route/qdisc-modules.h
include/netlink/route/sch/netem.h
lib/route/qdisc.c
lib/route/sch/netem.c
lib/route/sch/tbf.c