#ifndef PROTOCOL_UDP_H
#define PROTOCOL_UDP_H

#include "protocol.h"

#define DEFAULT_PROTOCOL_PORT   5001	/* default protocol port */
#define BCAST_IPADDR            "255.255.255.255"

int udprecv_sock_init();
int udpsend_sock_init();

int protocol_udp_handler(PROTOCOL_HDR *ph, struct sockaddr *sock_addr);

int send_advertisement_udp(struct sockaddr *sock_addr);
int send_advertisement_udp_ext(struct sockaddr *sock_addr, char * ifname);

#endif
