diff options
author | Dave Barach <dave@barachs.net> | 2018-10-23 10:47:36 -0400 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2018-10-23 21:48:22 +0000 |
commit | 8a9566ebe0bb4644c0dbd118dc1292eca0b7d3e4 (patch) | |
tree | 2ddb6e1c5349ebf77423bc053e84ccb47b0c36f9 /src/vnet/dhcp/dhcp_proxy.h | |
parent | bf4d5ce58435d3f424749ff69650ea67ce778f04 (diff) |
dns, dhcp: on-demand udp port registration
Change-Id: I8bf411adc6c5f4caa349d161174b544d2de3ad1d
Signed-off-by: Dave Barach <dave@barachs.net>
Diffstat (limited to 'src/vnet/dhcp/dhcp_proxy.h')
-rw-r--r-- | src/vnet/dhcp/dhcp_proxy.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/vnet/dhcp/dhcp_proxy.h b/src/vnet/dhcp/dhcp_proxy.h index ec43769d643..f8fc2902684 100644 --- a/src/vnet/dhcp/dhcp_proxy.h +++ b/src/vnet/dhcp/dhcp_proxy.h @@ -146,11 +146,23 @@ typedef struct /* hash lookup specific vrf_id -> option 82 vss suboption */ u32 *vss_index_by_rx_fib_index[DHCP_N_PROTOS]; + + /* udp ports have been registered */ + int udp_ports_registered; + + /* convenience */ + vlib_main_t *vlib_main; + } dhcp_proxy_main_t; extern dhcp_proxy_main_t dhcp_proxy_main; /** + * @brief Register the dhcp client and server ports, if not already done + */ +void dhcp_maybe_register_udp_ports (void); + +/** * @brief Send the details of a proxy session to the API client during a dump */ void dhcp_send_details (fib_protocol_t proto, |