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

📄 cardif_freebsd.h

📁 linux 下通过802.1认证的安装包
💻 H
字号:
/*******************************************************************
 *
 * Licensed under a dual GPL/BSD license.  (See LICENSE file for more info.)
 *
 * File: cardif_freebsd.c
 *
 * Authors: Fernando Schapachnik <fernando@mecon.gov.ar>, based
 * on the work of Ivan Voras <ivoras@fer.hr> and the Linux version by
 * Chris.Hessing@utah.edu.
 *
 *******************************************************************/

#ifndef _CARDIF_FREEBSD_H_
#define _CARDIF_FREEBSD_H_


#include <sys/types.h>
#include <netinet/in.h>
#include <net/if_dl.h>

// We need a couple of pieces of data to make use of this interface.
// Define them here.
struct fbsd_sock_data {
  int sockInt;
  int   bpf;		// bpf handle
  char  *buf;
  int   buf_size;
  struct sockaddr_dl sdl;
};

#endif

⌨️ 快捷键说明

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