summaryrefslogtreecommitdiffstats
path: root/sys/netinet6
diff options
context:
space:
mode:
authormlaier <mlaier@FreeBSD.org>2004-06-13 17:29:10 +0000
committermlaier <mlaier@FreeBSD.org>2004-06-13 17:29:10 +0000
commit977d97b004a1ae5bbd9d42eae28386f8e2372068 (patch)
tree75b8601b85775d6a872ff81b3098fedeb53233af /sys/netinet6
parent469e445f95c246a203c12198eff9932b25b49b12 (diff)
downloadFreeBSD-src-977d97b004a1ae5bbd9d42eae28386f8e2372068.zip
FreeBSD-src-977d97b004a1ae5bbd9d42eae28386f8e2372068.tar.gz
Link ALTQ to the build and break with ABI for struct ifnet. Please recompile
your (network) modules as well as any userland that might make sense of sizeof(struct ifnet). This does not change the queueing yet. These changes will follow in a seperate commit. Same with the driver changes, which need case by case evaluation. __FreeBSD_version bump will follow. Tested-by: (i386)LINT
Diffstat (limited to 'sys/netinet6')
-rw-r--r--sys/netinet6/ip6_input.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/netinet6/ip6_input.c b/sys/netinet6/ip6_input.c
index 4eb6042..a22eb12 100644
--- a/sys/netinet6/ip6_input.c
+++ b/sys/netinet6/ip6_input.c
@@ -366,6 +366,12 @@ ip6_input(m)
goto bad;
}
+#ifdef ALTQ
+ if (altq_input != NULL && (*altq_input)(m, AF_INET6) == 0) {
+ /* packet is dropped by traffic conditioner */
+ return;
+ }
+#endif
/*
* The following check is not documented in specs. A malicious
* party may be able to use IPv4 mapped addr to confuse tcp/udp stack
OpenPOWER on IntegriCloud