summaryrefslogtreecommitdiffstats
path: root/sys/net/if_tokensubr.c
diff options
context:
space:
mode:
authorkjc <kjc@openbsd.org>2003-01-07 09:00:33 +0000
committerkjc <kjc@openbsd.org>2003-01-07 09:00:33 +0000
commit9ec2c59632ec144c188814a23709c9f368cac84c (patch)
tree35dd0641d22d40287cabe8f783c7c3d9d34b25ce /sys/net/if_tokensubr.c
parentdo the busy wait loops my favourite style and merry xmas (diff)
downloadwireguard-openbsd-9ec2c59632ec144c188814a23709c9f368cac84c.tar.xz
wireguard-openbsd-9ec2c59632ec144c188814a23709c9f368cac84c.zip
remove the altq classifier code which is replaced by pf and no longer used.
ok henning@, deraadt@
Diffstat (limited to 'sys/net/if_tokensubr.c')
-rw-r--r--sys/net/if_tokensubr.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/sys/net/if_tokensubr.c b/sys/net/if_tokensubr.c
index 7930b72882c..815c7a0a8a8 100644
--- a/sys/net/if_tokensubr.c
+++ b/sys/net/if_tokensubr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_tokensubr.c,v 1.8 2002/07/18 03:26:59 mickey Exp $ */
+/* $OpenBSD: if_tokensubr.c,v 1.9 2003/01/07 09:00:33 kjc Exp $ */
/* $NetBSD: if_tokensubr.c,v 1.7 1999/05/30 00:39:07 bad Exp $ */
/*
@@ -152,7 +152,6 @@ token_output(ifp, m0, dst, rt0)
struct token_rif *rif = (struct token_rif *)0;
struct token_rif bcastrif;
size_t riflen = 0;
- ALTQ_DECL(struct altq_pktattr pktattr;)
short mflags;
if ((ifp->if_flags & (IFF_UP|IFF_RUNNING)) != (IFF_UP|IFF_RUNNING))
@@ -180,12 +179,6 @@ token_output(ifp, m0, dst, rt0)
senderr(rt == rt0 ? EHOSTDOWN : EHOSTUNREACH);
}
- /*
- * If the queueing discipline needs packet classification,
- * do it before prepending link headers.
- */
- IFQ_CLASSIFY(&ifp->if_snd, m, dst->sa_family, &pktattr);
-
switch (dst->sa_family) {
#ifdef INET
@@ -455,7 +448,7 @@ send:
* Queue message on interface, and start output if interface
* not yet active.
*/
- IFQ_ENQUEUE(&ifp->if_snd, m, &pktattr, error);
+ IFQ_ENQUEUE(&ifp->if_snd, m, NULL, error);
if (error) {
/* mbuf is already freed */
splx(s);