We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f4f72c commit e9f11f7Copy full SHA for e9f11f7
nl/tc_linux.go
@@ -1580,7 +1580,7 @@ func (p *TcPedit) SetIPv6Dst(ip6 net.IP) {
1580
}
1581
1582
func (p *TcPedit) SetIPv4Src(ip net.IP) {
1583
- u32 := NativeEndian().Uint32(ip[:4])
+ u32 := NativeEndian().Uint32(ip.To4())
1584
1585
tKey := TcPeditKey{}
1586
tKeyEx := TcPeditKeyEx{}
@@ -1596,7 +1596,7 @@ func (p *TcPedit) SetIPv4Src(ip net.IP) {
1596
1597
1598
func (p *TcPedit) SetIPv4Dst(ip net.IP) {
1599
1600
1601
1602
0 commit comments