|
|
1.1 root 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, <[email protected]>
11: * Fred N. van Kempen, <[email protected]>
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: #define UDP_NO_CHECK 0
29:
30:
31: extern struct proto udp_prot;
32:
33:
34: extern void udp_err(int type, int code, unsigned char *header, __u32 daddr,
35: __u32 saddr, struct inet_protocol *protocol);
36: extern void udp_send_check(struct udphdr *uh, __u32 saddr,
37: __u32 daddr, int len, struct sock *sk);
38: extern int udp_recvfrom(struct sock *sk, unsigned char *to,
39: int len, int noblock, unsigned flags,
40: struct sockaddr_in *sin, int *addr_len);
41: extern int udp_read(struct sock *sk, unsigned char *buff,
42: int len, int noblock, unsigned flags);
43: extern int udp_connect(struct sock *sk,
44: struct sockaddr_in *usin, int addr_len);
45: extern int udp_rcv(struct sk_buff *skb, struct device *dev,
46: struct options *opt, __u32 daddr,
47: unsigned short len, __u32 saddr, int redo,
48: struct inet_protocol *protocol);
49: extern int udp_ioctl(struct sock *sk, int cmd, unsigned long arg);
50: extern void udp_cache_zap(void); /* Remove udp last socket cache */
51:
52: #endif /* _UDP_H */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.