Lines Matching +full:magic +full:- +full:packet
1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
4 * Copyright (c) 1996 - 2001 Brian Somers <brian@Awfulhak.org>
5 * based on work by Toshiharu OHNO <tony-o@iij.ad.jp>
47 #define REJECTED(p, x) ((p)->his_reject & (1<<(x)))
51 u_int16_t his_mru; /* Peers maximum packet size */
52 u_int16_t his_mrru; /* Peers maximum reassembled packet size (MP) */
54 u_int32_t his_magic; /* Peers magic number */
64 u_short want_mru; /* Our maximum packet size */
65 u_short want_mrru; /* Our maximum reassembled packet size (MP) */
67 u_int32_t want_magic; /* Our magic number */
82 int LcpFailedMagic; /* Number of `magic is same' errors */
104 char ident[DEF_MRU - 7]; /* SendIdentification() data */
111 #define TY_MRU 1 /* Maximum-Receive-Unit */
112 #define TY_ACCMAP 2 /* Async-Control-Character-Map */
113 #define TY_AUTHPROTO 3 /* Authentication-Protocol */
114 #define TY_QUALPROTO 4 /* Quality-Protocol */
115 #define TY_MAGICNUM 5 /* Magic-Number */
117 #define TY_PROTOCOMP 7 /* Protocol-Field-Compression */
118 #define TY_ACFCOMP 8 /* Address-and-Control-Field-Compression */
119 #define TY_FCSALT 9 /* FCS-Alternatives */
120 #define TY_SDP 10 /* Self-Describing-Padding */
122 #define TY_CFRAMES 15 /* Compound-frames */
132 #define fsm2lcp(fp) (fp->proto == PROTO_LCP ? (struct lcp *)fp : NULL)