12#ifndef _DUNDI_PARSER_H
13#define _DUNDI_PARSER_H
18#define DUNDI_MAX_STACK 512
19#define DUNDI_MAX_ANSWERS 100
56 unsigned char buf[8192];
Provide cryptographic signature routines.
int dundi_ie_append_int(struct dundi_ie_data *ied, unsigned char ie, unsigned int value)
int dundi_ie_append_encdata(struct dundi_ie_data *ied, unsigned char ie, unsigned char *iv, void *data, int datalen)
char * dundi_flags2str(char *s, int maxlen, int flags)
int dundi_ie_append_raw(struct dundi_ie_data *ied, unsigned char ie, void *data, int datalen)
int dundi_str_short_to_eid(dundi_eid *eid, const char *s)
int dundi_ie_append_eid(struct dundi_ie_data *ied, unsigned char ie, dundi_eid *eid)
int dundi_ie_append_byte(struct dundi_ie_data *ied, unsigned char ie, unsigned char dat)
int dundi_ie_append_short(struct dundi_ie_data *ied, unsigned char ie, unsigned short value)
int dundi_ie_append_addr(struct dundi_ie_data *ied, unsigned char ie, struct sockaddr_in *sin)
int dundi_ie_append(struct dundi_ie_data *ied, unsigned char ie)
int dundi_ie_append_cause(struct dundi_ie_data *ied, unsigned char ie, unsigned char cause, char *desc)
int dundi_parse_ies(struct dundi_ies *ies, unsigned char *data, int datalen)
void dundi_showframe(struct dundi_hdr *fhi, int rx, struct ast_sockaddr *sin, int datalen)
int dundi_ie_append_str(struct dundi_ie_data *ied, unsigned char ie, char *str)
char * dundi_hint2str(char *s, int maxlen, int flags)
char * dundi_eid_to_str_short(char *s, int maxlen, dundi_eid *eid)
int dundi_eid_zero(dundi_eid *eid)
#define DUNDI_MAX_ANSWERS
const char * dundi_ie2str(int ie)
int dundi_ie_append_answer(struct dundi_ie_data *ied, unsigned char ie, dundi_eid *eid, unsigned char protocol, unsigned short flags, unsigned short weight, char *desc)
void dundi_set_error(void(*output)(const char *data))
void dundi_set_output(void(*output)(const char *data))
int dundi_ie_append_hint(struct dundi_ie_data *ied, unsigned char ie, unsigned short flags, char *data)
Distributed Universal Number Discovery (DUNDi) See also.
An Entity ID is essentially a MAC address, brief and unique.
Socket address structure.
struct dundi_answer * answers[DUNDI_MAX_ANSWERS+1]
dundi_eid * eids[DUNDI_MAX_STACK+1]
int eid_direct[DUNDI_MAX_STACK+1]
unsigned char * encsharedkey
struct dundi_encblock * encblock