root/include/net/udp.h

/* [previous][next][first][last][top][bottom][index][help] */

INCLUDED FROM


   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 #define UDP_NO_CHECK    0
  29 
  30 
  31 extern struct proto udp_prot;
  32 
  33 
  34 extern void     udp_err(int err, unsigned char *header, unsigned long daddr,
  35                         unsigned long saddr, struct inet_protocol *protocol);
  36 extern void     udp_send_check(struct udphdr *uh, unsigned long saddr, 
  37                         unsigned long 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, unsigned long daddr,
  47                         unsigned short len, unsigned long 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 */

/* [previous][next][first][last][top][bottom][index][help] */