⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 udp.h

📁 An implementation of the TCP/IP protocol suite for the LINUX operating system. INET is implemented u
💻 H
字号:
  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 */
 51 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -