/* SPDX-License-Identifier: GPL-2.0 */ #define MPPE_PAD … #define MPPE_MAX_KEY_LEN … /* option bits for ccp_options.mppe */ #define MPPE_OPT_40 … #define MPPE_OPT_128 … #define MPPE_OPT_STATEFUL … /* unsupported opts */ #define MPPE_OPT_56 … #define MPPE_OPT_MPPC … #define MPPE_OPT_D … #define MPPE_OPT_UNSUPPORTED … #define MPPE_OPT_UNKNOWN … /* * This is not nice ... the alternative is a bitfield struct though. * And unfortunately, we cannot share the same bits for the option * names above since C and H are the same bit. We could do a u_int32 * but then we have to do a htonl() all the time and/or we still need * to know which octet is which. */ #define MPPE_C_BIT … #define MPPE_D_BIT … #define MPPE_L_BIT … #define MPPE_S_BIT … #define MPPE_M_BIT … #define MPPE_H_BIT … /* Does not include H bit; used for least significant octet only. */ #define MPPE_ALL_BITS … /* Build a CI from mppe opts (see RFC 3078) */ #define MPPE_OPTS_TO_CI(opts, ci) … /* The reverse of the above */ #define MPPE_CI_TO_OPTS(ci, opts) …