google / gvisor

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

Support ifconfig for hostinet #1756

Open tanjianfeng opened 4 years ago

tanjianfeng commented 4 years ago

For hostinet network type,

# ifconfig
SIOCGIFCONF: Inappropriate ioctl for device
eth0: error fetching interface information: Inappropriate ioctl for device

This is a duplicated one of https://github.com/google/gvisor/issues/86.

fvoznika commented 4 years ago

hostinet supports only a few options: TIOCINQ and TIOCOUTQ

This can be extended to support more options as needed. We currently have no one to work on this though, PRs are welcome :-)