-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Optimize specifing port range with binary mask #153
Conversation
3781ff3
to
ca6277c
Compare
exec/network/tc/network_tc.go
Outdated
`%s && \ | ||
tc filter add dev %s parent 1: prio 4 protocol ip u32 match ip dport %s 0xffff flowid 1:4 && \ | ||
tc filter add dev %s parent 1: prio 4 protocol ip u32 match ip sport %s 0xffff flowid 1:4`, | ||
args, netInterface, port, netInterface, port) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里port从哪来的?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
和其他提交的代码冲突了(#149)
`%s && \ | ||
tc filter add dev %s parent 1: prio 4 protocol ip u32 match ip dport %s 0xffff flowid 1:4 && \ | ||
tc filter add dev %s parent 1: prio 4 protocol ip u32 match ip sport %s 0xffff flowid 1:4`, | ||
args, netInterface, port, netInterface, port) | ||
} | ||
return args | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
少了一个 }
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
Signed-off-by: caimingxia <[email protected]> Signed-off-by: hengyoush <[email protected]>
Signed-off-by: tiny-x <[email protected]> Signed-off-by: hengyoush <[email protected]>
Signed-off-by: Icesource <[email protected]> Signed-off-by: hengyoush <[email protected]>
in some occasion, we still need to kill or stop process by declaring a specified pid explicitly Signed-off-by: xushunke <[email protected]> Signed-off-by: hengyoush <[email protected]>
Signed-off-by: caimingxia <[email protected]> Signed-off-by: hengyoush <[email protected]>
Signed-off-by: caimingxia <[email protected]> Signed-off-by: hengyoush <[email protected]>
Signed-off-by: binbin0325 <[email protected]> Signed-off-by: hengyoush <[email protected]>
Signed-off-by: chengaolin123 <[email protected]> Signed-off-by: hengyoush <[email protected]>
Signed-off-by: chengaolin123 <[email protected]> Signed-off-by: hengyoush <[email protected]>
Signed-off-by: Forestls430 <[email protected]> Signed-off-by: hengyoush <[email protected]>
Signed-off-by: linsen <[email protected]> Signed-off-by: hengyoush <[email protected]>
…io#116) Signed-off-by: Super-long <[email protected]> Co-authored-by: tiny-x <[email protected]> Signed-off-by: hengyoush <[email protected]>
Signed-off-by: xinmian <[email protected]> Signed-off-by: hengyoush <[email protected]>
Signed-off-by: caimingxia <[email protected]> Signed-off-by: hengyoush <[email protected]>
Signed-off-by: caimingxia <[email protected]> Signed-off-by: hengyoush <[email protected]>
Signed-off-by: hengyoush <[email protected]>
Signed-off-by: hengyoush <[email protected]>
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.0.0-20210711020723-a769d52b0f97 to 0.1.0. - [Release notes](https://github.com/golang/crypto/releases) - [Commits](https://github.com/golang/crypto/commits/v0.1.0) --- updated-dependencies: - dependency-name: golang.org/x/crypto dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: hengyoush <[email protected]>
Signed-off-by: Yuaninga <[email protected]> Signed-off-by: hengyoush <[email protected]>
…c-os/pull/149/files Signed-off-by: hengyoush <[email protected]>
Signed-off-by: lengdanran <[email protected]> Signed-off-by: hengyoush <[email protected]>
Signed-off-by: hengyoush <[email protected]>
Signed-off-by: lengdanran <[email protected]> Signed-off-by: hengyoush <[email protected]>
Signed-off-by: caimingxia <[email protected]> Signed-off-by: hengyoush <[email protected]>
Signed-off-by: caimingxia <[email protected]> Signed-off-by: hengyoush <[email protected]>
resolve conflict Signed-off-by: hengyoush <[email protected]>
a2d5ba9
to
02c499a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ip has the same problem (too long parameters), is there a solution similar to port?
For ip we can use subnet mask? |
for issue chaosblade-io/chaosblade#885
主要改动如下: