google / gvisor

Application Kernel for Containers
https://gvisor.dev
Apache License 2.0
15.63k stars 1.29k forks source link

Netstack nic seems to not support promiscuous mode. #3266

Closed hbhasker closed 4 years ago

hbhasker commented 4 years ago

Looks like while we do have the flag on a nic nothing really checks it. I am reasonably sure we used to support it but looks like it got lost in some refactoring.

hbhasker commented 4 years ago

pkg/tcpip/stack/nic.go:613 actually creates a referenced network endpoint if we are in promiscuous mode. Looks like we didn't lose it just got refactored into an obscure location. '

Closing.