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  *              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 #define UDP_NO_CHECK    1
  25 
  26 
  27 extern struct proto udp_prot;
  28 
  29 
  30 extern int      udp_select(struct sock *sk, int sel_type, select_table *wait);
  31 extern void     udp_err(int err, unsigned char *header, unsigned long daddr,
  32                         unsigned long saddr, struct inet_protocol *protocol);
  33 extern int      udp_recvfrom(struct sock *sk, unsigned char *to,
  34                              int len, int noblock, unsigned flags,
  35                              struct sockaddr_in *sin, int *addr_len);
  36 extern int      udp_read(struct sock *sk, unsigned char *buff,
  37                          int len, int noblock, unsigned flags);
  38 extern int      udp_connect(struct sock *sk,
  39                             struct sockaddr_in *usin, int addr_len);
  40 extern int      udp_rcv(struct sk_buff *skb, struct device *dev,
  41                         struct options *opt, unsigned long daddr,
  42                         unsigned short len, unsigned long saddr, int redo,
  43                         struct inet_protocol *protocol);
  44 extern int      udp_ioctl(struct sock *sk, int cmd, unsigned long arg);
  45 
  46 
  47 #endif  /* _UDP_H */

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