OpenNSL API Guide and Reference Manual
Data Fields
opennsl_knet_netif_s Struct Reference

Kernel network interface structure. More...

#include <knet.h>

Data Fields

uint32 cb_user_data
 Netif user data for knet rx cb.
 
opennsl_cos_queue_t cosq
 Cos offset from base queue of port associated with this interface.
 
uint32 flags
 OPENNSL_KNET_NETIF_F_XXX flags.
 
int id
 Network interface ID.
 
opennsl_mac_t mac_addr
 MAC address associated with this network interface.
 
char name [OPENNSL_KNET_NETIF_NAME_MAX]
 Network interface name (assigned by kernel)
 
opennsl_port_t port
 Local port associated with this interface.
 
int type
 Network interface type (OPENNSL_KNET_NETIF_T_XXX).
 
opennsl_vlan_t vlan
 VLAN ID associated with this interface.
 

Detailed Description

Kernel network interface structure.

Definition at line 42 of file knet.h.

Field Documentation

uint32 opennsl_knet_netif_s::cb_user_data

Netif user data for knet rx cb.

Definition at line 57 of file knet.h.

opennsl_cos_queue_t opennsl_knet_netif_s::cosq

Cos offset from base queue of port associated with this interface.

Definition at line 53 of file knet.h.

uint32 opennsl_knet_netif_s::flags

OPENNSL_KNET_NETIF_F_XXX flags.

Definition at line 46 of file knet.h.

int opennsl_knet_netif_s::id

Network interface ID.

Definition at line 43 of file knet.h.

Referenced by example_linux_interface_create().

opennsl_mac_t opennsl_knet_netif_s::mac_addr

MAC address associated with this network interface.

Definition at line 47 of file knet.h.

Referenced by example_linux_interface_create().

char opennsl_knet_netif_s::name[OPENNSL_KNET_NETIF_NAME_MAX]

Network interface name (assigned by kernel)

Definition at line 55 of file knet.h.

Referenced by example_linux_interface_create().

opennsl_port_t opennsl_knet_netif_s::port

Local port associated with this interface.

Definition at line 51 of file knet.h.

Referenced by example_linux_interface_create().

int opennsl_knet_netif_s::type

Network interface type (OPENNSL_KNET_NETIF_T_XXX).

Definition at line 44 of file knet.h.

Referenced by example_linux_interface_create().

opennsl_vlan_t opennsl_knet_netif_s::vlan

VLAN ID associated with this interface.

Definition at line 49 of file knet.h.


The documentation for this struct was generated from the following file: