aboutsummaryrefslogtreecommitdiffstats
path: root/lib/libtle_udp/tle_udp_impl.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libtle_udp/tle_udp_impl.h')
-rw-r--r--lib/libtle_udp/tle_udp_impl.h12
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