summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorYASUOKA Masahiko <yasuoka@cvs.openbsd.org>2012-09-10 07:14:34 +0000
committerYASUOKA Masahiko <yasuoka@cvs.openbsd.org>2012-09-10 07:14:34 +0000
commit7094d6e79f983fa7c5b1997064c0fc3f3cfbd815 (patch)
tree745e1a81a7bcc961a59806ae27386a69c49006e6 /sys
parent82665144086d64a2d3881deb4ae144730ce870cb (diff)
add missing the congestion indicator code on IPv6 path.
From brad
Diffstat (limited to 'sys')
-rw-r--r--sys/net/pipex.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/net/pipex.c b/sys/net/pipex.c
index 05e783e544a..ec3a64f081d 100644
--- a/sys/net/pipex.c
+++ b/sys/net/pipex.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pipex.c,v 1.30 2012/07/17 03:18:57 yasuoka Exp $ */
+/* $OpenBSD: pipex.c,v 1.31 2012/09/10 07:14:33 yasuoka Exp $ */
/*-
* Copyright (c) 2009 Internet Initiative Japan Inc.
@@ -1238,6 +1238,8 @@ pipex_ip6_input(struct mbuf *m0, struct pipex_session *session)
if (IF_QFULL(&ip6intrq)) {
IF_DROP(&ip6intrq);
ifp->if_collisions++;
+ if (!ip6intrq.ifq_congestion)
+ if_congestion(&ip6intrq);
splx(s);
goto drop;
}