#ifndef _UDP_H #define _UDP_H 1 extern int send_custom_udp(const int socket, const int ifindex, const unsigned char *sourcemac, const unsigned char *destmac, const struct in_addr *sourceip, const int sourceport, const struct in_addr *destip, const int destport, const unsigned char *data, const int datalen); extern unsigned short in_cksum(unsigned short *addr, int len); #endif