Linux Kernel
3.7.1
|
#include <linux/errno.h>
#include <linux/hdlc.h>
#include <linux/if_arp.h>
#include <linux/inetdevice.h>
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/pkt_sched.h>
#include <linux/poll.h>
#include <linux/skbuff.h>
#include <linux/slab.h>
#include <linux/spinlock.h>
Go to the source code of this file.
Data Structures | |
struct | hdlc_header |
struct | cp_header |
struct | proto |
struct | ppp |
Macros | |
#define | DEBUG_CP 0 /* also bytes# to dump */ |
#define | DEBUG_STATE 0 |
#define | DEBUG_HARD_HEADER 0 |
#define | HDLC_ADDR_ALLSTATIONS 0xFF |
#define | HDLC_CTRL_UI 0x03 |
#define | PID_LCP 0xC021 |
#define | PID_IP 0x0021 |
#define | PID_IPCP 0x8021 |
#define | PID_IPV6 0x0057 |
#define | PID_IPV6CP 0x8057 |
Enumerations | |
enum | { IDX_LCP = 0, IDX_IPCP, IDX_IPV6CP, IDX_COUNT } |
enum | { CP_CONF_REQ = 1, CP_CONF_ACK, CP_CONF_NAK, CP_CONF_REJ, CP_TERM_REQ, CP_TERM_ACK, CP_CODE_REJ, LCP_PROTO_REJ, LCP_ECHO_REQ, LCP_ECHO_REPLY, LCP_DISC_REQ, CP_CODES } |
enum | { LCP_OPTION_MRU = 1, LCP_OPTION_ACCM, LCP_OPTION_MAGIC = 5 } |
enum | { CLOSED = 0, STOPPED, STOPPING, REQ_SENT, ACK_RECV, ACK_SENT, OPENED, STATES, STATE_MASK = 0xF } |
enum | { START = 0, STOP, TO_GOOD, TO_BAD, RCR_GOOD, RCR_BAD, RCA, RCN, RTR, RTA, RUC, RXJ_GOOD, RXJ_BAD, EVENTS } |
enum | { INV = 0x10, IRC = 0x20, ZRC = 0x40, SCR = 0x80, SCA = 0x100, SCN = 0x200, STR = 0x400, STA = 0x800, SCJ = 0x1000 } |
Functions | |
module_init (mod_init) | |
module_exit (mod_exit) | |
MODULE_AUTHOR ("Krzysztof Halasa <khc@pm.waw.pl>") | |
MODULE_DESCRIPTION ("PPP protocol support for generic HDLC") | |
MODULE_LICENSE ("GPL v2") | |
Definition at line 25 of file hdlc_ppp.c.
#define DEBUG_HARD_HEADER 0 |
Definition at line 27 of file hdlc_ppp.c.
#define DEBUG_STATE 0 |
Definition at line 26 of file hdlc_ppp.c.
#define HDLC_ADDR_ALLSTATIONS 0xFF |
Definition at line 29 of file hdlc_ppp.c.
#define HDLC_CTRL_UI 0x03 |
Definition at line 30 of file hdlc_ppp.c.
#define PID_IP 0x0021 |
Definition at line 33 of file hdlc_ppp.c.
#define PID_IPCP 0x8021 |
Definition at line 34 of file hdlc_ppp.c.
#define PID_IPV6 0x0057 |
Definition at line 35 of file hdlc_ppp.c.
#define PID_IPV6CP 0x8057 |
Definition at line 36 of file hdlc_ppp.c.
#define PID_LCP 0xC021 |
Definition at line 32 of file hdlc_ppp.c.
anonymous enum |
Definition at line 38 of file hdlc_ppp.c.
anonymous enum |
CP_CONF_REQ | |
CP_CONF_ACK | |
CP_CONF_NAK | |
CP_CONF_REJ | |
CP_TERM_REQ | |
CP_TERM_ACK | |
CP_CODE_REJ | |
LCP_PROTO_REJ | |
LCP_ECHO_REQ | |
LCP_ECHO_REPLY | |
LCP_DISC_REQ | |
CP_CODES |
Definition at line 39 of file hdlc_ppp.c.
anonymous enum |
Definition at line 50 of file hdlc_ppp.c.
anonymous enum |
Definition at line 85 of file hdlc_ppp.c.
anonymous enum |
Definition at line 87 of file hdlc_ppp.c.
anonymous enum |
Definition at line 89 of file hdlc_ppp.c.
MODULE_AUTHOR | ( | "Krzysztof Halasa <khc@pm.waw.pl>" | ) |
module_exit | ( | mod_exit | ) |
module_init | ( | mod_init | ) |
MODULE_LICENSE | ( | "GPL v2" | ) |