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

bpf2go: use [16]byte instead of uint128 #799

Merged
merged 1 commit into from Sep 23, 2022
Merged

bpf2go: use [16]byte instead of uint128 #799

merged 1 commit into from Sep 23, 2022

Conversation

Benjamin-Yim
Copy link
Contributor

The latest code seems to have changed quite a bit so it was changed to:

format.go#L185

...
	case Unsigned, Signed:
		stem := "uint"
		if i.Encoding == Signed {
			stem = "int"
		}
		if i.Size > 8 {
			fmt.Fprintf(&gf.w, "[%d]byte /* %s%d */", i.Size, stem, i.Size*8)
		} else {
			fmt.Fprintf(&gf.w, "%s%d", stem, bits)
		}

@lmb lmb merged commit bb83b7f into cilium:master Sep 23, 2022
@lmb
Copy link
Collaborator

lmb commented Sep 23, 2022

@Benjamin-Yim thank you for your contribution, sorry it took so long to merge.

@lmb lmb changed the title reopen may uint128 to [16]byte bpf2go: use [16]byte instead of uint128 Sep 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants