summaryrefslogtreecommitdiff
path: root/PLUGINS
diff options
context:
space:
mode:
authorDavid F. Skoll <dfs@roaringpenguin.com>2002-02-12 20:07:10 +0000
committerDavid F. Skoll <dfs@roaringpenguin.com>2002-02-12 20:07:10 +0000
commitc30d204fe82b18fb9668a05afb587a37f981696c (patch)
tree3f4771e4bd2d4c4491d592e81c918b65b08157e1 /PLUGINS
parent5580a43ba47c96ff41046226a9409c31b5efc8d2 (diff)
downloadppp-c30d204fe82b18fb9668a05afb587a37f981696c.tar.gz
Added new hooks:
snoop_send_hook and snoop_recv_hook allow plugins to watch the flow of frames (typically we're interested in LCP frames). This is useful for implementing L2TP, because the L2TP access concentrator would like to collect some information from LCP and perhaps authentication protocols and forward the information to the LNS.
Diffstat (limited to 'PLUGINS')
-rw-r--r--PLUGINS9
1 files changed, 8 insertions, 1 deletions
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 $ ##