freebsd-dev/sys
Paolo Pisati be4f3cd0d9 Summer of Code 2005: improve libalias - part 1 of 2
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
2006-09-26 23:26:53 +00:00
..
amd64 Added COMPAT_FREEBSD6 option. 2006-09-26 12:36:34 +00:00
arm Use __builtin_va_start instead of __builtin_stdarg_start. GCC4 obsoletes 2006-09-21 01:37:02 +00:00
boot Add mnt_noasync counter to better handle interleaved calls to nmount(), 2006-09-26 04:15:59 +00:00
bsm Merge OpenBSM 1.0 alpha 12 import changes into src/sys/bsm. New events 2006-09-25 12:22:07 +00:00
cam Don't allow attachment of disks that could cause GEOM to panic. 2006-09-16 21:21:07 +00:00
coda Since DELAY() was moved, most <machine/clock.h> #includes have been 2006-05-16 14:37:58 +00:00
compat MFp4: 2006-09-23 19:06:54 +00:00
conf Summer of Code 2005: improve libalias - part 1 of 2 2006-09-26 23:26:53 +00:00
contrib remove this from HEAD too since it got taken off the vendor branch 2006-09-18 17:01:35 +00:00
crypto Less magic. 2006-09-15 10:44:55 +00:00
ddb Fix two nits in the ps header that offset each other making them largely 2006-08-01 22:30:55 +00:00
dev Fix a memory leak in ipmi_unload(). 2006-09-26 15:48:13 +00:00
fs Use mount interlock to protect all changes to mnt_flag and mnt_kern_flag. 2006-09-26 04:12:49 +00:00
gdb Convert to new console api 2006-05-26 13:54:27 +00:00
geom Fix detecting of UFS1 label when mediasize%fragsize != 0. 2006-09-16 11:24:41 +00:00
gnu Add mnt_noasync counter to better handle interleaved calls to nmount(), 2006-09-26 04:15:59 +00:00
i4b Extend i4b to support CAPI manager based ISDN controllers (CAPI manager is part of 2006-07-09 21:16:06 +00:00
i386 The need to run a filter also implies that bouncing could be possible, so 2006-09-26 23:14:42 +00:00
ia64 Added COMPAT_FREEBSD6 option. 2006-09-26 12:36:34 +00:00
isa Eliminate one set of XBOX #ifdefs. The Xbox code just needs to set a 2006-08-09 23:47:38 +00:00
isofs/cd9660 Use mount interlock to protect all changes to mnt_flag and mnt_kern_flag. 2006-09-26 04:12:49 +00:00
kern Reduce fluctuations of mnt_flag to allow unlocked readers to get a 2006-09-26 04:20:09 +00:00
libkern Add strstr() function to the libkern. 2006-08-12 15:28:39 +00:00
modules Summer of Code 2005: improve libalias - part 1 of 2 2006-09-26 23:26:53 +00:00
net Revert r1.80 as the ethernet header was inadvertently stripped from ARP 2006-09-22 21:57:52 +00:00
net80211 Now that we have COMPAT_FREEBSD6 officially, use it from opt_compat.h. 2006-09-26 12:41:13 +00:00
netatalk Since soisdisconnected() is no longer called in pru_detach(), call it 2006-08-05 14:14:34 +00:00
netatm Change semantics of socket close and detach. Add a new protocol switch 2006-07-21 17:11:15 +00:00
netgraph Move ethernet VLAN tags from mtags to its own mbuf packet header field 2006-09-17 13:33:30 +00:00
netinet Summer of Code 2005: improve libalias - part 1 of 2 2006-09-26 23:26:53 +00:00
netinet6 fixed a bug that IPv6 packets arriving to stf are not accepted. 2006-09-22 01:42:22 +00:00
netipsec Fix build breakage from previous commit which confused key_abort and key_close. 2006-07-22 09:18:02 +00:00
netipx Change semantics of socket close and detach. Add a new protocol switch 2006-07-21 17:11:15 +00:00
netkey With exception of the if_name() macro, all definitions in net_osdep.h 2006-08-04 21:27:40 +00:00
netnatm Change semantics of socket close and detach. Add a new protocol switch 2006-07-21 17:11:15 +00:00
netncp - Fix ncp_poll() to not panic if the socket doesn't have any pending data. 2006-08-03 15:31:52 +00:00
netsmb Fix misalignment bugs caused by invalid type casts of pointers 2006-08-22 03:05:51 +00:00
nfs
nfs4client Fixes up the handling of shared vnode lock lookups in the NFS client, 2006-09-13 18:39:09 +00:00
nfsclient Add mnt_noasync counter to better handle interleaved calls to nmount(), 2006-09-26 04:15:59 +00:00
nfsserver - Add a new function nfsrv_destroycache() to tear down the server request 2006-08-01 16:27:14 +00:00
opencrypto When DIAGNOSTIC is defined, verify if we don't free crypto requests from 2006-06-06 15:04:52 +00:00
pc98 Added COMPAT_FREEBSD6 option. 2006-09-26 12:36:34 +00:00
pccard
pci Whitespace nits. 2006-09-15 11:01:23 +00:00
posix4 Backout the feature which can change thread's scheduling option, I really 2006-07-13 06:41:26 +00:00
powerpc Added COMPAT_FREEBSD6 option. 2006-09-26 12:36:34 +00:00
rpc
security Rework the way errors are handled with respect to how audit records are 2006-09-24 13:35:58 +00:00
sparc64 Added COMPAT_FREEBSD6 option. 2006-09-26 12:36:34 +00:00
sys PC98 would also like a trademark. 2006-09-26 12:45:47 +00:00
tools Check for errors when registering and unregistering firmware modules. This 2006-06-16 21:06:03 +00:00
ufs Protect change to bo_flag by holding the bufobj mutex. 2006-09-26 04:21:20 +00:00
vm Make vm_page_release_contig() static. 2006-09-03 22:24:08 +00:00
Makefile Don't need to special case arm here anymore 2006-08-10 06:29:43 +00:00