summaryrefslogtreecommitdiffstats
path: root/lib/libalias/alias_nbt.c
Commit message (Collapse)AuthorAgeFilesLines
* Build userland libalias using src/sys/netinet/libalias.glebius2005-05-041-722/+0
| | | | | Reviewed by: ru Repocopy by: peter
* Introduce inline {ip,udp,tcp}_next() functions which take a pointer to andes2004-07-061-4/+4
| | | | | | | {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-2/+16
| | | | | | | | | 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.
* Run through indent(1) so I can read the code without getting a headache.des2004-03-161-335/+337
| | | | | 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-0/+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.
* Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup,schweikh2003-01-011-1/+1
| | | | especially in troff files.
* Remove trailing whitespacebrian2002-07-011-42/+42
|
* Avoid unintentional trigraph.wollman2002-05-301-1/+1
|
* Add __FBSDID's to libaliasdillon2001-09-301-3/+4
|
* Change to a standard BSD-style copyrightbrian2001-06-041-13/+22
| | | | Approved by: Atsushi Murai <amurai@spec.co.jp>
* Make header files conform to style(9).brian2001-03-251-3/+3
| | | | | | Reviewed by (*): bde (*) alias_local.h only got a cursory glance.
* Grab ADJUST_CHECKSUM() macro from alias_local.h.ru2000-08-311-17/+0
|
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Remove all diagnostics to stdout/stderr with #ifdef DEBUGbrian1999-03-091-18/+16
| | | | Statify functions in alias_nbt.c
* Reviewed by: freebsd-currentdillon1998-12-141-39/+176
| | | | | | | | | Add bounds checking to netbios NS packet resolving code. This should prevent natd from crashing on badly formed netbios packets (as might be heard when the machine is sitting on a cable modem or certain DSL networks), and also closes potential security holes that might have exploited the lack of bounds checking in the previous version of the code.
* Primary verison of NetBIOS over TCP/IP. Now you can connect Windowsamurai1998-05-241-0/+576
DOMAIN as DOMAIN user through NAT function. See also RFC1002 for futher detail of SMB structure. Submitted by: Atsushi Murai <amurai@spec.co.jp>
OpenPOWER on IntegriCloud