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