nlmsg: fix not aligned
nlmsg: check before passing to C function

I do not knot the detail, but it seems to need
test: fix typo and casting
API: change function name

from NlmsghdrPointer to NlmsghdrBytes
nlmsg: fix return value
test: add for nlmsg
attr: add functions of C macro