summaryrefslogtreecommitdiff
path: root/udp.h
blob: 79cf3a2758ec03e3db8f3a74c0c344fea450ad80 (plain)
1
2
3
4
5
#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