summaryrefslogtreecommitdiffstats
path: root/sys/net/if_sppp.h
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1998-12-27 21:30:44 +0000
committerphk <phk@FreeBSD.org>1998-12-27 21:30:44 +0000
commitd47a7a8e1a57bb7b4c4f588baa5a95bd44a26cec (patch)
treef92caa523aaa53be48024e1fbaa40fbb7b0adf0d /sys/net/if_sppp.h
parent2ea136bdcf134c4c721d5447277da61868714b14 (diff)
downloadFreeBSD-src-d47a7a8e1a57bb7b4c4f588baa5a95bd44a26cec.zip
FreeBSD-src-d47a7a8e1a57bb7b4c4f588baa5a95bd44a26cec.tar.gz
Update sppp support to i4b level. This includes the new spppcontrol
program to set PPP options like authentication with.
Diffstat (limited to 'sys/net/if_sppp.h')
-rw-r--r--sys/net/if_sppp.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/sys/net/if_sppp.h b/sys/net/if_sppp.h
index 058e667..67a63ae 100644
--- a/sys/net/if_sppp.h
+++ b/sys/net/if_sppp.h
@@ -16,7 +16,7 @@
*
* From: Version 2.0, Fri Oct 6 20:39:21 MSK 1995
*
- * $Id: if_sppp.h,v 1.11 1998/12/11 21:42:57 phk Exp $
+ * $Id: if_sppp.h,v 1.12 1998/12/20 19:06:22 phk Exp $
*/
#ifndef _NET_IF_SPPP_H_
@@ -45,6 +45,7 @@ struct sipcp {
u_int flags;
#define IPCP_HISADDR_SEEN 1 /* have seen his address already */
#define IPCP_MYADDR_DYN 2 /* my address is dynamically assigned */
+#define IPCP_MYADDR_SEEN 4 /* have seen his address already */
};
#define AUTHNAMELEN 32
@@ -116,7 +117,15 @@ struct sppp {
*/
void (*pp_tls)(struct sppp *sp);
void (*pp_tlf)(struct sppp *sp);
-
+ /*
+ * These (optional) functions may be filled by the hardware
+ * driver if any notification of established connections
+ * (currently: IPCP up) is desired (pp_con) or any internal
+ * state change of the interface state machine should be
+ * signaled for monitoring purposes (pp_chg).
+ */
+ void (*pp_con)(struct sppp *sp);
+ void (*pp_chg)(struct sppp *sp, int new_state);
/* These two fields are for use by the lower layer */
void *pp_lowerp;
int pp_loweri;
OpenPOWER on IntegriCloud