Skip to content
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

Merged
merged 4 commits into from
Oct 2, 2024

Conversation

adisos
Copy link
Contributor

@adisos adisos commented Oct 1, 2024

… RFC-only combinations

issue #68 (new ICMP type not restricted only to RFC type,code combinations).

adisos added 2 commits October 1, 2024 12:09
Signed-off-by: adisos <[email protected]>
Signed-off-by: adisos <[email protected]>
@adisos adisos requested a review from zivnevo October 1, 2024 09:46
Copy link
Member

@zivnevo zivnevo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tiny things

}

func (s *ICMPSet) Contains(i int) bool {
return ((1 << i) & (*s)) != 0
// pathLeft creates a new TCPUDPSet, implemented using LeftTriple.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix comment

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

tc := cube.ICMPTypeCode()
if tc == nil {
return ""
func gettICMPCubeStr(cube ds.Pair[*TypeSet, *CodeSet]) string {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
func gettICMPCubeStr(cube ds.Pair[*TypeSet, *CodeSet]) string {
func getICMPCubeStr(cube ds.Pair[*TypeSet, *CodeSet]) string {

Copy link
Contributor Author

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]>
@adisos adisos merged commit dbe18f8 into main Oct 2, 2024
4 checks passed
@adisos adisos deleted the generic_icmp_followup_new branch October 2, 2024 06:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants