aboutsummaryrefslogtreecommitdiff
path: root/sys/netinet/libalias/alias_proxy.c
Commit message (Collapse)AuthorAgeFilesLines
* MFC revs. 1.30, 1.31: fix strtoul() error conditions check, kill EOLWS.Maxim Konovalov2007-05-141-3/+3
| | | | Notes: svn path=/stable/6/; revision=169555
* Disable checksum processing in LibAlias, when it works as aGleb Smirnoff2005-06-271-0/+4
| | | | | | | | | | | | | | | | | | kernel module. LibAlias is not aware about checksum offloading, so the caller should provide checksum calculation. (The only current consumer is ng_nat(4)). When TCP packet internals has been changed and it requires checksum recalculation, a cookie is set in th_x2 field of TCP packet, to inform caller that it needs to recalculate checksum. This ugly hack would be removed when LibAlias is made more kernel friendly. Incremental checksum updates are left as is, since they don't conflict with offloading. Approved by: re (scottl) Notes: svn path=/head/; revision=147623
* Add a workaround for 64-bit archs: store unsigned long return value inGleb Smirnoff2005-05-061-3/+6
| | | | | | | temporary variable, check it and then cast to in_addr_t. Notes: svn path=/head/; revision=145963
* s/DEBUG/LIBALIAS_DEBUG/, since DEBUG is defined in LINT andGleb Smirnoff2005-05-061-2/+2
| | | | | | | not supported for kernel build. Notes: svn path=/head/; revision=145961
* More bits for kernel version:Gleb Smirnoff2005-05-051-1/+107
| | | | | | | | - copy inet_aton() from libc - disable getservbyname() lookup and accept only numeric port Notes: svn path=/head/; revision=145933
* Always include alias.h before alias_local.hGleb Smirnoff2005-05-051-2/+2
| | | | Notes: svn path=/head/; revision=145932
* Fix argument order for bcopy() in last commit.Gleb Smirnoff2005-05-051-1/+1
| | | | | | | | Noticed by: njl Pointy hat to: glebius Notes: svn path=/head/; revision=145930
* Use bcopy() instead of memmove().Gleb Smirnoff2005-05-051-1/+1
| | | | Notes: svn path=/head/; revision=145929
* Play with includes so that libalias can be compiled both as userlandGleb Smirnoff2005-05-051-7/+17
| | | | | | | library and kernel module. Notes: svn path=/head/; revision=145921
* Introduce inline {ip,udp,tcp}_next() functions which take a pointer to anDag-Erling Smørgrav2004-07-061-3/+3
| | | | | | | | | | {ip,udp,tcp} header and return a void * pointing to the payload (i.e. the first byte past the end of the header and any required padding). Use them consistently throughout libalias to a) reduce code duplication, b) improve code legibility, c) get rid of a bunch of alignment warnings. Notes: svn path=/head/; revision=131699
* Make libalias WARNS?=6-clean. This mostly involves renaming variablesDag-Erling Smørgrav2004-07-051-10/+15
| | | | | | | | | | | | named link, foo_link or link_foo to lnk, foo_lnk or lnk_foo, fixing signed / unsigned comparisons, and shoving unused function arguments under the carpet. I was hoping WARNS?=6 might reveal more serious problems, and perhaps the source of the -O2 breakage, but found no smoking gun. Notes: svn path=/head/; revision=131614
* Parenthesize return values.Dag-Erling Smørgrav2004-07-051-32/+32
| | | | Notes: svn path=/head/; revision=131613
* Mechanical whitespace cleanup.Dag-Erling Smørgrav2004-07-051-11/+11
| | | | Notes: svn path=/head/; revision=131612
* Run through indent(1) so I can read the code without getting a headache.Dag-Erling Smørgrav2004-03-161-486/+453
| | | | | | | | The result isn't quite knf, but it's knfer than the original, and far more consistent. Notes: svn path=/head/; revision=127094
* Mostly mechanical rework of libalias:Poul-Henning Kamp2004-01-171-20/+23
| | | | | | | | | | | | | | | Makes it possible to have multiple packet aliasing instances in a single process by moving all static and global variables into an instance structure called "struct libalias". Redefine a new API based on s/PacketAlias/LibAlias/g Add new "instance" argument to all functions in the new API. Implement old API in terms of the new API. Notes: svn path=/head/; revision=124621
* Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup,Jens Schweikhardt2003-01-011-1/+1
| | | | | | | especially in troff files. Notes: svn path=/head/; revision=108533
* Remove trailing whitespaceBrian Somers2002-07-011-5/+5
| | | | Notes: svn path=/head/; revision=99207
* cmott@scientech.com -> cm@linktel.netBrian Somers2001-11-031-1/+1
| | | | | | | Requested by: Charles Mott <cmott@scientech.com> Notes: svn path=/head/; revision=85964
* Add __FBSDID's to libaliasMatthew Dillon2001-09-301-2/+3
| | | | Notes: svn path=/head/; revision=84195
* Add BSD-style copyright headersBrian Somers2001-06-041-2/+28
| | | | | | | Approved by: Charles Mott <cmott@scientech.com> Notes: svn path=/head/; revision=77701
* Remove an extraneous declaration.Brian Somers2001-03-251-1/+0
| | | | Notes: svn path=/head/; revision=74768
* Ignore leading witespace in the string given to PacketAliasProxyRule().Brian Somers2001-01-291-0/+1
| | | | Notes: svn path=/head/; revision=71763
* strtok -> strsep (no strtok allowed in libraries)Andrey A. Chernov2000-08-291-3/+6
| | | | | | | add unsigned char cast to ctype macro Notes: svn path=/head/; revision=65221
* Add $FreeBSD$ and spell Eklund properly.Bill Fumerola1999-08-291-0/+2
| | | | | | | Approved by: brian (well, he approved adding $Id$) Notes: svn path=/head/; revision=50597
* Add a ``const'' and remove some inconsistent prototype args.Brian Somers1999-03-241-1/+1
| | | | Notes: svn path=/head/; revision=45008
* Remove all diagnostics to stdout/stderr with #ifdef DEBUGBrian Somers1999-03-091-4/+8
| | | | | | | Statify functions in alias_nbt.c Notes: svn path=/head/; revision=44616
* Version 3.0: January 1, 1999Brian Somers1999-02-271-0/+801
- Transparent proxying support added. - PPTP redirecting support added based on patches contributed by Dru Nelson <dnelson@redwoodsoft.com>. Submitted by: Charles Mott <cmott@srv.net> Notes: svn path=/head/; revision=44307