#include <freeradius-devel/radiusd.h>
#include <freeradius-devel/protocol.h>
#include <freeradius-devel/modules.h>
#include <freeradius-devel/process.h>
#include <freeradius-devel/rad_assert.h>
#include <freeradius-devel/pcap.h>
#include <net/if_arp.h>
Go to the source code of this file.
Data Structures | |
struct | arp_decode_t |
struct | arp_over_ether |
struct | arp_socket_t |
Typedefs | |
typedef struct arp_decode_t | arp_decode_t |
typedef struct arp_over_ether | arp_over_ether_t |
typedef struct arp_socket_t | arp_socket_t |
Functions | |
static const char * | arp_pcap_filter_builder (UNUSED rad_listen_t *this) |
Build PCAP filter string to pass to libpcap Will be called by init_pcap. More... | |
static int | arp_process (REQUEST *request) |
static int | arp_socket_decode (UNUSED rad_listen_t *listener, REQUEST *request) |
static int | arp_socket_encode (UNUSED rad_listen_t *listener, UNUSED REQUEST *request) |
static void | arp_socket_free (rad_listen_t *this) |
static int | arp_socket_parse (CONF_SECTION *cs, rad_listen_t *this) |
static int | arp_socket_print (const rad_listen_t *this, char *buffer, size_t bufsize) |
static int | arp_socket_recv (rad_listen_t *listener) |
static int | arp_socket_send (UNUSED rad_listen_t *listener, UNUSED REQUEST *request) |
Variables | |
static const arp_decode_t | header_names [] |
fr_protocol_t | proto_arp |
struct arp_decode_t |
Definition at line 177 of file proto_arp.c.
Data Fields | ||
---|---|---|
size_t | len | |
char const * | name |
struct arp_over_ether |
Definition at line 40 of file proto_arp.c.
Data Fields | ||
---|---|---|
uint8_t | hlen | Length of hardware address. |
uint16_t | htype | Format of hardware address. |
uint8_t | op | 1 - Request, 2 - Reply. |
uint8_t | plen | Length of protocol address. |
uint16_t | ptype | Format of protocol address. |
uint8_t | sha[ETHER_ADDR_LEN] | sender hardware address. |
uint8_t | spa[4] | Sender protocol address. |
uint8_t | tha[ETHER_ADDR_LEN] | Target hardware address. |
uint8_t | tpa[4] | Target protocol address. |
struct arp_socket_t |
Definition at line 31 of file proto_arp.c.
Data Fields | ||
---|---|---|
RADCLIENT | client | |
uint64_t | counter | |
listen_socket_t | lsock |
typedef struct arp_decode_t arp_decode_t |
typedef struct arp_over_ether arp_over_ether_t |
typedef struct arp_socket_t arp_socket_t |
|
static |
Build PCAP filter string to pass to libpcap Will be called by init_pcap.
this | listen section (not used) |
Definition at line 251 of file proto_arp.c.
|
static |
Definition at line 52 of file proto_arp.c.
|
static |
|
static |
Definition at line 171 of file proto_arp.c.
|
static |
Definition at line 237 of file proto_arp.c.
|
static |
|
static |
|
static |
|
static |
Definition at line 165 of file proto_arp.c.
|
static |
Definition at line 182 of file proto_arp.c.
fr_protocol_t proto_arp |
Definition at line 306 of file proto_arp.c.