ipv4: remove unused type inetPktinfo

This type is not used in this package on windows and it is no
corresponding C type defined in the Windows API C headers.

Change-Id: Ic581331d1f04599369361e26d8b38cf2e32241ab
Reviewed-on: https://go-review.googlesource.com/c/net/+/301809
Trust: Tobias Klauser <tobias.klauser@gmail.com>
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
Tobias Klauser
2021-03-15 17:05:24 +01:00
committed by Tobias Klauser
parent e18ecbb051
commit 34ac3e1c20

View File

@@ -25,16 +25,10 @@ const (
sysIP_DROP_SOURCE_MEMBERSHIP = 0x10
sysIP_PKTINFO = 0x13
sizeofInetPktinfo = 0x8
sizeofIPMreq = 0x8
sizeofIPMreqSource = 0xc
)
type inetPktinfo struct {
Addr [4]byte
Ifindex int32
}
type ipMreq struct {
Multiaddr [4]byte
Interface [4]byte
@@ -61,7 +55,3 @@ var (
ssoLeaveGroup: {Option: socket.Option{Level: iana.ProtocolIP, Name: sysIP_DROP_MEMBERSHIP, Len: sizeofIPMreq}, typ: ssoTypeIPMreq},
}
)
func (pi *inetPktinfo) setIfindex(i int) {
pi.Ifindex = int32(i)
}