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

📄 linux_eth.h

📁 思科路由器仿真器,用来仿7200系列得,可以在电脑上模拟路由器-Cisco router simulator, used to fake a 7200 series can be simulated
💻 H
字号:
/* * Copyright (c) 2006 Christophe Fillot. * E-mail: cf@utc.fr * * linux_eth.c: module used to send/receive Ethernet packets. * * Specific to the Linux operating system. */#ifndef __LINUX_ETH_H__#define __LINUX_ETH_H__  1#include <sys/types.h>/* Get interface index of specified device */int lnx_eth_get_dev_index(char *name);/* Initialize a new ethernet raw socket */int lnx_eth_init_socket(char *device);/* Send an ethernet frame */ssize_t lnx_eth_send(int sck,int dev_id,char *buffer,size_t len);/* Receive an ethernet frame */ssize_t lnx_eth_recv(int sck,char *buffer,size_t len);#endif

⌨️ 快捷键说明

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