Subject: Re: WFQ_HASH_SRCADDR added to ALTQ (with patch)
To: <>
From: Petter Lindquist <pollen@astrakan.hig.se>
List: tech-kern
Date: 10/25/2004 13:53:44
Petter Lindquist wrote:

> and the patch for the man-file as requested, in diff -uN format as 
> requested.

Sorry for my braindeadness today, here comes correct patch, and the 
missing patch for reading config file

--- /usr/share/man/man5/altq.conf.5     2003-03-31 19:21:41.000000000 +0200
+++ altq.conf.5 2004-10-25 15:19:52.000000000 +0200
@@ -698,6 +698,8 @@
 Type of hash policy to select a queue.
 .Cm dstaddr
 specifies a hashing policy by IP destination address.
+.Cm srcaddr
+specifies a hashing policy by IP source address.
 .Cm full
 specifies a hashing policy by IP addresses and ports.
 .Cm srcport



--- usr.sbin/altq/libaltq/qop_wfq.c     2002-03-05 05:11:53.000000000 +0100
+++ /usr/src/usr.sbin/altq/libaltq/qop_wfq.c    2004-10-21 
17:00:52.000000000 +0200
@@ -118,6 +118,8 @@
                                        hash_policy = WFQ_HASH_FULL;
                                else if (EQUAL(*argv, "srcport"))
                                        hash_policy = WFQ_HASH_SRCPORT;
+                               else if (EQUAL(*argv, "srcaddr"))
+                                       hash_policy = WFQ_HASH_SRCADDR;
                                else {
                                        LOG(LOG_ERR, 0,
                                            "Unknown hash policy '%s'", 
*argv);