Back to index

glibc  2.9
Classes | Defines
if_ppp.h File Reference
#include <sys/types.h>
#include <sys/cdefs.h>
#include <net/if.h>
#include <sys/ioctl.h>
#include <net/ppp_defs.h>

Go to the source code of this file.

Classes

struct  npioctl
struct  ppp_option_data
struct  ifpppstatsreq
struct  ifpppcstatsreq

Defines

#define PPP_MTU   1500 /* Default MTU (size of Info field) */
#define PPP_MAXMRU   65000 /* Largest MRU we allow */
#define PPP_VERSION   "2.2.0"
#define PPP_MAGIC   0x5002 /* Magic value for the ppp structure */
#define PROTO_IPX   0x002b /* protocol numbers */
#define PROTO_DNA_RT   0x0027 /* DNA Routing */
#define SC_COMP_PROT   0x00000001 /* protocol compression (output) */
#define SC_COMP_AC   0x00000002 /* header compression (output) */
#define SC_COMP_TCP   0x00000004 /* TCP (VJ) compression (output) */
#define SC_NO_TCP_CCID   0x00000008 /* disable VJ connection-id comp. */
#define SC_REJ_COMP_AC   0x00000010 /* reject adrs/ctrl comp. on input */
#define SC_REJ_COMP_TCP   0x00000020 /* reject TCP (VJ) comp. on input */
#define SC_CCP_OPEN   0x00000040 /* Look at CCP packets */
#define SC_CCP_UP   0x00000080 /* May send/recv compressed packets */
#define SC_ENABLE_IP   0x00000100 /* IP packets may be exchanged */
#define SC_COMP_RUN   0x00001000 /* compressor has been inited */
#define SC_DECOMP_RUN   0x00002000 /* decompressor has been inited */
#define SC_DEBUG   0x00010000 /* enable debug messages */
#define SC_LOG_INPKT   0x00020000 /* log contents of good pkts recvd */
#define SC_LOG_OUTPKT   0x00040000 /* log contents of pkts sent */
#define SC_LOG_RAWIN   0x00080000 /* log all chars received */
#define SC_LOG_FLUSH   0x00100000 /* log all chars flushed */
#define SC_MASK   0x0fE0ffff /* bits that user can change */
#define SC_ESCAPED   0x80000000 /* saw a PPP_ESCAPE */
#define SC_FLUSH   0x40000000 /* flush input until next PPP_FLAG */
#define SC_VJ_RESET   0x20000000 /* Need to reset the VJ decompressor */
#define SC_XMIT_BUSY   0x10000000 /* ppp_write_wakeup is active */
#define SC_RCV_ODDP   0x08000000 /* have rcvd char with odd parity */
#define SC_RCV_EVNP   0x04000000 /* have rcvd char with even parity */
#define SC_RCV_B7_1   0x02000000 /* have rcvd char with bit 7 = 1 */
#define SC_RCV_B7_0   0x01000000 /* have rcvd char with bit 7 = 0 */
#define SC_DC_FERROR   0x00800000 /* fatal decomp error detected */
#define SC_DC_ERROR   0x00400000 /* non-fatal decomp error detected */
#define ifr__name   b.ifr_ifrn.ifrn_name
#define stats_ptr   b.ifr_ifru.ifru_data
#define PPPIOCGFLAGS   _IOR('t', 90, int) /* get configuration flags */
#define PPPIOCSFLAGS   _IOW('t', 89, int) /* set configuration flags */
#define PPPIOCGASYNCMAP   _IOR('t', 88, int) /* get async map */
#define PPPIOCSASYNCMAP   _IOW('t', 87, int) /* set async map */
#define PPPIOCGUNIT   _IOR('t', 86, int) /* get ppp unit number */
#define PPPIOCGRASYNCMAP   _IOR('t', 85, int) /* get receive async map */
#define PPPIOCSRASYNCMAP   _IOW('t', 84, int) /* set receive async map */
#define PPPIOCGMRU   _IOR('t', 83, int) /* get max receive unit */
#define PPPIOCSMRU   _IOW('t', 82, int) /* set max receive unit */
#define PPPIOCSMAXCID   _IOW('t', 81, int) /* set VJ max slot ID */
#define PPPIOCGXASYNCMAP   _IOR('t', 80, ext_accm) /* get extended ACCM */
#define PPPIOCSXASYNCMAP   _IOW('t', 79, ext_accm) /* set extended ACCM */
#define PPPIOCXFERUNIT   _IO('t', 78) /* transfer PPP unit */
#define PPPIOCSCOMPRESS   _IOW('t', 77, struct ppp_option_data)
#define PPPIOCGNPMODE   _IOWR('t', 76, struct npioctl) /* get NP mode */
#define PPPIOCSNPMODE   _IOW('t', 75, struct npioctl) /* set NP mode */
#define PPPIOCGDEBUG   _IOR('t', 65, int) /* Read debug level */
#define PPPIOCSDEBUG   _IOW('t', 64, int) /* Set debug level */
#define PPPIOCGIDLE   _IOR('t', 63, struct ppp_idle) /* get idle time */
#define SIOCGPPPSTATS   (SIOCDEVPRIVATE + 0)
#define SIOCGPPPVER   (SIOCDEVPRIVATE + 1) /* NEVER change this!! */
#define SIOCGPPPCSTATS   (SIOCDEVPRIVATE + 2)
#define ifr_mtu   ifr_ifru.ifru_metric

Class Documentation

struct npioctl

Definition at line 110 of file if_ppp.h.

Class Members
int protocol
struct ppp_option_data

Definition at line 116 of file if_ppp.h.

Class Members
u_int32_t length
u_int8_t * ptr
int transmit
struct ifpppstatsreq

Definition at line 122 of file if_ppp.h.

struct ifpppcstatsreq

Definition at line 127 of file if_ppp.h.


Define Documentation

#define ifr__name   b.ifr_ifrn.ifrn_name

Definition at line 132 of file if_ppp.h.

#define ifr_mtu   ifr_ifru.ifru_metric

Definition at line 164 of file if_ppp.h.

#define PPP_MAGIC   0x5002 /* Magic value for the ppp structure */

Definition at line 67 of file if_ppp.h.

#define PPP_MAXMRU   65000 /* Largest MRU we allow */

Definition at line 65 of file if_ppp.h.

#define PPP_MTU   1500 /* Default MTU (size of Info field) */

Definition at line 64 of file if_ppp.h.

#define PPP_VERSION   "2.2.0"

Definition at line 66 of file if_ppp.h.

#define PPPIOCGASYNCMAP   _IOR('t', 88, int) /* get async map */

Definition at line 141 of file if_ppp.h.

#define PPPIOCGDEBUG   _IOR('t', 65, int) /* Read debug level */

Definition at line 155 of file if_ppp.h.

#define PPPIOCGFLAGS   _IOR('t', 90, int) /* get configuration flags */

Definition at line 139 of file if_ppp.h.

#define PPPIOCGIDLE   _IOR('t', 63, struct ppp_idle) /* get idle time */

Definition at line 157 of file if_ppp.h.

#define PPPIOCGMRU   _IOR('t', 83, int) /* get max receive unit */

Definition at line 146 of file if_ppp.h.

#define PPPIOCGNPMODE   _IOWR('t', 76, struct npioctl) /* get NP mode */

Definition at line 153 of file if_ppp.h.

#define PPPIOCGRASYNCMAP   _IOR('t', 85, int) /* get receive async map */

Definition at line 144 of file if_ppp.h.

#define PPPIOCGUNIT   _IOR('t', 86, int) /* get ppp unit number */

Definition at line 143 of file if_ppp.h.

#define PPPIOCGXASYNCMAP   _IOR('t', 80, ext_accm) /* get extended ACCM */

Definition at line 149 of file if_ppp.h.

#define PPPIOCSASYNCMAP   _IOW('t', 87, int) /* set async map */

Definition at line 142 of file if_ppp.h.

#define PPPIOCSCOMPRESS   _IOW('t', 77, struct ppp_option_data)

Definition at line 152 of file if_ppp.h.

#define PPPIOCSDEBUG   _IOW('t', 64, int) /* Set debug level */

Definition at line 156 of file if_ppp.h.

#define PPPIOCSFLAGS   _IOW('t', 89, int) /* set configuration flags */

Definition at line 140 of file if_ppp.h.

#define PPPIOCSMAXCID   _IOW('t', 81, int) /* set VJ max slot ID */

Definition at line 148 of file if_ppp.h.

#define PPPIOCSMRU   _IOW('t', 82, int) /* set max receive unit */

Definition at line 147 of file if_ppp.h.

#define PPPIOCSNPMODE   _IOW('t', 75, struct npioctl) /* set NP mode */

Definition at line 154 of file if_ppp.h.

#define PPPIOCSRASYNCMAP   _IOW('t', 84, int) /* set receive async map */

Definition at line 145 of file if_ppp.h.

#define PPPIOCSXASYNCMAP   _IOW('t', 79, ext_accm) /* set extended ACCM */

Definition at line 150 of file if_ppp.h.

#define PPPIOCXFERUNIT   _IO('t', 78) /* transfer PPP unit */

Definition at line 151 of file if_ppp.h.

#define PROTO_DNA_RT   0x0027 /* DNA Routing */

Definition at line 69 of file if_ppp.h.

#define PROTO_IPX   0x002b /* protocol numbers */

Definition at line 68 of file if_ppp.h.

#define SC_CCP_OPEN   0x00000040 /* Look at CCP packets */

Definition at line 82 of file if_ppp.h.

#define SC_CCP_UP   0x00000080 /* May send/recv compressed packets */

Definition at line 83 of file if_ppp.h.

#define SC_COMP_AC   0x00000002 /* header compression (output) */

Definition at line 77 of file if_ppp.h.

#define SC_COMP_PROT   0x00000001 /* protocol compression (output) */

Definition at line 76 of file if_ppp.h.

#define SC_COMP_RUN   0x00001000 /* compressor has been inited */

Definition at line 85 of file if_ppp.h.

#define SC_COMP_TCP   0x00000004 /* TCP (VJ) compression (output) */

Definition at line 78 of file if_ppp.h.

#define SC_DC_ERROR   0x00400000 /* non-fatal decomp error detected */

Definition at line 104 of file if_ppp.h.

#define SC_DC_FERROR   0x00800000 /* fatal decomp error detected */

Definition at line 103 of file if_ppp.h.

#define SC_DEBUG   0x00010000 /* enable debug messages */

Definition at line 87 of file if_ppp.h.

#define SC_DECOMP_RUN   0x00002000 /* decompressor has been inited */

Definition at line 86 of file if_ppp.h.

#define SC_ENABLE_IP   0x00000100 /* IP packets may be exchanged */

Definition at line 84 of file if_ppp.h.

#define SC_ESCAPED   0x80000000 /* saw a PPP_ESCAPE */

Definition at line 95 of file if_ppp.h.

#define SC_FLUSH   0x40000000 /* flush input until next PPP_FLAG */

Definition at line 96 of file if_ppp.h.

#define SC_LOG_FLUSH   0x00100000 /* log all chars flushed */

Definition at line 91 of file if_ppp.h.

#define SC_LOG_INPKT   0x00020000 /* log contents of good pkts recvd */

Definition at line 88 of file if_ppp.h.

#define SC_LOG_OUTPKT   0x00040000 /* log contents of pkts sent */

Definition at line 89 of file if_ppp.h.

#define SC_LOG_RAWIN   0x00080000 /* log all chars received */

Definition at line 90 of file if_ppp.h.

#define SC_MASK   0x0fE0ffff /* bits that user can change */

Definition at line 92 of file if_ppp.h.

#define SC_NO_TCP_CCID   0x00000008 /* disable VJ connection-id comp. */

Definition at line 79 of file if_ppp.h.

#define SC_RCV_B7_0   0x01000000 /* have rcvd char with bit 7 = 0 */

Definition at line 102 of file if_ppp.h.

#define SC_RCV_B7_1   0x02000000 /* have rcvd char with bit 7 = 1 */

Definition at line 101 of file if_ppp.h.

#define SC_RCV_EVNP   0x04000000 /* have rcvd char with even parity */

Definition at line 100 of file if_ppp.h.

#define SC_RCV_ODDP   0x08000000 /* have rcvd char with odd parity */

Definition at line 99 of file if_ppp.h.

#define SC_REJ_COMP_AC   0x00000010 /* reject adrs/ctrl comp. on input */

Definition at line 80 of file if_ppp.h.

#define SC_REJ_COMP_TCP   0x00000020 /* reject TCP (VJ) comp. on input */

Definition at line 81 of file if_ppp.h.

#define SC_VJ_RESET   0x20000000 /* Need to reset the VJ decompressor */

Definition at line 97 of file if_ppp.h.

#define SC_XMIT_BUSY   0x10000000 /* ppp_write_wakeup is active */

Definition at line 98 of file if_ppp.h.

#define SIOCGPPPCSTATS   (SIOCDEVPRIVATE + 2)

Definition at line 161 of file if_ppp.h.

#define SIOCGPPPSTATS   (SIOCDEVPRIVATE + 0)

Definition at line 159 of file if_ppp.h.

#define SIOCGPPPVER   (SIOCDEVPRIVATE + 1) /* NEVER change this!! */

Definition at line 160 of file if_ppp.h.

#define stats_ptr   b.ifr_ifru.ifru_data

Definition at line 133 of file if_ppp.h.