mirror of
https://git.kernel.org/pub/scm/network/iproute2/iproute2.git
synced 2024-11-15 14:05:22 +08:00
Auto merged
2004/08/11 14:27:34-07:00 osdl.net!shemminger Increase size of netlink buffer. (Logical change 1.71)
This commit is contained in:
parent
a2218e8eb7
commit
f307c24e2f
@ -1,3 +1,6 @@
|
||||
|
||||
#define TCA_BUF_MAX (64*1024)
|
||||
|
||||
extern int do_qdisc(int argc, char **argv);
|
||||
extern int do_class(int argc, char **argv);
|
||||
extern int do_filter(int argc, char **argv);
|
||||
|
@ -44,15 +44,15 @@ static void usage(void)
|
||||
int tc_qdisc_modify(int cmd, unsigned flags, int argc, char **argv)
|
||||
{
|
||||
struct rtnl_handle rth;
|
||||
struct {
|
||||
struct nlmsghdr n;
|
||||
struct tcmsg t;
|
||||
char buf[4096];
|
||||
} req;
|
||||
struct qdisc_util *q = NULL;
|
||||
struct tc_estimator est;
|
||||
char d[16];
|
||||
char k[16];
|
||||
struct {
|
||||
struct nlmsghdr n;
|
||||
struct tcmsg t;
|
||||
char buf[TCA_BUF_MAX];
|
||||
} req;
|
||||
|
||||
memset(&req, 0, sizeof(req));
|
||||
memset(&est, 0, sizeof(est));
|
||||
|
Loading…
Reference in New Issue
Block a user