libnl 3.7.0
plug.h
1/* SPDX-License-Identifier: LGPL-2.1-only */
2/*
3 * Copyright (c) 2012 Shriram Rajagopalan <rshriram@cs.ubc.ca>
4 */
5
6#ifndef NETLINK_PLUG_H_
7#define NETLINK_PLUG_H_
8
9#include <netlink/netlink.h>
10#include <netlink/route/qdisc.h>
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
16extern int rtnl_qdisc_plug_set_limit(struct rtnl_qdisc *, int);
17extern int rtnl_qdisc_plug_buffer(struct rtnl_qdisc *);
18extern int rtnl_qdisc_plug_release_one(struct rtnl_qdisc *);
19extern int rtnl_qdisc_plug_release_indefinite(struct rtnl_qdisc *);
20
21#ifdef __cplusplus
22}
23#endif
24
25#endif
int rtnl_qdisc_plug_release_indefinite(struct rtnl_qdisc *)
Indefinitely unplug the qdisc, releasing all packets.
Definition: plug.c:122
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:105
int rtnl_qdisc_plug_buffer(struct rtnl_qdisc *)
Insert a plug into the qdisc and buffer any incoming network traffic.
Definition: plug.c:88
int rtnl_qdisc_plug_set_limit(struct rtnl_qdisc *, int)
Set limit of PLUG qdisc.
Definition: plug.c:139