Skip to content

Fix reference to BPF instructions - #313

Merged
aboch merged 1 commit into
vishvananda:masterfrom
sargun:patch-1
Jan 5, 2018
Merged

aboch merged 1 commit into
vishvananda:masterfrom
sargun:patch-1

Conversation

@sargun

@sargun sargun commented Jan 2, 2018 •

Copy link
Copy Markdown
Contributor

Fixes #312

Comment thread bpf_linux.go
ProgType: uint32(progType),
InsnCnt: uint32(len(insns)),
Insns: uintptr(unsafe.Pointer(&insns)),
Insns: uintptr(unsafe.Pointer(&insns[0])),

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I think would be cleaner to remove the second instruction (line 36), the result should be the same

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

See the bug.

@fcrisciani

Copy link
Copy Markdown
Collaborator

LGTM, fixes: #312

@aboch

aboch commented Jan 5, 2018

Copy link
Copy Markdown
Collaborator

Thanks @sargun and @fcrisciani

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.

3 participants