📄 raw.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 RAW-IP module.
7 *
8 * Version: @(#)raw.h 1.0.2 05/07/93
9 *
10 * Author: Fred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG>
11 *
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version
15 * 2 of the License, or (at your option) any later version.
16 */
17 #ifndef _RAW_H
18 #define _RAW_H
19
20
21 extern struct proto raw_prot;
22
23
24 extern void raw_err(int err, unsigned char *header, unsigned long daddr,
25 unsigned long saddr, struct inet_protocol *protocol);
26 extern int raw_rcv(struct sk_buff *skb, struct device *dev,
27 struct options *opt, unsigned long daddr,
28 unsigned short len, unsigned long saddr,
29 int redo, struct inet_protocol *protocol);
30 extern int raw_recvfrom(struct sock *sk, unsigned char *to,
31 int len, int noblock, unsigned flags,
32 struct sockaddr_in *sin, int *addr_len);
33 extern int raw_read(struct sock *sk, unsigned char *buff,
34 int len, int noblock, unsigned flags);
35
36 #endif /* _RAW_H */
37
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -