summaryrefslogtreecommitdiffstats
path: root/sbin/ipfw/nat.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove unused valueskevlo2012-09-111-3/+3
|
* Fix some compile errors at high WARNS, including oneluigi2012-07-301-0/+2
| | | | | | | | | for an uninitialized variable. unused parameters and variables are annotated with (void)foo; /* UNUSED */ instead of __unused, because this code needs to build also on linux and windows.
* Fix parsing of redirect_addr argument.glebius2011-11-231-1/+2
| | | | | PR: kern/162739 MFC after: 3 days
* Actually, if code had followed style(9), there would be less stupid errorsglebius2011-06-241-15/+30
| | | | | | like the one fixed in r223416. Noticed by: julian
* One more braino from me.glebius2011-06-221-3/+6
| | | | | Pointy hat to: glebius Submitted by: Alexander V. Chernikov <melifaro ipfw.ru>
* - Fix my braino in the 220835, when I used strtok(). It isn'tglebius2011-06-171-14/+32
| | | | | | | | | | | applicable here, since modifies the string. Switch to strchr(). - Restore support for undocumented optional parameters of redir_port and redir_proto, that were disabled in 220835. - While here, change !isalpha() checks on optinal parameters for isdigit(). Submitted by: Alexander V. Chernikov <melifaro ipfw.ru> PR: kern/143653
* Implement "global" mode for ipfw nat. It is similar to natd(8)ae2011-06-141-1/+9
| | | | | | | | | | | | | | | | "globalport" option for multiple NAT instances. If ipfw rule contains "global" keyword instead of nat_number, then for each outgoing packet ipfw_nat looks up translation state in all configured nat instances. If an entry is found, packet aliased according to that entry, otherwise packet is passed unchanged. User can specify "skip_global" option in NAT configuration to exclude an instance from the lookup in global mode. PR: kern/157867 Submitted by: Alexander V. Chernikov (previous version) Tested by: Eugene Grosbein
* Check nat id a bit more strictly.ae2011-06-141-6/+7
|
* Rewrite NAT configuration parser, so that memory allocation size isglebius2011-04-191-186/+189
| | | | | | calculated dynamically. PR: kern/143653
* More whitespace fixes.glebius2011-04-181-29/+29
| | | | Checked with: md5, diff -x -w
* Whitespace fixes.glebius2011-04-181-99/+98
| | | | Checked with: md5, diff -w
* remove some signed/unsigned and one const/!const warningluigi2009-03-051-5/+5
|
* Add SCTP NAT support.piso2009-02-071-15/+52
| | | | Submitted by: CAIA (http://caia.swin.edu.au)
* put the altq-related functions into a separate file.luigi2009-02-011-2/+0
| | | | | Minor cleanup of the includes used by the various source files, including annotations of why certain headers are used.
* Put nat and ipv6 support in their own files.luigi2009-01-271-0/+905
Usual moving of code with no changes from ipfw2.c to the newly created files, and addition of prototypes to ipfw2.h I have added forward declarations for ipfw_insn_* in ipfw2.h to avoid a global dependency on ip_fw.h
OpenPOWER on IntegriCloud