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

/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
/*
 * ppp-ioctl.h - PPP ioctl definitions.
 *
 * Copyright 1999-2002 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 _PPP_IOCTL_H
#define _PPP_IOCTL_H

#include <linux/types.h>
#include <linux/compiler.h>
#include <linux/ppp_defs.h>

/*
 * Bit definitions for flags argument to PPPIOCGFLAGS/PPPIOCSFLAGS.
 */
#define SC_COMP_PROT
#define SC_COMP_AC
#define SC_COMP_TCP
#define SC_NO_TCP_CCID
#define SC_REJ_COMP_AC
#define SC_REJ_COMP_TCP
#define SC_CCP_OPEN
#define SC_CCP_UP
#define SC_ENABLE_IP
#define SC_LOOP_TRAFFIC
#define SC_MULTILINK
#define SC_MP_SHORTSEQ
#define SC_COMP_RUN
#define SC_DECOMP_RUN
#define SC_MP_XSHORTSEQ
#define SC_DEBUG
#define SC_LOG_INPKT
#define SC_LOG_OUTPKT
#define SC_LOG_RAWIN
#define SC_LOG_FLUSH
#define SC_SYNC
#define SC_MUST_COMP
#define SC_MASK

/* state bits */
#define SC_XMIT_BUSY
#define SC_RCV_ODDP
#define SC_RCV_EVNP
#define SC_RCV_B7_1
#define SC_RCV_B7_0
#define SC_DC_FERROR
#define SC_DC_ERROR

/* Used with PPPIOCGNPMODE/PPPIOCSNPMODE */
struct npioctl {};

/* Structure describing a CCP configuration option, for PPPIOCSCOMPRESS */
struct ppp_option_data {};

/* For PPPIOCGL2TPSTATS */
struct pppol2tp_ioc_stats {};

/*
 * Ioctl definitions.
 */

#define PPPIOCGFLAGS
#define PPPIOCSFLAGS
#define PPPIOCGASYNCMAP
#define PPPIOCSASYNCMAP
#define PPPIOCGUNIT
#define PPPIOCGRASYNCMAP
#define PPPIOCSRASYNCMAP
#define PPPIOCGMRU
#define PPPIOCSMRU
#define PPPIOCSMAXCID
#define PPPIOCGXASYNCMAP
#define PPPIOCSXASYNCMAP
#define PPPIOCXFERUNIT
#define PPPIOCSCOMPRESS
#define PPPIOCGNPMODE
#define PPPIOCSNPMODE
#define PPPIOCSPASS
#define PPPIOCSACTIVE
#define PPPIOCGDEBUG
#define PPPIOCSDEBUG
#define PPPIOCGIDLE
#define PPPIOCGIDLE32
#define PPPIOCGIDLE64
#define PPPIOCNEWUNIT
#define PPPIOCATTACH
#define PPPIOCDETACH
#define PPPIOCSMRRU
#define PPPIOCCONNECT
#define PPPIOCDISCONN
#define PPPIOCATTCHAN
#define PPPIOCGCHAN
#define PPPIOCGL2TPSTATS
#define PPPIOCBRIDGECHAN
#define PPPIOCUNBRIDGECHAN

#define SIOCGPPPSTATS
#define SIOCGPPPVER
#define SIOCGPPPCSTATS

#endif /* _PPP_IOCTL_H */