libhd  5.0
pppoe.h
Go to the documentation of this file.
PacketCriteriaStruct
Definition: pppoe.c:109
PPPoETagStruct
Definition: pppoe.c:85
s_hd_t::base_class
hd_id_t base_class
Base class (id and name).
Definition: hd.h:2236
receive_packet
static int receive_packet(int fd, PPPoEPacket *pkt, size_t *size)
Definition: pppoe.c:306
PPPoEPacketStruct::length
unsigned int length
Definition: pppoe.c:75
PPPoEPacketStruct::payload
unsigned char payload[ETH_DATA_LEN]
Definition: pppoe.c:76
TAG_AC_SYSTEM_ERROR
#define TAG_AC_SYSTEM_ERROR
Definition: pppoe.c:59
parse_packet
static int parse_packet(PPPoEConnection *conn, PPPoEPacket *packet, parse_func *func, void *extra)
Definition: pppoe.c:133
PacketCriteriaStruct::error
int error
Definition: pppoe.c:113
hd_data_t::hd
hd_t * hd
Current hardware list.
Definition: hd.h:2615
hd_scan_pppoe
void hd_scan_pppoe(hd_data_t *hd_data2)
Definition: pppoe.c:569
MAX_PPPOE_PAYLOAD
#define MAX_PPPOE_PAYLOAD
Definition: pppoe.c:82
CODE_PADI
#define CODE_PADI
Definition: pppoe.c:44
PPPoETag
struct PPPoETagStruct PPPoETag
TAG_AC_NAME
#define TAG_AC_NAME
Definition: pppoe.c:53
mod_pppoe
Definition: hd_int.h:82
TAG_SERVICE_NAME_ERROR
#define TAG_SERVICE_NAME_ERROR
Definition: pppoe.c:58
PROGRESS
#define PROGRESS(a, b, c)
Definition: hd_int.h:65
PPPoEConnectionStruct::ifname
char * ifname
Definition: pppoe.c:100
PPPoEPacketStruct::ethHdr
struct ethhdr ethHdr
Definition: pppoe.c:70
TAG_END_OF_LIST
#define TAG_END_OF_LIST
Definition: pppoe.c:51
s_hd_t::unix_dev_name
char * unix_dev_name
Special device file.
Definition: hd.h:2353
PPPoEConnectionStruct::received_pado
int received_pado
Definition: pppoe.c:102
s_hd_t
Individual hardware item.
Definition: hd.h:2201
parse_pado_tags
static void parse_pado_tags(uint16_t type, uint16_t len, unsigned char *data, void *extra)
Definition: pppoe.c:348
close_intefaces
static void close_intefaces(int n, PPPoEConnection *conns)
Definition: pppoe.c:277
TAG_HDR_SIZE
#define TAG_HDR_SIZE
Definition: pppoe.c:92
discovery
static void discovery(int n, PPPoEConnection *conns)
Definition: pppoe.c:547
PPPoEPacketStruct::code
unsigned int code
Definition: pppoe.c:73
PacketCriteria
struct PacketCriteriaStruct PacketCriteria
s_hd_t::next
struct s_hd_t * next
Link to next hardware item.
Definition: hd.h:2202
TAG_GENERIC_ERROR
#define TAG_GENERIC_ERROR
Definition: pppoe.c:60
CODE_PADO
#define CODE_PADO
Definition: pppoe.c:45
wait_for_pado
static int wait_for_pado(int n, PPPoEConnection *conns)
Definition: pppoe.c:443
hd_data_t::module
unsigned module
(Internal) the current probing module we are in
Definition: hd.h:2686
PPPoEConnectionStruct::hd
hd_t * hd
Definition: pppoe.c:105
parse_hostuniq
static void parse_hostuniq(uint16_t type, uint16_t len, unsigned char *data, void *extra)
Definition: pppoe.c:320
ADD2LOG
#define ADD2LOG(a...)
Definition: hd_int.h:66
send_padi
static int send_padi(int n, PPPoEConnection *conns)
Definition: pppoe.c:380
packet_for_me
static int packet_for_me(PPPoEConnection *conn, PPPoEPacket *packet)
Definition: pppoe.c:334
send_packet
static int send_packet(int fd, PPPoEPacket *pkt, size_t size)
Definition: pppoe.c:294
bc_network_interface
Definition: hd.h:168
ETH_PPPOE_DISCOVERY
#define ETH_PPPOE_DISCOVERY
Definition: pppoe.c:40
hd_probe_feature
int hd_probe_feature(hd_data_t *hd_data, enum probe_feature feature)
Definition: hd.c:595
PPPoEConnection
struct PPPoEConnectionStruct PPPoEConnection
TAG_HOST_UNIQ
#define TAG_HOST_UNIQ
Definition: pppoe.c:54
check_room
static int check_room(PPPoEConnection *conn, unsigned char *cursor, unsigned char *start, uint16_t len)
Definition: pppoe.c:121
PPPoEPacketStruct
Definition: pppoe.c:69
PacketCriteriaStruct::acname_ok
int acname_ok
Definition: pppoe.c:111
PPPoEConnectionStruct::peer_mac
unsigned char peer_mac[ETH_ALEN]
Definition: pppoe.c:104
hd_id_t::id
unsigned id
Numeric id.
Definition: hd.h:401
hd.h
s_hd_t::sub_class
hd_id_t sub_class
Sub class (id and name).
Definition: hd.h:2241
PPPoEConnectionStruct::my_mac
unsigned char my_mac[ETH_ALEN]
Definition: pppoe.c:103
MAX_ATTEMPTS
#define MAX_ATTEMPTS
Definition: pppoe.c:63
PacketCriteriaStruct::conn
PPPoEConnection * conn
Definition: pppoe.c:110
HDR_SIZE
#define HDR_SIZE
Definition: pppoe.c:81
TAG_SERVICE_NAME
#define TAG_SERVICE_NAME
Definition: pppoe.c:52
hd_int.h
sc_nif_ethernet
Definition: hd.h:243
PPPoEPacketStruct::type
unsigned int type
Definition: pppoe.c:72
pr_pppoe
Definition: hd.h:120
open_interfaces
static int open_interfaces(int n, PPPoEConnection *conns)
Definition: pppoe.c:180
hd_data
static hd_data_t * hd_data
Definition: pppoe.c:29
PADO_TIMEOUT
#define PADO_TIMEOUT
Definition: pppoe.c:66
PPPoEConnectionStruct::fd
int fd
Definition: pppoe.c:101
PPPoEPacketStruct::session
unsigned int session
Definition: pppoe.c:74
PPPoEPacketStruct::ver
unsigned int ver
Definition: pppoe.c:71
PacketCriteriaStruct::servicename_ok
int servicename_ok
Definition: pppoe.c:112
PPPoETagStruct::type
unsigned int type
Definition: pppoe.c:86
PPPoEConnectionStruct
Definition: pppoe.c:99
PPPoETagStruct::length
unsigned int length
Definition: pppoe.c:87
hd_data_t
Holds all data accumulated during hardware probing.
Definition: hd.h:2609
NOT_UNICAST
#define NOT_UNICAST(e)
Definition: pppoe.c:117
parse_func
void parse_func(uint16_t type, uint16_t len, unsigned char *data, void *extra)
Definition: pppoe.c:95
new_mem
void * new_mem(size_t size)
Definition: hd.c:1552
PPPoETagStruct::payload
unsigned char payload[ETH_DATA_LEN]
Definition: pppoe.c:88
pppoe.h
PPPoEPacket
struct PPPoEPacketStruct PPPoEPacket