proto.h (78189) | proto.h (81634) |
---|---|
1/*- 2 * Copyright (c) 1996 - 2001 Brian Somers <brian@Awfulhak.org> 3 * based on work by Toshiharu OHNO <tony-o@iij.ad.jp> 4 * Internet Initiative Japan, Inc (IIJ) 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 11 unchanged lines hidden (view full) --- 20 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26 * SUCH DAMAGE. 27 * | 1/*- 2 * Copyright (c) 1996 - 2001 Brian Somers <brian@Awfulhak.org> 3 * based on work by Toshiharu OHNO <tony-o@iij.ad.jp> 4 * Internet Initiative Japan, Inc (IIJ) 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 11 unchanged lines hidden (view full) --- 20 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26 * SUCH DAMAGE. 27 * |
28 * $FreeBSD: head/usr.sbin/ppp/proto.h 78189 2001-06-13 21:52:19Z brian $ | 28 * $FreeBSD: head/usr.sbin/ppp/proto.h 81634 2001-08-14 16:05:52Z brian $ |
29 */ 30 31/* 32 * Definition of protocol numbers 33 */ 34#define PROTO_IP 0x0021 /* IP */ 35#define PROTO_VJUNCOMP 0x002f /* VJ Uncompressed */ 36#define PROTO_VJCOMP 0x002d /* VJ Compressed */ 37#define PROTO_MP 0x003d /* Multilink fragment */ | 29 */ 30 31/* 32 * Definition of protocol numbers 33 */ 34#define PROTO_IP 0x0021 /* IP */ 35#define PROTO_VJUNCOMP 0x002f /* VJ Uncompressed */ 36#define PROTO_VJCOMP 0x002d /* VJ Compressed */ 37#define PROTO_MP 0x003d /* Multilink fragment */ |
38#ifndef NOINET6 39#define PROTO_IPV6 0x0057 /* IPv6 */ 40#endif |
|
38#define PROTO_ICOMPD 0x00fb /* Individual link compressed */ 39#define PROTO_COMPD 0x00fd /* Compressed datagram */ 40 41#define PROTO_COMPRESSIBLE(p) (((p) & 0xffe1) == 0x21) 42 43#define PROTO_IPCP 0x8021 | 41#define PROTO_ICOMPD 0x00fb /* Individual link compressed */ 42#define PROTO_COMPD 0x00fd /* Compressed datagram */ 43 44#define PROTO_COMPRESSIBLE(p) (((p) & 0xffe1) == 0x21) 45 46#define PROTO_IPCP 0x8021 |
47#ifndef NOINET6 48#define PROTO_IPV6CP 0x8057 49#endif |
|
44#define PROTO_ICCP 0x80fb 45#define PROTO_CCP 0x80fd 46 47#define PROTO_LCP 0xc021 48#define PROTO_PAP 0xc023 49#define PROTO_CBCP 0xc029 50#define PROTO_LQR 0xc025 51#define PROTO_CHAP 0xc223 52 53struct lcp; 54 55extern int proto_WrapperOctets(struct lcp *, u_short); 56struct mbuf *proto_Prepend(struct mbuf *, u_short, unsigned, int); 57 58extern struct layer protolayer; | 50#define PROTO_ICCP 0x80fb 51#define PROTO_CCP 0x80fd 52 53#define PROTO_LCP 0xc021 54#define PROTO_PAP 0xc023 55#define PROTO_CBCP 0xc029 56#define PROTO_LQR 0xc025 57#define PROTO_CHAP 0xc223 58 59struct lcp; 60 61extern int proto_WrapperOctets(struct lcp *, u_short); 62struct mbuf *proto_Prepend(struct mbuf *, u_short, unsigned, int); 63 64extern struct layer protolayer; |