Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lds,BindConfig: Add "freebind" options to support IP_FREEBIND. #536

Merged
merged 1 commit into from
Mar 13, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions envoy/api/v2/core/address.proto
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ message BindConfig {
// The address to bind to when creating a socket.
SocketAddress source_address = 1
[(validate.rules).message.required = true, (gogoproto.nullable) = false];

// [#not-implemented-hide:] Whether to set the IP_FREEBIND option when creating the socket. If
// set, allows the source_address specified to be an address that is not configured on the system
// running Envoy. Defaults to false.
bool freebind = 2;
}

// Addresses specify either a logical or physical address and port, which are
Expand Down
5 changes: 5 additions & 0 deletions envoy/api/v2/lds.proto
Original file line number Diff line number Diff line change
Expand Up @@ -132,4 +132,9 @@ message Listener {
// case the original source and destination addresses and ports are preserved on accepted
// connections. Requires Envoy to run with the *CAP_NET_ADMIN* capability. Defaults to false.
bool transparent = 10;

// [#not-implemented-hide:] Whether the listener should set the IP_FREEBIND socket option. When
// this flag is set to true listeners can be bound to an IP address that is not configured on the
// system running Envoy. Defaults to false.
bool freebind = 11;
}