root/net/inet/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 int      udp_recvfrom(struct sock *sk, unsigned char *to,
  37                              int len, int noblock, unsigned flags,
  38                              struct sockaddr_in *sin, int *addr_len);
  39 extern int      udp_read(struct sock *sk, unsigned char *buff,
  40                          int len, int noblock, unsigned flags);
  41 extern int      udp_connect(struct sock *sk,
  42                             struct sockaddr_in *usin, int addr_len);
  43 extern int      udp_rcv(struct sk_buff *skb, struct device *dev,
  44                         struct options *opt, unsigned long daddr,
  45                         unsigned short len, unsigned long saddr, int redo,
  46                         struct inet_protocol *protocol);
  47 extern int      udp_ioctl(struct sock *sk, int cmd, unsigned long arg);
  48 
  49 
  50 #endif  /* _UDP_H */

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