libnl
3.2.24-rc1
|
For further documentation see http://linux-net.osdl.org/index.php/Netem. More...
Queue Limit | |
void | 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 | |
void | 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... | |
void | 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... | |
void | 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 | |
void | 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... | |
void | 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 | |
void | 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... | |
void | 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 | |
void | 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... | |
void | 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 | |
void | 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... | |
void | 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... | |
void | 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... | |
For further documentation see http://linux-net.osdl.org/index.php/Netem.
void rtnl_netem_set_limit | ( | struct rtnl_qdisc * | qdisc, |
int | limit | ||
) |
Set limit of netem qdisc.
qdisc | Netem qdisc to be modified. |
limit | New limit in bytes. |
Definition at line 296 of file netem.c.
References rtnl_tc_data(), and TC_CAST.
int rtnl_netem_get_limit | ( | struct rtnl_qdisc * | qdisc | ) |
Get limit of netem qdisc.
qdisc | Netem qdisc. |
Definition at line 312 of file netem.c.
References rtnl_tc_data(), and TC_CAST.
void rtnl_netem_set_gap | ( | struct rtnl_qdisc * | qdisc, |
int | gap | ||
) |
Set re-ordering gap of netem qdisc.
qdisc | Netem qdisc to be modified. |
gap | New gap in number of packets. |
Definition at line 338 of file netem.c.
References rtnl_tc_data(), and TC_CAST.
int rtnl_netem_get_gap | ( | struct rtnl_qdisc * | qdisc | ) |
Get re-ordering gap of netem qdisc.
qdisc | Netem qdisc. |
Definition at line 354 of file netem.c.
References rtnl_tc_data(), and TC_CAST.
void rtnl_netem_set_reorder_probability | ( | struct rtnl_qdisc * | qdisc, |
int | prob | ||
) |
Set re-ordering probability of netem qdisc.
qdisc | Netem qdisc to be modified. |
prob | New re-ordering probability. |
Definition at line 373 of file netem.c.
References rtnl_tc_data(), and TC_CAST.
int rtnl_netem_get_reorder_probability | ( | struct rtnl_qdisc * | qdisc | ) |
Get re-ordering probability of netem qdisc.
qdisc | Netem qdisc. |
Definition at line 389 of file netem.c.
References rtnl_tc_data(), and TC_CAST.
void rtnl_netem_set_reorder_correlation | ( | struct rtnl_qdisc * | qdisc, |
int | prob | ||
) |
Set re-order correlation probability of netem qdisc.
qdisc | Netem qdisc to be modified. |
prob | New re-ordering correlation probability. |
Definition at line 408 of file netem.c.
References rtnl_tc_data(), and TC_CAST.
int rtnl_netem_get_reorder_correlation | ( | struct rtnl_qdisc * | qdisc | ) |
Get re-ordering correlation probability of netem qdisc.
qdisc | Netem qdisc. |
Definition at line 424 of file netem.c.
References rtnl_tc_data(), and TC_CAST.
void rtnl_netem_set_corruption_probability | ( | struct rtnl_qdisc * | qdisc, |
int | prob | ||
) |
Set corruption probability of netem qdisc.
qdisc | Netem qdisc to be modified. |
prob | New corruption probability. |
Definition at line 450 of file netem.c.
References rtnl_tc_data(), and TC_CAST.
int rtnl_netem_get_corruption_probability | ( | struct rtnl_qdisc * | qdisc | ) |
Get corruption probability of netem qdisc.
qdisc | Netem qdisc. |
Definition at line 466 of file netem.c.
References rtnl_tc_data(), and TC_CAST.
void rtnl_netem_set_corruption_correlation | ( | struct rtnl_qdisc * | qdisc, |
int | prob | ||
) |
Set corruption correlation probability of netem qdisc.
qdisc | Netem qdisc to be modified. |
prob | New corruption correlation probability. |
Definition at line 485 of file netem.c.
References rtnl_tc_data(), and TC_CAST.
int rtnl_netem_get_corruption_correlation | ( | struct rtnl_qdisc * | qdisc | ) |
Get corruption correlation probability of netem qdisc.
qdisc | Netem qdisc. |
Definition at line 501 of file netem.c.
References rtnl_tc_data(), and TC_CAST.
void rtnl_netem_set_loss | ( | struct rtnl_qdisc * | qdisc, |
int | prob | ||
) |
Set packet loss probability of netem qdisc.
qdisc | Netem qdisc to be modified. |
prob | New packet loss probability. |
Definition at line 527 of file netem.c.
References rtnl_tc_data(), and TC_CAST.
int rtnl_netem_get_loss | ( | struct rtnl_qdisc * | qdisc | ) |
Get packet loss probability of netem qdisc.
qdisc | Netem qdisc. |
Definition at line 543 of file netem.c.
References rtnl_tc_data(), and TC_CAST.
void rtnl_netem_set_loss_correlation | ( | struct rtnl_qdisc * | qdisc, |
int | prob | ||
) |
Set packet loss correlation probability of netem qdisc.
qdisc | Netem qdisc to be modified. |
prob | New packet loss correlation. |
Definition at line 562 of file netem.c.
References rtnl_tc_data(), and TC_CAST.
int rtnl_netem_get_loss_correlation | ( | struct rtnl_qdisc * | qdisc | ) |
Get packet loss correlation probability of netem qdisc.
qdisc | Netem qdisc. |
Definition at line 578 of file netem.c.
References rtnl_tc_data(), and TC_CAST.
void rtnl_netem_set_duplicate | ( | struct rtnl_qdisc * | qdisc, |
int | prob | ||
) |
Set packet duplication probability of netem qdisc.
qdisc | Netem qdisc to be modified. |
prob | New packet duplication probability. |
Definition at line 604 of file netem.c.
References rtnl_tc_data(), and TC_CAST.
int rtnl_netem_get_duplicate | ( | struct rtnl_qdisc * | qdisc | ) |
Get packet duplication probability of netem qdisc.
qdisc | Netem qdisc. |
Definition at line 620 of file netem.c.
References rtnl_tc_data(), and TC_CAST.
void rtnl_netem_set_duplicate_correlation | ( | struct rtnl_qdisc * | qdisc, |
int | prob | ||
) |
Set packet duplication correlation probability of netem qdisc.
qdisc | Netem qdisc to be modified. |
prob | New packet duplication correlation probability. |
Definition at line 639 of file netem.c.
References rtnl_tc_data(), and TC_CAST.
int rtnl_netem_get_duplicate_correlation | ( | struct rtnl_qdisc * | qdisc | ) |
Get packet duplication correlation probability of netem qdisc.
qdisc | Netem qdisc. |
Definition at line 655 of file netem.c.
References rtnl_tc_data(), and TC_CAST.
void rtnl_netem_set_delay | ( | struct rtnl_qdisc * | qdisc, |
int | delay | ||
) |
Set packet delay of netem qdisc.
qdisc | Netem qdisc to be modified. |
delay | New packet delay in micro seconds. |
Definition at line 681 of file netem.c.
References nl_us2ticks(), rtnl_tc_data(), and TC_CAST.
int rtnl_netem_get_delay | ( | struct rtnl_qdisc * | qdisc | ) |
Get packet delay of netem qdisc.
qdisc | Netem qdisc. |
Definition at line 697 of file netem.c.
References nl_ticks2us(), rtnl_tc_data(), and TC_CAST.
void rtnl_netem_set_jitter | ( | struct rtnl_qdisc * | qdisc, |
int | jitter | ||
) |
Set packet delay jitter of netem qdisc.
qdisc | Netem qdisc to be modified. |
jitter | New packet delay jitter in micro seconds. |
Definition at line 716 of file netem.c.
References nl_us2ticks(), rtnl_tc_data(), and TC_CAST.
int rtnl_netem_get_jitter | ( | struct rtnl_qdisc * | qdisc | ) |
Get packet delay jitter of netem qdisc.
qdisc | Netem qdisc. |
Definition at line 732 of file netem.c.
References nl_ticks2us(), rtnl_tc_data(), and TC_CAST.
void rtnl_netem_set_delay_correlation | ( | struct rtnl_qdisc * | qdisc, |
int | prob | ||
) |
Set packet delay correlation probability of netem qdisc.
qdisc | Netem qdisc to be modified. |
prob | New packet delay correlation probability. |
Definition at line 750 of file netem.c.
References rtnl_tc_data(), and TC_CAST.
int rtnl_netem_get_delay_correlation | ( | struct rtnl_qdisc * | qdisc | ) |
Get packet delay correlation probability of netem qdisc.
qdisc | Netem qdisc. |
Definition at line 766 of file netem.c.
References rtnl_tc_data(), and TC_CAST.
int rtnl_netem_get_delay_distribution_size | ( | struct rtnl_qdisc * | qdisc | ) |
Get the size of the distribution table.
qdisc | Netem qdisc. |
Definition at line 784 of file netem.c.
References rtnl_tc_data(), and TC_CAST.
int rtnl_netem_get_delay_distribution | ( | struct rtnl_qdisc * | qdisc, |
int16_t ** | dist_ptr | ||
) |
Get a pointer to the distribution table.
qdisc | Netem qdisc. |
dist_ptr | The pointer to set. |
Definition at line 803 of file netem.c.
References rtnl_tc_data(), and TC_CAST.
int rtnl_netem_set_delay_distribution | ( | struct rtnl_qdisc * | qdisc, |
const char * | dist_type | ||
) |
Set the delay distribution.
Latency/jitter must be set before applying.
qdisc | Netem qdisc. |
dist_type | The name of the distribution (type, file, path/file). |
Definition at line 823 of file netem.c.
References rtnl_tc_data(), and TC_CAST.