summaryrefslogtreecommitdiff
path: root/sys/net/if.c
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2011-07-06 02:42:29 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2011-07-06 02:42:29 +0000
commit1a89f467197b52dbc105d9fb9b7aef6a030434a1 (patch)
tree00cefeb8bef85227278c728f72202394a4fd7923 /sys/net/if.c
parent194261cc022557c08e3f9e352f90ff1810814094 (diff)
cosnistently use IFQ_SET_MAXLEN, surfaced in a discussion with + ok bluhm
Diffstat (limited to 'sys/net/if.c')
-rw-r--r--sys/net/if.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if.c b/sys/net/if.c
index 6c3b90020a1..edf45b23e00 100644
--- a/sys/net/if.c
+++ b/sys/net/if.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if.c,v 1.236 2011/07/05 00:58:27 henning Exp $ */
+/* $OpenBSD: if.c,v 1.237 2011/07/06 02:42:28 henning Exp $ */
/* $NetBSD: if.c,v 1.35 1996/05/07 05:26:04 thorpej Exp $ */
/*
@@ -279,7 +279,7 @@ if_attachsetup(struct ifnet *ifp)
ifindex2ifnet[if_index] = ifp;
if (ifp->if_snd.ifq_maxlen == 0)
- ifp->if_snd.ifq_maxlen = ifqmaxlen;
+ IFQ_SET_MAXLEN(&ifp->if_snd, ifqmaxlen);
#ifdef ALTQ
ifp->if_snd.altq_type = 0;
ifp->if_snd.altq_disc = NULL;