diff options
author | 2013-03-26 13:19:25 +0000 | |
---|---|---|
committer | 2013-03-26 13:19:25 +0000 | |
commit | dabd68ec8baf6a97d5368a86ec32750b3a57490b (patch) | |
tree | e79ac75a1196c343915675f0326ad651d2f047d7 /sys/net/if_tun.c | |
parent | Fix compiler warnings, missing #include. From Thomas Adam. (diff) | |
download | wireguard-openbsd-dabd68ec8baf6a97d5368a86ec32750b3a57490b.tar.xz wireguard-openbsd-dabd68ec8baf6a97d5368a86ec32750b3a57490b.zip |
Remove various read-only *maxlen variables and use IFQ_MAXLEN directly.
ok beck@, mikeb@
Diffstat (limited to 'sys/net/if_tun.c')
-rw-r--r-- | sys/net/if_tun.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_tun.c b/sys/net/if_tun.c index 63a4df98f9c..55d2e07f9ca 100644 --- a/sys/net/if_tun.c +++ b/sys/net/if_tun.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_tun.c,v 1.112 2011/07/09 00:47:18 henning Exp $ */ +/* $OpenBSD: if_tun.c,v 1.113 2013/03/26 13:19:26 mpi Exp $ */ /* $NetBSD: if_tun.c,v 1.24 1996/05/07 02:40:48 thorpej Exp $ */ /* @@ -186,7 +186,7 @@ tun_create(struct if_clone *ifc, int unit, int flags) ifp->if_start = tunstart; ifp->if_hardmtu = TUNMRU; ifp->if_link_state = LINK_STATE_DOWN; - IFQ_SET_MAXLEN(&ifp->if_snd, ifqmaxlen); + IFQ_SET_MAXLEN(&ifp->if_snd, IFQ_MAXLEN); IFQ_SET_READY(&ifp->if_snd); if ((flags & TUN_LAYER2) == 0) { |