X-Git-Url: http://git.ozlabs.org/?p=ppp.git;a=blobdiff_plain;f=PLUGINS;h=e3e6718cb0669ee9e92c1f37c001d3007456cb24;hp=206f8fc4e7e66a4c9ed12ef6538bac9c20053561;hb=e13c0b8028f33c240ab4a468e719863b6a951b27;hpb=d95598c16f6a3feb4846db669601856bad15bb74 diff --git a/PLUGINS b/PLUGINS index 206f8fc..e3e6718 100644 --- a/PLUGINS +++ b/PLUGINS @@ -211,6 +211,13 @@ address. If the hook returns 1, the address is accepted. If it returns in the normal away against the appropriate options and secrets files. +void (*snoop_recv_hook)(unsigned char *p, int len) +void (*snoop_send_hook)(unsigned char *p, int len) + +These hooks are called whenever pppd receives or sends a packet. The +packet is in p; its length is len. This allows plugins to "snoop in" +on the pppd conversation. The hooks may prove useful in implmenting +L2TP. A plugin registers itself with a notifier by declaring a procedure of the form: @@ -258,4 +265,4 @@ Here is a list of the currently-implemented notifiers in pppd. -## $Id: PLUGINS,v 1.4 2002/01/22 16:02:55 dfs Exp $ ## +## $Id: PLUGINS,v 1.5 2002/02/12 20:07:09 dfs Exp $ ##