From c8c507c80ea28385caac72b682dd066e44943913 Mon Sep 17 00:00:00 2001 From: "yandong.yan" Date: Tue, 4 Jun 2019 09:59:58 +0800 Subject: [PATCH] fix: fix ip rule goto bug --- rule_linux.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rule_linux.go b/rule_linux.go index 6238ae4..e12569f 100644 --- a/rule_linux.go +++ b/rule_linux.go @@ -144,7 +144,7 @@ func ruleHandle(rule *Rule, req *nl.NetlinkRequest) error { req.AddData(nl.NewRtAttr(nl.FRA_OIFNAME, []byte(rule.OifName))) } if rule.Goto >= 0 { - msg.Type = nl.FR_ACT_NOP + msg.Type = nl.FR_ACT_GOTO b := make([]byte, 4) native.PutUint32(b, uint32(rule.Goto)) req.AddData(nl.NewRtAttr(nl.FRA_GOTO, b))