diff options
author | Mohammad Abdul Awal <mohammad.abdul.awal@intel.com> | 2016-09-09 14:35:00 +0100 |
---|---|---|
committer | Mohammad Abdul Awal <mohammad.abdul.awal@intel.com> | 2016-09-13 16:15:00 +0100 |
commit | e57f675d4de058f99819dd2d228656533961f38a (patch) | |
tree | 6cb3002fc7cd982fc5e19d281b6e237416470e9f /lib/libtle_udp/tle_udp_impl.h | |
parent | 32c9eda3c096e3ece19591f92b1d6fe65fc53881 (diff) |
add list of blocked ports for IPv6
Change-Id: Iefc866e71e887fe23ff9473b23577b6e576f18b1
Signed-off-by: Mohammad Abdul Awal <mohammad.abdul.awal@intel.com>
Diffstat (limited to 'lib/libtle_udp/tle_udp_impl.h')
-rw-r--r-- | lib/libtle_udp/tle_udp_impl.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/lib/libtle_udp/tle_udp_impl.h b/lib/libtle_udp/tle_udp_impl.h index b46e4dd..a0af7ce 100644 --- a/lib/libtle_udp/tle_udp_impl.h +++ b/lib/libtle_udp/tle_udp_impl.h @@ -56,6 +56,14 @@ struct tle_udp_ctx; struct tle_udp_dev; /** + * Blocked UDP ports info. + */ +struct tle_bl_port { + uint32_t nb_port; /**< number of blocked ports. */ + const uint16_t *port; /**< list of blocked ports. */ +}; + +/** * UDP device parameters. */ struct tle_udp_dev_param { @@ -63,8 +71,8 @@ struct tle_udp_dev_param { uint32_t tx_offload; /**< DEV_TX_OFFLOAD_* supported. */ struct in_addr local_addr4; /**< local IPv4 address assigned. */ struct in6_addr local_addr6; /**< local IPv6 address assigned. */ - uint32_t nb_bl_ports; /**< number of blocked ports. */ - uint16_t *bl_ports; /**< list of blocked ports. */ + struct tle_bl_port bl4; /**< blocked ports for IPv4 address. */ + struct tle_bl_port bl6; /**< blocked ports for IPv4 address. */ }; #define TLE_UDP_MAX_HDR 0x60 |