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

📄 ip.h

📁 1针对三星44B0的开发程序2对于网卡的驱动程序3程序采用C语言编程4采用ARM指令集5全部代码在 ADS1.2 中编译调试
💻 H
字号:
#ifndef __IP_H#define __IP_H#define UDP		0x11#define	ICMP	0x01/* *	This structure defines an ip header. */__packed struct iphdr {	unsigned ihl:4,			 version:4;	unsigned char	tos;	unsigned short	tot_len;	unsigned short	id;	unsigned short	frag_off;	unsigned char	ttl;	unsigned char	protocol;	unsigned short	check;	unsigned long	saddr;	unsigned long	daddr;	/*The options start here. */};//__attribute__ ((packed));int ip_init(unsigned long ip);int ip_rcv_packet(struct sk_buff *skb);int ip_send(struct sk_buff *skb, unsigned long ip, unsigned char proto);void ip_skb_reserve(struct sk_buff *skb);unsigned long ip_get_source_ip(struct sk_buff *skb);#endif /* __IP_H */

⌨️ 快捷键说明

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