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

Correct value of SizeofXfrmUsersaFlush #523

Merged

Conversation

tklauser
Copy link
Contributor

struct xfrm_usersa_flush contains a single u8, thus sizeof(struct xfrm_usersa_flush) == 1 as can be verified by running the following
code through go tool cgo -godefs:

package xfrm_test

// #include <linux/xfrm.h>
import "C"

const SizeofXfrmUsersaFlush = C.sizeof_struct_xfrm_usersa_flush

which results in

// Code generated by cmd/cgo -godefs; DO NOT EDIT.
// cgo -godefs foo.go

package xfrm_test

const SizeofXfrmUsersaFlush = 0x1

Signed-off-by: Tobias Klauser [email protected]

struct xfrm_usersa_flush contains a single u8, thus sizeof(struct
xfrm_usersa_flush) == 1 as can be verified by running the following
code through go tool cgo -godefs:

    package xfrm_test

    // #include <linux/xfrm.h>
    import "C"

    const SizeofXfrmUsersaFlush = C.sizeof_struct_xfrm_usersa_flush

which results in

    // Code generated by cmd/cgo -godefs; DO NOT EDIT.
    // cgo -godefs foo.go

    package xfrm_test

    const SizeofXfrmUsersaFlush = 0x1

Signed-off-by: Tobias Klauser <[email protected]>
@aboch
Copy link
Collaborator

aboch commented Feb 10, 2020

LGTM

@aboch aboch merged commit bfba8e4 into vishvananda:master Feb 10, 2020
@tklauser tklauser deleted the nl-correct-sizeof_xfrm_usersa_flush branch February 10, 2020 22:35
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.

2 participants