1 /* 2 * INET An implementation of the TCP/IP protocol suite for the LINUX 3 * operating system. INET is implemented using the BSD Socket 4 * interface as the means of communication with the user level. 5 * 6 * Definitions for the UDP module. 7 * 8 * Version: @(#)udp.h 1.0.2 05/07/93 9 * 10 * Authors: Ross Biro, <bir7@leland.Stanford.Edu> 11 * Fred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG> 12 * 13 * Fixes: 14 * Alan Cox : Turned on udp checksums. I don't want to 15 * chase 'memory corruption' bugs that aren't! 16 * 17 * This program is free software; you can redistribute it and/or 18 * modify it under the terms of the GNU General Public License 19 * as published by the Free Software Foundation; either version 20 * 2 of the License, or (at your option) any later version. 21 */ 22 #ifndef_UDP_H 23 #define_UDP_H 24
25 #include <linux/udp.h>
26
27
28 #defineUDP_NO_CHECK 0
29
30
31 externstructprotoudp_prot;
32
33
34 externvoidudp_err(interr, unsignedchar *header, unsignedlongdaddr,
35 unsignedlongsaddr, structinet_protocol *protocol);
36 externintudp_recvfrom(structsock *sk, unsignedchar *to,
37 intlen, intnoblock, unsignedflags,
38 structsockaddr_in *sin, int *addr_len);
39 externintudp_read(structsock *sk, unsignedchar *buff,
40 intlen, intnoblock, unsignedflags);
41 externintudp_connect(structsock *sk,
42 structsockaddr_in *usin, intaddr_len);
43 externintudp_rcv(structsk_buff *skb, structdevice *dev,
44 structoptions *opt, unsignedlongdaddr,
45 unsignedshortlen, unsignedlongsaddr, intredo,
46 structinet_protocol *protocol);
47 externintudp_ioctl(structsock *sk, intcmd, unsignedlongarg);
48
49
50 #endif/* _UDP_H */