#include <netlink-local.h>
#include <netlink-tc.h>
#include <netlink/netlink.h>
#include <netlink/utils.h>
#include <netlink/route/qdisc.h>
#include <netlink/route/qdisc-modules.h>
#include <netlink/route/sch/netem.h>
Functions | |
int | netem_build_msg (struct rtnl_qdisc *qdisc, struct nl_msg *msg) |
Queue Limit | |
int | rtnl_netem_set_limit (struct rtnl_qdisc *qdisc, int limit) |
Set limit of netem qdisc. More... | |
int | rtnl_netem_get_limit (struct rtnl_qdisc *qdisc) |
Get limit of netem qdisc. More... | |
Packet Re-ordering | |
int | rtnl_netem_set_gap (struct rtnl_qdisc *qdisc, int gap) |
Set re-ordering gap of netem qdisc. More... | |
int | rtnl_netem_get_gap (struct rtnl_qdisc *qdisc) |
Get re-ordering gap of netem qdisc. More... | |
int | rtnl_netem_set_reorder_probability (struct rtnl_qdisc *qdisc, int prob) |
Set re-ordering probability of netem qdisc. More... | |
int | rtnl_netem_get_reorder_probability (struct rtnl_qdisc *qdisc) |
Get re-ordering probability of netem qdisc. More... | |
int | rtnl_netem_set_reorder_correlation (struct rtnl_qdisc *qdisc, int prob) |
Set re-order correlation probability of netem qdisc. More... | |
int | rtnl_netem_get_reorder_correlation (struct rtnl_qdisc *qdisc) |
Get re-ordering correlation probability of netem qdisc. More... | |
Corruption | |
int | rtnl_netem_set_corruption_probability (struct rtnl_qdisc *qdisc, int prob) |
Set corruption probability of netem qdisc. More... | |
int | rtnl_netem_get_corruption_probability (struct rtnl_qdisc *qdisc) |
Get corruption probability of netem qdisc. More... | |
int | rtnl_netem_set_corruption_correlation (struct rtnl_qdisc *qdisc, int prob) |
Set corruption correlation probability of netem qdisc. More... | |
int | rtnl_netem_get_corruption_correlation (struct rtnl_qdisc *qdisc) |
Get corruption correlation probability of netem qdisc. More... | |
Packet Loss | |
int | rtnl_netem_set_loss (struct rtnl_qdisc *qdisc, int prob) |
Set packet loss probability of netem qdisc. More... | |
int | rtnl_netem_get_loss (struct rtnl_qdisc *qdisc) |
Get packet loss probability of netem qdisc. More... | |
int | rtnl_netem_set_loss_correlation (struct rtnl_qdisc *qdisc, int prob) |
Set packet loss correlation probability of netem qdisc. More... | |
int | rtnl_netem_get_loss_correlation (struct rtnl_qdisc *qdisc) |
Get packet loss correlation probability of netem qdisc. More... | |
Packet Duplication | |
int | rtnl_netem_set_duplicate (struct rtnl_qdisc *qdisc, int prob) |
Set packet duplication probability of netem qdisc. More... | |
int | rtnl_netem_get_duplicate (struct rtnl_qdisc *qdisc) |
Get packet duplication probability of netem qdisc. More... | |
int | rtnl_netem_set_duplicate_correlation (struct rtnl_qdisc *qdisc, int prob) |
Set packet duplication correlation probability of netem qdisc. More... | |
int | rtnl_netem_get_duplicate_correlation (struct rtnl_qdisc *qdisc) |
Get packet duplication correlation probability of netem qdisc. More... | |
Packet Delay | |
int | rtnl_netem_set_delay (struct rtnl_qdisc *qdisc, int delay) |
Set packet delay of netem qdisc. More... | |
int | rtnl_netem_get_delay (struct rtnl_qdisc *qdisc) |
Get packet delay of netem qdisc. More... | |
int | rtnl_netem_set_jitter (struct rtnl_qdisc *qdisc, int jitter) |
Set packet delay jitter of netem qdisc. More... | |
int | rtnl_netem_get_jitter (struct rtnl_qdisc *qdisc) |
Get packet delay jitter of netem qdisc. More... | |
int | rtnl_netem_set_delay_correlation (struct rtnl_qdisc *qdisc, int prob) |
Set packet delay correlation probability of netem qdisc. More... | |
int | rtnl_netem_get_delay_correlation (struct rtnl_qdisc *qdisc) |
Get packet delay correlation probability of netem qdisc. More... | |
int | rtnl_netem_get_delay_distribution_size (struct rtnl_qdisc *qdisc) |
Get the size of the distribution table. More... | |
int | rtnl_netem_get_delay_distribution (struct rtnl_qdisc *qdisc, int16_t **dist_ptr) |
Get a pointer to the distribution table. More... | |
int | rtnl_netem_set_delay_distribution (struct rtnl_qdisc *qdisc, const char *dist_type) |
Set the delay distribution. More... | |