24 RCSID(
"$Id: 4198c552210b2161e4ed7d8ac7739ee298b458f1 $")
26 #include <freeradius-devel/radiusd.h>
27 #include <freeradius-devel/protocol.h>
28 #include <freeradius-devel/process.h>
29 #include <freeradius-devel/modules.h>
30 #include <freeradius-devel/rad_assert.h>
static int vmps_process(REQUEST *request)
int common_socket_parse(CONF_SECTION *cs, rad_listen_t *this)
void common_packet_debug(REQUEST *request, RADIUS_PACKET *packet, bool received)
fr_ipaddr_t src_ipaddr
Src IP address of packet.
rlm_rcode_t process_post_auth(int type, REQUEST *request)
rad_listen_t * listener
The listener that received the request.
struct listen_socket_t listen_socket_t
uint16_t src_port
Src port of packet.
int vqp_send(RADIUS_PACKET *packet)
ssize_t vqp_packet_size(uint8_t const *data, size_t data_len)
See how big of a packet is in the buffer.
static int vqp_socket_decode(UNUSED rad_listen_t *listener, REQUEST *request)
static int vqp_socket_send(rad_listen_t *listener, REQUEST *request)
int(* RAD_REQUEST_FUNP)(REQUEST *)
static int vqp_socket_recv(rad_listen_t *listener)
unsigned int code
Packet code (type).
int common_socket_open(CONF_SECTION *cs, rad_listen_t *this)
RADIUS_PACKET * vqp_recv(int sockfd)
RADIUS_PACKET * reply
Outgoing response.
char const * fr_strerror(void)
Get the last library error.
int request_receive(TALLOC_CTX *ctx, rad_listen_t *listener, RADIUS_PACKET *packet, RADCLIENT *client, RAD_REQUEST_FUNP fun)
Describes a host allowed to send packets to the server.
void fr_radius_free(RADIUS_PACKET **)
Free a RADIUS_PACKET.
RADIUS_PACKET * packet
Incoming request.
RADCLIENT * client_listener_find(rad_listen_t *listener, fr_ipaddr_t const *ipaddr, uint16_t src_port)
int vqp_encode(RADIUS_PACKET *packet, RADIUS_PACKET *original)
int vqp_decode(RADIUS_PACKET *packet)
uint64_t magic
Used to validate loaded library.
Structures and prototypes for Cisco's VLAN Query Protocol.
int common_socket_print(rad_listen_t const *this, char *buffer, size_t bufsize)
static int vqp_socket_encode(UNUSED rad_listen_t *listener, REQUEST *request)