aboutsummaryrefslogtreecommitdiff
path: root/lib/libalias/alias_util.c
Commit message (Collapse)AuthorAgeFilesLines
* Build userland libalias using src/sys/netinet/libalias.Gleb Smirnoff2005-05-041-164/+0
| | | | | | | | Reviewed by: ru Repocopy by: peter Notes: svn path=/head/; revision=145862
* Introduce inline {ip,udp,tcp}_next() functions which take a pointer to anDag-Erling Smørgrav2004-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. Notes: svn path=/head/; revision=131699
* Make libalias WARNS?=6-clean. This mostly involves renaming variablesDag-Erling Smørgrav2004-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. Notes: svn path=/head/; revision=131614
* Mechanical whitespace cleanup.Dag-Erling Smørgrav2004-07-051-1/+1
| | | | Notes: svn path=/head/; revision=131612
* Deal with aliasing warnings.Dag-Erling Smørgrav2004-03-311-1/+3
| | | | | | | | Reviewed by: ru Approved by: silence on the lists Notes: svn path=/head/; revision=127689
* Run through indent(1) so I can read the code without getting a headache.Dag-Erling Smørgrav2004-03-161-77/+67
| | | | | | | | 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-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. Notes: svn path=/head/; revision=124621
* Remove trailing whitespaceBrian Somers2002-07-011-3/+3
| | | | 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/+4
| | | | 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
* Minor spelling fixes.Ruslan Ermilov2000-04-051-2/+2
| | | | Notes: svn path=/head/; revision=59031
* 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
* Work around an egcs optimizer bug (i386). This should fix the active ftpLuoqi Chen1999-04-211-2/+4
| | | | | | | hang problem. A bug report has been sent to cygnus. Notes: svn path=/head/; revision=45926
* Update to version 2.2. Only the PacketAlias*()Brian Somers1997-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> Notes: svn path=/head/; revision=27864
* Create the alias library. This is currently only used byBrian Somers1997-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> Notes: svn path=/cvs2svn/branches/CMOTT/; revision=26026