[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NAT, Portrange



On Thursday, May 22, 2003, at 07:26 US/Pacific, Sven Thomsen wrote:

OK, have any of the developers done a "final" patch, applyable to current
stable cvs?

While not a developer, I'm positive I didn't screw anything up this time :)


--- sys/net/pf.c	Fri Mar 21 04:47:36 2003
+++ sys/net/pf.c	Fri May 30 17:14:02 2003
@@ -1735,6 +1735,8 @@
 				    r->rpool.proxy_port[1]));
 				return (NULL);
 			}
+			if (nport)
+				HTONS(*nport);
 			break;
 		case PF_BINAT:
 			switch (direction) {