-
Notifications
You must be signed in to change notification settings - Fork 0
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
icmp followup: separate types for ICMP with 8-bit type/code, and with… #70
Conversation
… RFC-only combinations Signed-off-by: adisos <[email protected]>
Signed-off-by: adisos <[email protected]>
Signed-off-by: adisos <[email protected]>
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.
tiny things
pkg/netset/icmpset.go
Outdated
} | ||
|
||
func (s *ICMPSet) Contains(i int) bool { | ||
return ((1 << i) & (*s)) != 0 | ||
// pathLeft creates a new TCPUDPSet, implemented using LeftTriple. |
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.
fix comment
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.
fixed
pkg/netset/icmpset.go
Outdated
tc := cube.ICMPTypeCode() | ||
if tc == nil { | ||
return "" | ||
func gettICMPCubeStr(cube ds.Pair[*TypeSet, *CodeSet]) string { |
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.
func gettICMPCubeStr(cube ds.Pair[*TypeSet, *CodeSet]) string { | |
func getICMPCubeStr(cube ds.Pair[*TypeSet, *CodeSet]) string { |
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.
fixed
Signed-off-by: adisos <[email protected]>
… RFC-only combinations
issue #68 (new ICMP type not restricted only to RFC type,code combinations).