mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Merge pull request #6258 from liornm:fix-iptables-input-interface
PiperOrigin-RevId: 382788878
This commit is contained in:
@@ -81,6 +81,8 @@ func getEntries4(table stack.Table, tablename linux.TableName) (linux.KernelIPTG
|
||||
copy(entry.Entry.IP.SrcMask[:], rule.Filter.SrcMask)
|
||||
copy(entry.Entry.IP.OutputInterface[:], rule.Filter.OutputInterface)
|
||||
copy(entry.Entry.IP.OutputInterfaceMask[:], rule.Filter.OutputInterfaceMask)
|
||||
copy(entry.Entry.IP.InputInterface[:], rule.Filter.InputInterface)
|
||||
copy(entry.Entry.IP.InputInterfaceMask[:], rule.Filter.InputInterfaceMask)
|
||||
if rule.Filter.DstInvert {
|
||||
entry.Entry.IP.InverseFlags |= linux.IPT_INV_DSTIP
|
||||
}
|
||||
|
||||
@@ -81,6 +81,8 @@ func getEntries6(table stack.Table, tablename linux.TableName) (linux.KernelIP6T
|
||||
copy(entry.Entry.IPv6.SrcMask[:], rule.Filter.SrcMask)
|
||||
copy(entry.Entry.IPv6.OutputInterface[:], rule.Filter.OutputInterface)
|
||||
copy(entry.Entry.IPv6.OutputInterfaceMask[:], rule.Filter.OutputInterfaceMask)
|
||||
copy(entry.Entry.IPv6.InputInterface[:], rule.Filter.InputInterface)
|
||||
copy(entry.Entry.IPv6.InputInterfaceMask[:], rule.Filter.InputInterfaceMask)
|
||||
if rule.Filter.DstInvert {
|
||||
entry.Entry.IPv6.InverseFlags |= linux.IP6T_INV_DSTIP
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user