/* Does not include H bit; used for least significant octet only. */ #define MPPE_ALL_BITS (MPPE_D_BIT|MPPE_L_BIT|MPPE_S_BIT|MPPE_M_BIT|MPPE_H_BIT)
/* Build a CI from mppe opts (see RFC 3078) */ #define MPPE_OPTS_TO_CI(opts, ci) \ do { \
u_char *ptr = ci; /* u_char[4] */ \
\ /* H bit */ \ if (opts & MPPE_OPT_STATEFUL) \
*ptr++ = 0x0; \ else \
*ptr++ = MPPE_H_BIT; \
*ptr++ = 0; \
*ptr++ = 0; \
\ /* S,L bits */ \
*ptr = 0; \ if (opts & MPPE_OPT_128) \
*ptr |= MPPE_S_BIT; \ if (opts & MPPE_OPT_40) \
*ptr |= MPPE_L_BIT; \ /* M,D,C bits not supported */ \
} while (/* CONSTCOND */ 0)
/* The reverse of the above */ #define MPPE_CI_TO_OPTS(ci, opts) \ do { \
u_char *ptr = ci; /* u_char[4] */ \
\
opts = 0; \
\ /* H bit */ \ if (!(ptr[0] & MPPE_H_BIT)) \
opts |= MPPE_OPT_STATEFUL; \
\ /* S,L bits */ \ if (ptr[3] & MPPE_S_BIT) \
opts |= MPPE_OPT_128; \ if (ptr[3] & MPPE_L_BIT) \
opts |= MPPE_OPT_40; \
\ /* M,D,C bits */ \ if (ptr[3] & MPPE_M_BIT) \
opts |= MPPE_OPT_56; \ if (ptr[3] & MPPE_D_BIT) \
opts |= MPPE_OPT_D; \ if (ptr[3] & MPPE_C_BIT) \
opts |= MPPE_OPT_MPPC; \
\ /* Other bits */ \ if (ptr[0] & ~MPPE_H_BIT) \
opts |= MPPE_OPT_UNKNOWN; \ if (ptr[1] || ptr[2]) \
opts |= MPPE_OPT_UNKNOWN; \ if (ptr[3] & ~MPPE_ALL_BITS) \
opts |= MPPE_OPT_UNKNOWN; \
} while (/* CONSTCOND */ 0)
Messung V0.5 in Prozent
¤ Diese beiden folgenden Angebotsgruppen bietet das Unternehmen0.9Angebot
(Wie Sie bei der Firma Beratungs- und Dienstleistungen beauftragen können 2026-10-01)
¤