<commit_before>/*
 * Copyright (C) 2015 <NAME> <<EMAIL>>
 *
 * This file is subject to the terms and conditions of the GNU Lesser General
 * Public License v2.1. See the file LICENSE in the top level directory for
 * more details.
 */

/**
 * @defgroup    dev_eth_tap     Ethernet driver for TAP interfaces
 * @ingroup     native_cpu
 * @brief       Low-level ethernet driver for native tap interfaces
 * @{
 *
 * @file
 * @brief       Definitions for @ref net_dev_eth driver for host system's
 *              TAP interfaces
 *
 * @author      <NAME> <<EMAIL>>
 */
#ifndef DEV_ETH_TAP_H
#define DEV_ETH_TAP_H

#ifdef __cplusplus
extern "C" {
#endif

#include <stdint.h>
#include "net/dev_eth.h"

#include "net/if.h"

/**
 * @brief tap interface state
 */
typedef struct dev_eth_tap {
    dev_eth_t ethdev;                   /**< dev_eth internal member */
    char tap_name[IFNAMSIZ];            /**< host dev file name */
    int tap_fd;                         /**< host file descriptor for the TAP */
    uint8_t addr[ETHERNET_ADDR_LEN];    /**< The MAC address of the TAP */
    uint8_t promiscous;                 /**< Flag for promiscous mode */<commit_msg>cpu/native: add conditional include on OS X for IFNAMSIZ<commit_after>/*
 * Copyright (C) 2015 <NAME> <<EMAIL>>
 *
 * This file is subject to the terms and conditions of the GNU Lesser General
 * Public License v2.1. See the file LICENSE in the top level directory for
 * more details.
 */

/**
 * @defgroup    dev_eth_tap     Ethernet driver for TAP interfaces
 * @ingroup     native_cpu
 * @brief       Low-level ethernet driver for native tap interfaces
 * @{
 *
 * @file
 * @brief       Definitions for @ref net_dev_eth driver for host system's
 *              TAP interfaces
 *
 * @author      <NAME> <<EMAIL>>
 */
#ifndef DEV_ETH_TAP_H
#define DEV_ETH_TAP_H

#ifdef __cplusplus
extern "C" {
#endif

#include <stdint.h>
#include "net/dev_eth.h"

#include "net/if.h"

#ifdef __MACH__
#include "net/if_var.h"
#endif

/**
 * @brief tap interface state
 */
typedef struct dev_eth_tap {
    dev_eth_t ethdev;                   /**< dev_eth internal member */
    char tap_name[IFNAMSIZ];            /**< host dev file name */
    int tap_fd;                         /**< host file descriptor for the TAP */
    uint8_t addr[ETHERNET_ADDR_LEN];    /**< The MAC address of the TAP */
    uint8_t promiscous;                 /**< Flag for promiscous mode */
{'fraction_non_alphanumeric': 0.10550268928423666, 'fraction_numerical': 0.006619776582540339, 'mean_word_length': 2.494219653179191, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7566708', 'n_tokens_mistral': 804, 'n_tokens_neox': 759, 'n_words': 257}