The FreeRADIUS server
$Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
|
Structures and prototypes for Cisco's VLAN Query Protocol. More...
Go to the source code of this file.
Macros | |
#define | FR_VMPS_PACKET_CODE_VALID(_code) (((_code) > 0) && ((_code) < FR_VMPS_CODE_MAX)) |
#define | FR_VQP_HDR_LEN (8) |
#define | FR_VQP_VERSION (1) |
Enumerations | |
enum | fr_vmps_packet_code_t { FR_VMPS_INVALID = 0 , FR_VMPS_JOIN_REQUEST = 1 , FR_VMPS_JOIN_RESPONSE = 2 , FR_VMPS_RECONFIRM_REQUEST = 3 , FR_VMPS_RECONFIRM_RESPONSE = 4 , FR_VMPS_CODE_MAX = 5 , FR_VMPS_DO_NOT_RESPOND = 256 } |
Functions | |
int | fr_vmps_decode (TALLOC_CTX *ctx, fr_pair_list_t *out, uint8_t const *data, size_t data_len, unsigned int *code) |
ssize_t | fr_vmps_encode (fr_dbuff_t *dbuff, uint8_t const *original, int code, uint32_t id, fr_dcursor_t *cursor)) |
void | fr_vmps_global_free (void) |
int | fr_vmps_global_init (void) |
bool | fr_vmps_ok (uint8_t const *packet, size_t *packet_len) |
ssize_t | fr_vmps_packet_size (uint8_t const *data, size_t data_len) |
See how big of a packet is in the buffer. More... | |
void | fr_vmps_print_hex (FILE *fp, uint8_t const *packet, size_t packet_len) |
Print a raw VMPS packet as hex. More... | |
Variables | |
char const * | fr_vmps_packet_names [FR_VMPS_CODE_MAX] |
Structures and prototypes for Cisco's VLAN Query Protocol.
Definition in file vmps.h.
#define FR_VMPS_PACKET_CODE_VALID | ( | _code | ) | (((_code) > 0) && ((_code) < FR_VMPS_CODE_MAX)) |
int fr_vmps_decode | ( | TALLOC_CTX * | ctx, |
fr_pair_list_t * | out, | ||
uint8_t const * | data, | ||
size_t | data_len, | ||
unsigned int * | code | ||
) |
ssize_t fr_vmps_encode | ( | fr_dbuff_t * | dbuff, |
uint8_t const * | original, | ||
int | code, | ||
uint32_t | id, | ||
fr_dcursor_t * | cursor | ||
) |
void fr_vmps_global_free | ( | void | ) |
int fr_vmps_global_init | ( | void | ) |
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.
data | pointer to the packet buffer |
data_len | length of the packet buffer |
Definition at line 370 of file vmps.c.
|
extern |