:orphan: .. index:: pair: struct; tapi_net_iface .. _doxid-structtapi__net__iface: struct tapi_net_iface ===================== .. toctree:: :hidden: Overview ~~~~~~~~ Logical interface definition. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include struct tapi_net_iface { // fields :ref:`tapi_net_iface_type` :ref:`type`; struct sockaddr* :ref:`addr`; :ref:`tapi_net_vlan` :ref:`vlan`; :ref:`tapi_net_qinq` :ref:`qinq`; union tapi_net_iface::@64 :target:`conf`; char* :ref:`name`; // methods :ref:`SLIST_ENTRY`(tapi_net_iface); }; .. _details-structtapi__net__iface: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Logical interface definition. Interfaces are organized as a stack, starting from a base and building up through VLAN, QinQ, GRE, or other layers. The stack is represented as a singly linked list, where each interface points to the next one above it. The structure defines the interface type and any type-specific parameters, such as a VLAN ID. Fields ------ .. index:: pair: variable; type .. _doxid-structtapi__net__iface_1a852c63e28bd4b3f509ecf3e1aab2e7a6: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`tapi_net_iface_type` type Interface type. .. index:: pair: variable; addr .. _doxid-structtapi__net__iface_1af138d4e537f2a2ec98aa8de5943c54dc: .. ref-code-block:: cpp :class: doxyrest-title-code-block struct sockaddr* addr Address assigned to interface. .. index:: pair: variable; vlan .. _doxid-structtapi__net__iface_1ae96a782e2892bc948864939f29969b6e: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`tapi_net_vlan` vlan VLAN config. .. index:: pair: variable; qinq .. _doxid-structtapi__net__iface_1a706ed995f7e9c086e47cce3132034484: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`tapi_net_qinq` qinq QinQ config. .. index:: pair: variable; name .. _doxid-structtapi__net__iface_1afb71ddd2549dc3dc51a5e2ca46afaaeb: .. ref-code-block:: cpp :class: doxyrest-title-code-block char* name Interface name. Methods ------- .. index:: pair: function; SLIST_ENTRY .. _doxid-structtapi__net__iface_1a20934702f3836f089095fc7a39817848: .. ref-code-block:: cpp :class: doxyrest-title-code-block SLIST_ENTRY(tapi_net_iface) Link to the upper interface.