summaryrefslogtreecommitdiffstats
path: root/sys/netinet/libalias/alias_util.c
Commit message (Collapse)AuthorAgeFilesLines
* Disable checksum processing in LibAlias, when it works as aglebius2005-06-271-8/+8
| | | | | | | | | | | | | | | 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)
* - Don't use legacy function in a non-legacy one. This gives usglebius2005-06-201-4/+3
| | | | | | | possibility to compile libalias without legacy support. - Use correct way to mark variable as unused. Approved by: re (dwhite)
* Play with includes so that libalias can be compiled both as userlandglebius2005-05-051-1/+11
| | | | library and kernel module.
* Introduce inline {ip,udp,tcp}_next() functions which take a pointer to andes2004-07-061-1/+1
| | | | | | | {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.
* Make libalias WARNS?=6-clean. This mostly involves renaming variablesdes2004-07-051-0/+2
| | | | | | | | | 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.
* Mechanical whitespace cleanup.des2004-07-051-1/+1
|
* Deal with aliasing warnings.des2004-03-311-1/+3
| | | | | Reviewed by: ru Approved by: silence on the lists
* Run through indent(1) so I can read the code without getting a headache.des2004-03-161-80/+70
| | | | | The result isn't quite knf, but it's knfer than the original, and far more consistent.
* Mostly mechanical rework of libalias:phk2004-01-171-1/+2
| | | | | | | | | | | | 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.
* Remove trailing whitespacebrian2002-07-011-3/+3
|
* cmott@scientech.com -> cm@linktel.netbrian2001-11-031-1/+1
| | | | Requested by: Charles Mott <cmott@scientech.com>
* Add __FBSDID's to libaliasdillon2001-09-301-2/+4
|
* Add BSD-style copyright headersbrian2001-06-041-2/+28
| | | | Approved by: Charles Mott <cmott@scientech.com>
* Minor spelling fixes.ru2000-04-051-2/+2
|
* Add $FreeBSD$ and spell Eklund properly.billf1999-08-291-0/+2
| | | | Approved by: brian (well, he approved adding $Id$)
* Work around an egcs optimizer bug (i386). This should fix the active ftpluoqi1999-04-211-2/+4
| | | | hang problem. A bug report has been sent to cygnus.
* Update to version 2.2. Only the PacketAlias*()brian1997-08-031-2/+4
| | | | | | functions should now be used. The old 2.1 stuff is there for backwards compatability. Submitted by: Charles Mott <cmott@snake.srv.net>
* Create the alias library. This is currently only used bybrian1997-05-231-0/+135
ppp (or will be shortly). Natd can now be updated to use this library rather than carrying its own version of the code. Submitted by: Charles Mott <cmott@srv.net>
OpenPOWER on IntegriCloud