diff options
author | rik <rik@FreeBSD.org> | 2004-12-28 00:07:57 +0000 |
---|---|---|
committer | rik <rik@FreeBSD.org> | 2004-12-28 00:07:57 +0000 |
commit | 43775c98bdbe446ff68bfc14cd23d9f53625b95e (patch) | |
tree | 7433bf1374127facc9c84e9711fd78a06a4b0727 /sys/net/if_sppp.h | |
parent | 4eebca2138d71cf530bfe31fb0500b951dd9a7ea (diff) | |
download | FreeBSD-src-43775c98bdbe446ff68bfc14cd23d9f53625b95e.zip FreeBSD-src-43775c98bdbe446ff68bfc14cd23d9f53625b95e.tar.gz |
Add FR support to sppp (MFCronyx).
Silence on: net@, current@, hackers@.
No objections: joerg
Requested by: by many (mostly Cronyx) users for a long long time.
MFC after: 10 days
PR: kern/21771, kern/66348
Diffstat (limited to 'sys/net/if_sppp.h')
-rw-r--r-- | sys/net/if_sppp.h | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/sys/net/if_sppp.h b/sys/net/if_sppp.h index d253ee7..4149663 100644 --- a/sys/net/if_sppp.h +++ b/sys/net/if_sppp.h @@ -1,7 +1,7 @@ /* - * Defines for synchronous PPP/Cisco link level subroutines. + * Defines for synchronous PPP/Cisco/Frame Relay link level subroutines. * - * Copyright (C) 1994 Cronyx Ltd. + * Copyright (C) 1994-2000 Cronyx Engineering. * Author: Serge Vakulenko, <vak@cronyx.ru> * * Heavily revamped to conform to RFC 1661. @@ -165,6 +165,8 @@ struct sppp { struct sauth myauth; /* auth params, i'm peer */ struct sauth hisauth; /* auth params, i'm authenticator */ struct slcompress *pp_comp; /* for VJ compression */ + u_short fr_dlci; /* Frame Relay DLCI number, 16..1023 */ + u_char fr_status; /* PVC status, active/new/delete */ /* * These functions are filled in by sppp_attach(), and are * expected to be used by the lower layer (hardware) drivers @@ -204,6 +206,7 @@ struct sppp { /* bits for pp_flags */ #define PP_KEEPALIVE 0x01 /* use keepalive protocol */ +#define PP_FR 0x04 /* use Frame Relay protocol instead of PPP */ /* 0x04 was PP_TIMO */ #define PP_CALLIN 0x08 /* we are being called */ #define PP_NEEDAUTH 0x10 /* remote requested authentication */ @@ -216,6 +219,14 @@ struct mbuf *sppp_dequeue (struct ifnet *ifp); struct mbuf *sppp_pick(struct ifnet *ifp); int sppp_isempty (struct ifnet *ifp); void sppp_flush (struct ifnet *ifp); + +/* Internal functions */ +void sppp_fr_input (struct sppp *sp, struct mbuf *m); +struct mbuf *sppp_fr_header (struct sppp *sp, struct mbuf *m, int fam); +void sppp_fr_keepalive (struct sppp *sp); +void sppp_get_ip_addrs(struct sppp *sp, u_long *src, u_long *dst, + u_long *srcmask); + #endif #endif /* _NET_IF_SPPP_H_ */ |