Index: sys/net/altq/altq_subr.c =================================================================== --- sys/net/altq/altq_subr.c +++ sys/net/altq/altq_subr.c @@ -78,7 +78,6 @@ * internal function prototypes */ static void tbr_timeout(void *); -int (*altq_input)(struct mbuf *, int) = NULL; static struct mbuf *tbr_dequeue(struct ifaltq *, int); static int tbr_timer = 0; /* token bucket regulator timer */ #if !defined(__FreeBSD__) || (__FreeBSD_version < 600000) Index: sys/net/altq/if_altq.h =================================================================== --- sys/net/altq/if_altq.h +++ sys/net/altq/if_altq.h @@ -169,7 +169,6 @@ extern int altq_enable(struct ifaltq *); extern int altq_disable(struct ifaltq *); extern struct mbuf *(*tbr_dequeue_ptr)(struct ifaltq *, int); -extern int (*altq_input)(struct mbuf *, int); #if 0 /* ALTQ3_CLFIER_COMPAT */ void altq_etherclassify(struct ifaltq *, struct mbuf *, struct altq_pktattr *); #endif Index: sys/netinet/ip_fastfwd.c =================================================================== --- sys/netinet/ip_fastfwd.c +++ sys/netinet/ip_fastfwd.c @@ -251,14 +251,6 @@ M_ASSERTVALID(m); M_ASSERTPKTHDR(m); -#ifdef ALTQ - /* - * Is packet dropped by traffic conditioner? - */ - if (altq_input != NULL && (*altq_input)(m, AF_INET) == 0) - goto drop; -#endif - /* * Only IP packets without options */ Index: sys/netinet/ip_input.c =================================================================== --- sys/netinet/ip_input.c +++ sys/netinet/ip_input.c @@ -532,12 +532,6 @@ goto bad; } -#ifdef ALTQ - if (altq_input != NULL && (*altq_input)(m, AF_INET) == 0) - /* packet is dropped by traffic conditioner */ - return; -#endif - ip_len = ntohs(ip->ip_len); if (__predict_false(ip_len < hlen)) { IPSTAT_INC(ips_badlen); Index: sys/netinet6/ip6_input.c =================================================================== --- sys/netinet6/ip6_input.c +++ sys/netinet6/ip6_input.c @@ -655,12 +655,6 @@ in6_ifstat_inc(rcvif, ifs6_in_addrerr); 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