From 977d97b004a1ae5bbd9d42eae28386f8e2372068 Mon Sep 17 00:00:00 2001 From: mlaier Date: Sun, 13 Jun 2004 17:29:10 +0000 Subject: 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 --- sys/netinet/ip_input.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'sys/netinet/ip_input.c') diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c index 586d1b1..25501aa 100644 --- a/sys/netinet/ip_input.c +++ b/sys/netinet/ip_input.c @@ -390,6 +390,12 @@ ip_input(struct mbuf *m) goto bad; } +#ifdef ALTQ + if (altq_input != NULL && (*altq_input)(m, AF_INET) == 0) + /* packet is dropped by traffic conditioner */ + return; +#endif + /* * Convert fields to host representation. */ -- cgit v1.1