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

Commits on Feb 10, 2020

  1. Correct value of SizeofXfrmUsersaFlush

    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]>
    tklauser committed Feb 10, 2020
    Configuration menu
    Copy the full SHA
    c321340 View commit details
    Browse the repository at this point in the history