summaryrefslogtreecommitdiffstats
path: root/sys/netgraph/ng_nat.c
Commit message (Collapse)AuthorAgeFilesLines
* Retire the MALLOC and FREE macros. They are an abomination unto style(9).des2008-10-231-8/+8
| | | | MFC after: 3 months
* Pass really available buffer size to libalias instead of MCLBYTES constant.mav2008-06-011-2/+2
| | | | | MCLBYTES constant were used with believe that m_megapullup() always moves date into a fresh cluster that may become not so.
* Add support for the libalias redirect functionality.mav2008-03-011-1/+431
| | | | Submitted by: Vadim Goncharov <vadim_nuclight@mail.ru>
* Add support for setmode and settarget messages.mav2007-05-221-0/+76
| | | | Approved by: glebius (mentor)
* Allow node to bypass traffic while no alias address defined.mav2007-05-221-9/+11
| | | | Approved by: glebius (mentor)
* Return value PKT_ALIAS_FOUND_HEADER_FRAGMENT isn't an error case. Theglebius2006-12-211-1/+2
| | | | | | packet shouldn't be dropped. Submitted by: Alexander Motin <mav alkar.net>
* Correctly calculate length of IP header.glebius2006-12-121-1/+2
| | | | Submitted by: Eugene Hartmann <eugene tpsb.com.ru>
* Remove m_megapullup from ng_nat and put it under libalias.piso2006-12-011-35/+0
| | | | Approved by: gleb
* Fix result of some mechanical change that I did some time ago, whenglebius2006-10-131-2/+2
| | | | writing this node.
* - After LibAlias processing check for TCP packet with th_x2 fieldglebius2005-06-271-8/+51
| | | | | | | | set. If found, then recalculate its checksum. - Remove debugging printfs. - Slightly rearrange code in ng_nat_rcvdata(). Approved by: re (scottl)
* Move assertion below initializer.glebius2005-05-111-3/+3
| | | | | Submitted by: Noritoshi Demizu Pointy hat to: glebius
* - Assert that mbuf length equals packet length.glebius2005-05-101-5/+10
| | | | | - Tell libalias, that we have MCLBYTES to play with. - Obtain length of data in mbuf from updated IP header.
* ng_nat - a netgraph(4) node, which does NATglebius2005-05-051-0/+314
OpenPOWER on IntegriCloud