iph5526_ip.h
来自「内核linux2.4.20,可跟rtlinux3.2打补丁 组成实时linux系」· C头文件 代码 · 共 26 行
H
26 行
#ifndef IPH5526_IP_H#define IPH5526_IP_H#define LLC_SNAP_LEN 0x8/* Offsets into the ARP frame */#define ARP_OPCODE_0 (0x6 + LLC_SNAP_LEN)#define ARP_OPCODE_1 (0x7 + LLC_SNAP_LEN)int iph5526_probe(struct net_device *dev);static int fcdev_init(struct net_device *dev);static int iph5526_open(struct net_device *dev);static int iph5526_close(struct net_device *dev);static int iph5526_send_packet(struct sk_buff *skb, struct net_device *dev);static struct net_device_stats * iph5526_get_stats(struct net_device *dev);static int iph5526_change_mtu(struct net_device *dev, int mtu);static void rx_net_packet(struct fc_info *fi, u_char *buff_addr, int payload_size);static void rx_net_mfs_packet(struct fc_info *fi, struct sk_buff *skb);unsigned short fc_type_trans(struct sk_buff *skb, struct net_device *dev); static int tx_ip_packet(struct sk_buff *skb, unsigned long len, struct fc_info *fi);static int tx_arp_packet(char *data, unsigned long len, struct fc_info *fi);#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?