mirror of
https://github.com/golang/sys.git
synced 2026-02-09 04:06:04 +03:00
ioctls such as SIOCGIFADDR deal with AF_INET sockaddr addresses, but none of the fields aside from the embedded IPv4 address are used. To keep the interface more simple, we directly expose Inet4Addr get and set methods which enable use of these ioctls with the Ifreq wrapper. Change-Id: Ia8b6ab9730f852cb99f4152e334a59d395476d2f Reviewed-on: https://go-review.googlesource.com/c/sys/+/343250 Trust: Matt Layher <mdlayher@gmail.com> Run-TryBot: Matt Layher <mdlayher@gmail.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org> Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
4.6 KiB
4.6 KiB