diff options
author | Neale Ranns <nranns@cisco.com> | 2019-07-19 14:01:02 +0000 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2019-07-26 13:27:14 +0000 |
commit | 038e1dfbdfd0bd785852c364011da0a1d828093e (patch) | |
tree | 4e3a039c240e9e91123ff363f909caabc4c909f4 /src/vnet/dhcp/client.h | |
parent | 08ac303e43492c8b25911340fb62811289dd3935 (diff) |
dhcp ip: DSCP settings for transmitted DHCP packets
Type: feature
- Define the ip_dscp_t and use in the IP headers
- Add DSCP setting to the DHCP client for use with packet TX
Change-Id: If220dde0017ea78793747d65f53e11daf23a28fa
Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'src/vnet/dhcp/client.h')
-rw-r--r-- | src/vnet/dhcp/client.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/vnet/dhcp/client.h b/src/vnet/dhcp/client.h index a79d6e59715..5191fcf0fa8 100644 --- a/src/vnet/dhcp/client.h +++ b/src/vnet/dhcp/client.h @@ -89,6 +89,8 @@ typedef struct dhcp_client_t_ adj_index_t ai_ucast; /* the broadcast adjacency on the link */ adj_index_t ai_bcast; + /* IP DSCP to set in sent packets */ + ip_dscp_t dscp; dhcp_event_cb_t event_callback; } dhcp_client_t; @@ -121,6 +123,7 @@ typedef struct /* Information used for event callback */ u32 client_index; u32 pid; + ip_dscp_t dscp; dhcp_event_cb_t event_callback; } dhcp_client_add_del_args_t; @@ -143,7 +146,8 @@ extern int dhcp_client_config (u32 is_add, u8 * hostname, u8 * client_id, dhcp_event_cb_t event_callback, - u8 set_broadcast_flag, u32 pid); + u8 set_broadcast_flag, + ip_dscp_t dscp, u32 pid); /** * callback function for clients walking the DHCP client configurations |