summaryrefslogtreecommitdiffstats
path: root/sys/netinet/libalias/alias_smedia.c
Commit message (Collapse)AuthorAgeFilesLines
* -don't pass down, to module's fingerprint function, unused data likepiso2009-04-081-1/+1
| | | | | | a pointer to the ip header. -style -spacing
* MFP4:piso2008-03-061-2/+4
| | | | | | restrict the utilization of direct pointers to the content of ip packet. These modifications are functionally nop()s thus can be merged with no side effects.
* Fix TFTP NAT support by making sure the appropriate fingerprinting checksmarcus2006-11-071-2/+4
| | | | | | are done. Reviewed by: piso
* Summer of Code 2005: improve libalias - part 1 of 2piso2006-09-261-3/+85
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With the first part of my previous Summer of Code work, we get: -made libalias modular: -support for 'particular' protocols (like ftp/irc/etcetc) is no more hardcoded inside libalias, but it's available through external modules loadable at runtime -modules are available both in kernel (/boot/kernel/alias_*.ko) and user land (/lib/libalias_*) -protocols/applications modularized are: cuseeme, ftp, irc, nbt, pptp, skinny and smedia -added logging support for kernel side -cleanup After a buildworld, do a 'mergemaster -i' to install the file libalias.conf in /etc or manually copy it. During startup (and after every HUP signal) user land applications running the new libalias will try to read a file in /etc called libalias.conf: that file contains the list of modules to load. User land applications affected by this commit are ppp and natd: if libalias.conf is present in /etc you won't notice any difference. The only kernel land bit affected by this commit is ng_nat: if you are using ng_nat, and it doesn't correctly handle ftp/irc/etcetc sessions anymore, remember to kldload the correspondent module (i.e. kldload alias_ftp). General information and details about the inner working are available in the libalias man page under the section 'MODULAR ARCHITECTURE (AND ipfw(4) SUPPORT)'. NOTA BENE: this commit affects _ONLY_ libalias, ipfw in-kernel nat support will be part of the next libalias-related commit. Approved by: glebius Reviewed by: glebius, ru
* Disable checksum processing in LibAlias, when it works as aglebius2005-06-271-1/+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)
* s/DEBUG/LIBALIAS_DEBUG/, since DEBUG is defined in LINT andglebius2005-05-061-2/+2
| | | | not supported for kernel build.
* Always include alias.h before alias_local.hglebius2005-05-051-1/+1
|
* Play with includes so that libalias can be compiled both as userlandglebius2005-05-051-1/+12
| | | | library and kernel module.
* Introduce inline {ip,udp,tcp}_next() functions which take a pointer to andes2004-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.
* Make libalias WARNS?=6-clean. This mostly involves renaming variablesdes2004-07-051-21/+23
| | | | | | | | | 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.
* Parenthesize return values.des2004-07-051-7/+7
|
* Run through indent(1) so I can read the code without getting a headache.des2004-03-161-264/+274
| | | | | 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-10/+10
| | | | | | | | | | | | 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-23/+23
|
* Add __FBSDID's to libaliasdillon2001-09-301-2/+3
|
* Add a few ``const''s to silence some -Wwrite-strings warningsbrian2001-01-291-7/+9
|
* Added boolean argument to link searching functions, indicatingru2000-10-301-1/+1
| | | | whether they should create a link if lookup has failed or not.
* Add -Wmissing-prototypes.ru2000-09-151-3/+6
|
* Add address translation support for RTSP/RTP used by RealPlayer andarchie2000-07-261-0/+427
Quicktime streaming media applications. Add a BUGS section to the man page. Submitted by: Erik Salander <erik@whistle.com>
OpenPOWER on IntegriCloud