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 * This program is free software; you can redistribute it and/or 14 * modify it under the terms of the GNU General Public License 15 * as published by the Free Software Foundation; either version 16 * 2 of the License, or (at your option) any later version. 17 */ 18 #ifndef_UDP_H 19 #define_UDP_H 20
21 #include <linux/udp.h>
22
23
24 #defineUDP_NO_CHECK 1
25
26
27 externstructprotoudp_prot;
28
29
30 externintudp_select(structsock *sk, intsel_type, select_table *wait);
31 externvoidudp_err(interr, unsignedchar *header, unsignedlongdaddr,
32 unsignedlongsaddr, structinet_protocol *protocol);
33 externintudp_recvfrom(structsock *sk, unsignedchar *to,
34 intlen, intnoblock, unsignedflags,
35 structsockaddr_in *sin, int *addr_len);
36 externintudp_read(structsock *sk, unsignedchar *buff,
37 intlen, intnoblock, unsignedflags);
38 externintudp_connect(structsock *sk,
39 structsockaddr_in *usin, intaddr_len);
40 externintudp_rcv(structsk_buff *skb, structdevice *dev,
41 structoptions *opt, unsignedlongdaddr,
42 unsignedshortlen, unsignedlongsaddr, intredo,
43 structinet_protocol *protocol);
44 externintudp_ioctl(structsock *sk, intcmd, unsignedlongarg);
45
46
47 #endif/* _UDP_H */