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(inttype, intcode, unsignedchar *header, __u32daddr,
35 __u32saddr, structinet_protocol *protocol);
36 externvoid udp_send_check(structudphdr *uh, __u32saddr,
37 __u32daddr, intlen, structsock *sk);
38 externint udp_recvfrom(structsock *sk, unsignedchar *to,
39 intlen, intnoblock, unsignedflags,
40 structsockaddr_in *sin, int *addr_len);
41 externint udp_read(structsock *sk, unsignedchar *buff,
42 intlen, intnoblock, unsignedflags);
43 externintudp_connect(structsock *sk,
44 structsockaddr_in *usin, intaddr_len);
45 externintudp_rcv(structsk_buff *skb, structdevice *dev,
46 structoptions *opt, __u32daddr,
47 unsignedshortlen, __u32saddr, intredo,
48 structinet_protocol *protocol);
49 externintudp_ioctl(structsock *sk, intcmd, unsignedlongarg);
50 externvoidudp_cache_zap(void); /* Remove udp last socket cache */ 51
52 #endif/* _UDP_H */