linux/include/uapi/linux/ppp-comp.h

/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
/*
 * ppp-comp.h - Definitions for doing PPP packet compression.
 *
 * Copyright 1994-1998 Paul Mackerras.
 *
 *  This program is free software; you can redistribute it and/or
 *  modify it under the terms of the GNU General Public License
 *  version 2 as published by the Free Software Foundation.
 */
#ifndef _UAPI_NET_PPP_COMP_H
#define _UAPI_NET_PPP_COMP_H


/*
 * CCP codes.
 */

#define CCP_CONFREQ
#define CCP_CONFACK
#define CCP_TERMREQ
#define CCP_TERMACK
#define CCP_RESETREQ
#define CCP_RESETACK

/*
 * Max # bytes for a CCP option
 */

#define CCP_MAX_OPTION_LENGTH

/*
 * Parts of a CCP packet.
 */

#define CCP_CODE(dp)
#define CCP_ID(dp)
#define CCP_LENGTH(dp)
#define CCP_HDRLEN

#define CCP_OPT_CODE(dp)
#define CCP_OPT_LENGTH(dp)
#define CCP_OPT_MINLEN

/*
 * Definitions for BSD-Compress.
 */

#define CI_BSD_COMPRESS
#define CILEN_BSD_COMPRESS

/* Macros for handling the 3rd byte of the BSD-Compress config option. */
#define BSD_NBITS(x)
#define BSD_VERSION(x)
#define BSD_CURRENT_VERSION
#define BSD_MAKE_OPT(v, n)

#define BSD_MIN_BITS
#define BSD_MAX_BITS

/*
 * Definitions for Deflate.
 */

#define CI_DEFLATE
#define CI_DEFLATE_DRAFT
#define CILEN_DEFLATE

#define DEFLATE_MIN_SIZE
#define DEFLATE_MAX_SIZE
#define DEFLATE_METHOD_VAL
#define DEFLATE_SIZE(x)
#define DEFLATE_METHOD(x)
#define DEFLATE_MAKE_OPT(w)
#define DEFLATE_CHK_SEQUENCE

/*
 * Definitions for MPPE.
 */

#define CI_MPPE
#define CILEN_MPPE

/*
 * Definitions for other, as yet unsupported, compression methods.
 */

#define CI_PREDICTOR_1
#define CILEN_PREDICTOR_1
#define CI_PREDICTOR_2
#define CILEN_PREDICTOR_2


#endif /* _UAPI_NET_PPP_COMP_H */