:orphan: .. index:: pair: struct; tapi_cfg_rt_params .. _doxid-structtapi__cfg__rt__params: struct tapi_cfg_rt_params ========================= .. toctree:: :hidden: Overview ~~~~~~~~ Structure storing parameters of :ref:`tapi_cfg_add_route2() `. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include struct tapi_cfg_rt_params { // fields const struct sockaddr* :ref:`dst_addr`; int :ref:`prefix`; const struct sockaddr* :ref:`gw_addr`; const struct sockaddr* :ref:`src_addr`; const char* :ref:`dev`; const char* :ref:`type`; uint32_t :ref:`flags`; int :ref:`metric`; int :ref:`tos`; int :ref:`mtu`; int :ref:`win`; int :ref:`irtt`; int :ref:`hoplimit`; int :ref:`table`; :ref:`tapi_cfg_rt_nexthop`* :ref:`hops`; unsigned int :ref:`hops_num`; int :ref:`addr_family`; const void* :ref:`dst`; const void* :ref:`gw`; const void* :ref:`src`; }; .. _details-structtapi__cfg__rt__params: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Structure storing parameters of :ref:`tapi_cfg_add_route2() `. Fields ------ .. index:: pair: variable; dst_addr .. _doxid-structtapi__cfg__rt__params_1aa5b43d24d969cf310609b0773d4ba8e7: .. ref-code-block:: cpp :class: doxyrest-title-code-block const struct sockaddr* dst_addr Destination address. .. index:: pair: variable; prefix .. _doxid-structtapi__cfg__rt__params_1ab380c3d44b50bbd0c32b03e72f984520: .. ref-code-block:: cpp :class: doxyrest-title-code-block int prefix Route prefix length. .. index:: pair: variable; gw_addr .. _doxid-structtapi__cfg__rt__params_1a443548125cc9fee99e78843918da2c4d: .. ref-code-block:: cpp :class: doxyrest-title-code-block const struct sockaddr* gw_addr Gateway address. .. index:: pair: variable; src_addr .. _doxid-structtapi__cfg__rt__params_1ad9b0669d8dc6d713da3072c60e60a6d4: .. ref-code-block:: cpp :class: doxyrest-title-code-block const struct sockaddr* src_addr Default source address. .. index:: pair: variable; dev .. _doxid-structtapi__cfg__rt__params_1a417594c65c971da392c14227eb7101b0: .. ref-code-block:: cpp :class: doxyrest-title-code-block const char* dev Route interface. .. index:: pair: variable; type .. _doxid-structtapi__cfg__rt__params_1a27185fca5368462b3b6b2d7f2f90d4c9: .. ref-code-block:: cpp :class: doxyrest-title-code-block const char* type Route type. .. index:: pair: variable; flags .. _doxid-structtapi__cfg__rt__params_1adf40036d959e56b11e0e681a60eedf33: .. ref-code-block:: cpp :class: doxyrest-title-code-block uint32_t flags Route flags. .. index:: pair: variable; metric .. _doxid-structtapi__cfg__rt__params_1a698c5518bdcd3e14446612363ec44d49: .. ref-code-block:: cpp :class: doxyrest-title-code-block int metric Route metric. .. index:: pair: variable; tos .. _doxid-structtapi__cfg__rt__params_1aa16ef1dd2130f2db142a37242775dbbf: .. ref-code-block:: cpp :class: doxyrest-title-code-block int tos Type of service. .. index:: pair: variable; mtu .. _doxid-structtapi__cfg__rt__params_1a765201ee4d4951dedf7d3e0c098d74e3: .. ref-code-block:: cpp :class: doxyrest-title-code-block int mtu TCP maximum segment size (MSS) on the route. .. index:: pair: variable; win .. _doxid-structtapi__cfg__rt__params_1a5ca60a2bab9dbbecadb4da41e0d3a4bc: .. ref-code-block:: cpp :class: doxyrest-title-code-block int win TCP window size. .. index:: pair: variable; irtt .. _doxid-structtapi__cfg__rt__params_1a0defac1c91dd75efd898dd1de96d4bea: .. ref-code-block:: cpp :class: doxyrest-title-code-block int irtt Initial round trip time for TCP connections (in milliseconds). .. index:: pair: variable; hoplimit .. _doxid-structtapi__cfg__rt__params_1a9aaedd564d58049a87c60183840d98e2: .. ref-code-block:: cpp :class: doxyrest-title-code-block int hoplimit Hop limit. .. index:: pair: variable; table .. _doxid-structtapi__cfg__rt__params_1a12cb69f86b0cb1ede4a0f61a58d2100d: .. ref-code-block:: cpp :class: doxyrest-title-code-block int table Route table. .. index:: pair: variable; hops .. _doxid-structtapi__cfg__rt__params_1a1a22257127c5bb9be207662ed445fc23: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`tapi_cfg_rt_nexthop`* hops Nexthops of a multipath route. .. index:: pair: variable; hops_num .. _doxid-structtapi__cfg__rt__params_1a9afee2751fce96e47ba59331c7b07dd9: .. ref-code-block:: cpp :class: doxyrest-title-code-block unsigned int hops_num Number of nexthops. .. index:: pair: variable; addr_family .. _doxid-structtapi__cfg__rt__params_1a75cc0bf356fd8b5f478a900f58291ca1: .. ref-code-block:: cpp :class: doxyrest-title-code-block int addr_family Address family. .. index:: pair: variable; dst .. _doxid-structtapi__cfg__rt__params_1aa0c96cf1dd0adb81c527933411269b6e: .. ref-code-block:: cpp :class: doxyrest-title-code-block const void* dst Pointer to network address (struct in_addr, struct in6_addr, etc). .. index:: pair: variable; gw .. _doxid-structtapi__cfg__rt__params_1a70eddf915915d879c32b261ba25f7d59: .. ref-code-block:: cpp :class: doxyrest-title-code-block const void* gw Pointer to gateway address. .. index:: pair: variable; src .. _doxid-structtapi__cfg__rt__params_1a289e693be9888b4ff06fb719626454a5: .. ref-code-block:: cpp :class: doxyrest-title-code-block const void* src Pointer to default source address.