diff options
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, |