summaryrefslogtreecommitdiffstats
path: root/include/net/udp.h
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>1997-01-07 02:33:00 +0000
committer <ralf@linux-mips.org>1997-01-07 02:33:00 +0000
commitbeb116954b9b7f3bb56412b2494b562f02b864b1 (patch)
tree120e997879884e1b9d93b265221b939d2ef1ade1 /include/net/udp.h
parent908d4681a1dc3792ecafbe64265783a86c4cccb6 (diff)
Import of Linux/MIPS 2.1.14
Diffstat (limited to 'include/net/udp.h')
-rw-r--r--include/net/udp.h27
1 files changed, 15 insertions, 12 deletions
diff --git a/include/net/udp.h b/include/net/udp.h
index 62f0c7a0e..d834feb6d 100644
--- a/include/net/udp.h
+++ b/include/net/udp.h
@@ -31,22 +31,25 @@
extern struct proto udp_prot;
-extern void udp_err(int err, unsigned char *header, unsigned long daddr,
- unsigned long saddr, struct inet_protocol *protocol);
-extern void udp_send_check(struct udphdr *uh, unsigned long saddr,
- unsigned long daddr, int len, struct sock *sk);
-extern int udp_recvfrom(struct sock *sk, unsigned char *to,
- int len, int noblock, unsigned flags,
- struct sockaddr_in *sin, int *addr_len);
-extern int udp_read(struct sock *sk, unsigned char *buff,
- int len, int noblock, unsigned flags);
+extern void udp_err(int type, int code, unsigned char *header,
+ __u32 info, __u32 daddr, __u32 saddr,
+ struct inet_protocol *protocol, int len);
+extern void udp_send_check(struct udphdr *uh, __u32 saddr,
+ __u32 daddr, int len, struct sock *sk);
extern int udp_connect(struct sock *sk,
- struct sockaddr_in *usin, int addr_len);
+ struct sockaddr *usin, int addr_len);
+
+extern int udp_sendmsg(struct sock *sk, struct msghdr *msg,
+ int len, int noblock, int flags);
+
extern int udp_rcv(struct sk_buff *skb, struct device *dev,
- struct options *opt, unsigned long daddr,
- unsigned short len, unsigned long saddr, int redo,
+ struct options *opt, __u32 daddr,
+ unsigned short len, __u32 saddr, int redo,
struct inet_protocol *protocol);
extern int udp_ioctl(struct sock *sk, int cmd, unsigned long arg);
extern void udp_cache_zap(void); /* Remove udp last socket cache */
+/* CONFIG_IP_TRANSPARENT_PROXY */
+extern int udp_chkaddr(struct sk_buff *skb);
+
#endif /* _UDP_H */