Skip to content

Commit

Permalink
fix size required for a uint64
Browse files Browse the repository at this point in the history
  • Loading branch information
sigmonsays authored and aboch committed Aug 11, 2021
1 parent 21f2c55 commit e1a867c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rule_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ func (h *Handle) RuleListFiltered(family int, filter *Rule, filterMask uint64) (
case nl.FRA_FWMASK:
rule.Mask = int(native.Uint32(attrs[j].Value[0:4]))
case nl.FRA_TUN_ID:
rule.TunID = uint(native.Uint64(attrs[j].Value[0:4]))
rule.TunID = uint(native.Uint64(attrs[j].Value[0:8]))
case nl.FRA_IIFNAME:
rule.IifName = string(attrs[j].Value[:len(attrs[j].Value)-1])
case nl.FRA_OIFNAME:
Expand Down

0 comments on commit e1a867c

Please sign in to comment.