All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
vqp.h File Reference

Structures and prototypes for Cisco's VLAN Query Protocol. More...

+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int vqp_decode (RADIUS_PACKET *packet)
 
int vqp_encode (RADIUS_PACKET *packet, RADIUS_PACKET *original)
 
ssize_t vqp_packet_size (uint8_t const *data, size_t data_len)
 See how big of a packet is in the buffer. More...
 
RADIUS_PACKETvqp_recv (int sockfd)
 
int vqp_send (RADIUS_PACKET *packet)
 

Detailed Description

Structures and prototypes for Cisco's VLAN Query Protocol.

Id:
857ec214c4848d08568b85a6bb3f0de1adf668c8

Definition in file vqp.h.

Function Documentation

int vqp_decode ( RADIUS_PACKET packet)

Definition at line 247 of file vqp.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int vqp_encode ( RADIUS_PACKET packet,
RADIUS_PACKET original 
)

Definition at line 374 of file vqp.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ssize_t vqp_packet_size ( uint8_t const *  data,
size_t  data_len 
)

See how big of a packet is in the buffer.

Packet is not 'const * const' because we may update data_len, if there's more data in the UDP packet than in the VMPS packet.

Parameters
datapointer to the packet buffer
data_lenlength of the packet buffer
Returns
<= 0 packet is bad. >0 how much of the data is a packet (can be larger than data_len)

Definition at line 551 of file vqp.c.

RADIUS_PACKET* vqp_recv ( int  sockfd)

Definition at line 114 of file vqp.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int vqp_send ( RADIUS_PACKET packet)

Definition at line 229 of file vqp.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function: