summaryrefslogtreecommitdiffstats
path: root/tc
diff options
context:
space:
mode:
authorosdl.net!shemminger <osdl.net!shemminger>2004-12-07 21:48:29 +0000
committerosdl.net!shemminger <osdl.net!shemminger>2004-12-07 21:48:29 +0000
commit50772dc51ac02239958e1ebcdb21277fcdf133a7 (patch)
tree046815d1c53ba3eb084f33b70a0de978ec487285 /tc
parent7c8fdcd3bebf345ea56725c620acddb95334004a (diff)
Add ip rule flush capabilty and fix all the prototype changes
because of that code rewrites the nlmsghdr. (Logical change 1.106)
Diffstat (limited to 'tc')
-rw-r--r--tc/m_action.c2
-rw-r--r--tc/tc_class.c2
-rw-r--r--tc/tc_filter.c2
-rw-r--r--tc/tc_qdisc.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/tc/m_action.c b/tc/m_action.c
index f6edc0d5..dc303065 100644
--- a/tc/m_action.c
+++ b/tc/m_action.c
@@ -303,7 +303,7 @@ tc_print_action(FILE * f, const struct rtattr *arg)
}
static int do_print_action(const struct sockaddr_nl *who,
- const struct nlmsghdr *n,
+ struct nlmsghdr *n,
void *arg)
{
FILE *fp = (FILE*)arg;
diff --git a/tc/tc_class.c b/tc/tc_class.c
index 0352fd63..b4aae951 100644
--- a/tc/tc_class.c
+++ b/tc/tc_class.c
@@ -152,7 +152,7 @@ int filter_ifindex;
__u32 filter_qdisc;
static int print_class(const struct sockaddr_nl *who,
- const struct nlmsghdr *n, void *arg)
+ struct nlmsghdr *n, void *arg)
{
FILE *fp = (FILE*)arg;
struct tcmsg *t = NLMSG_DATA(n);
diff --git a/tc/tc_filter.c b/tc/tc_filter.c
index 74e99695..af663ddf 100644
--- a/tc/tc_filter.c
+++ b/tc/tc_filter.c
@@ -186,7 +186,7 @@ static __u32 filter_prio;
static __u32 filter_protocol;
static int print_filter(const struct sockaddr_nl *who,
- const struct nlmsghdr *n,
+ struct nlmsghdr *n,
void *arg)
{
FILE *fp = (FILE*)arg;
diff --git a/tc/tc_qdisc.c b/tc/tc_qdisc.c
index 6cf08d87..fe7e354c 100644
--- a/tc/tc_qdisc.c
+++ b/tc/tc_qdisc.c
@@ -203,7 +203,7 @@ void print_tcstats_attr(FILE *fp, const struct rtattr *rta)
static int filter_ifindex;
static int print_qdisc(const struct sockaddr_nl *who,
- const struct nlmsghdr *n,
+ struct nlmsghdr *n,
void *arg)
{
FILE *fp = (FILE*)arg;