X-Git-Url: http://git.ozlabs.org/?p=ppp.git;a=blobdiff_plain;f=PLUGINS;h=af43f51fee859d1cf0f5052e7fcac091e40fb782;hp=206f8fc4e7e66a4c9ed12ef6538bac9c20053561;hb=6e6bb3246106e680463c106d1ee6b773fc4f9c5a;hpb=d95598c16f6a3feb4846db669601856bad15bb74 diff --git a/PLUGINS b/PLUGINS index 206f8fc..af43f51 100644 --- a/PLUGINS +++ b/PLUGINS @@ -98,9 +98,7 @@ to reestablish the link (0 means immediately). int (*pap_check_hook)(void); int (*pap_passwd_hook)(char *user, char *passwd); -int (*pap_auth_hook)(char *user, int userlen, - char *passwd, int passlen, - char **msgp, int *msglenp, +int (*pap_auth_hook)(char *user, char *passwd, char **msgp, struct wordlist **paddrs, struct wordlist **popts); void (*pap_logout_hook)(void); @@ -211,6 +209,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 +263,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.6 2003/02/25 07:43:09 fcusack Exp $ ##