* add connected UDP Tests
* ensure we do not issue two connect calls
* minor updates
* add debug traces
* temporarily remove connected udp tests
* add connected UDP tests for non-dual stack sockets
* enable v4 tests only
* only test redirect temporarily
* temporarily remove TCP tests
* fix connected udp issue by removing stale contexts
* remove debug tracing, add if check for free
* skip setting redirect context for connected udp
* update ebpf program
* update ebpf program for v6
* remove debug logs
* fix compiler error with incorrect enum
* update to use connection instead of protocol
* update to use connection instead of protocol
* update tests with CR feedback
* update expected
* update to using different key and value types to allow for proper usage of protocol vs connection type
* Add interface luid to bpf_sock_addr and bpf_sock_ops
And also add compartment id to bpf_sock_ops for consistency with
bpf_sock_addr, so that it is available to eBPF programs.
Signed-off-by: Dave Thaler <dthaler@microsoft.com>
* Expose interface luid and compartment id to sock_ops and sock_addr hooks
* compartment_id was exposed to sock_addr but not sock_ops
* interface_luid was not exposed to either
Exposing the interface_luid should be a performant way to compensate for
lack of scope_id in the hooks, since the interface luid is available
in the WFP callout, and is more specific than a scope id (so a scope id
can always be looked up from the interface luid in the future if
needed).
Fixes#1129
Signed-off-by: Dave Thaler <dthaler@microsoft.com>
* Update expected bpf2c output
Signed-off-by: Dave Thaler <dthaler@microsoft.com>