libnl  3.5.0
plug.h
1 /*
2  * netlink/route/qdisc/plug.c PLUG Qdisc
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation version 2.1
7  * of the License.
8  *
9  * Copyright (c) 2012 Shriram Rajagopalan <rshriram@cs.ubc.ca>
10  */
11 
12 #ifndef NETLINK_PLUG_H_
13 #define NETLINK_PLUG_H_
14 
15 #include <netlink/netlink.h>
16 #include <netlink/route/qdisc.h>
17 
18 #ifdef __cplusplus
19 extern "C" {
20 #endif
21 
22 extern int rtnl_qdisc_plug_set_limit(struct rtnl_qdisc *, int);
23 extern int rtnl_qdisc_plug_buffer(struct rtnl_qdisc *);
24 extern int rtnl_qdisc_plug_release_one(struct rtnl_qdisc *);
25 extern int rtnl_qdisc_plug_release_indefinite(struct rtnl_qdisc *);
26 
27 #ifdef __cplusplus
28 }
29 #endif
30 
31 #endif
int rtnl_qdisc_plug_set_limit(struct rtnl_qdisc *, int)
Set limit of PLUG qdisc.
Definition: plug.c:145
int rtnl_qdisc_plug_release_indefinite(struct rtnl_qdisc *)
Indefinitely unplug the qdisc, releasing all packets.
Definition: plug.c:128
int rtnl_qdisc_plug_buffer(struct rtnl_qdisc *)
Insert a plug into the qdisc and buffer any incoming network traffic.
Definition: plug.c:94
int rtnl_qdisc_plug_release_one(struct rtnl_qdisc *)
Unplug the qdisc, releasing packets from queue head to the last complete buffer, while new traffic co...
Definition: plug.c:111