doc: mnl_socket_open returns NULL on error

Signed-off-by: Florian Westphal <fw@strlen.de>
examples: set attr table

Florian adviced rtnl-route-event.c has same problem

Signed-off-by: Ken-ichirou MATSUZAWA <chamas@h4.dion.ne.jp>
Signed-off-by: Florian Westphal <fw@strlen.de>
examples: fix trivial error message

Signed-off-by: Ken-ichirou MATSUZAWA <chamas@h4.dion.ne.jp>
Signed-off-by: Florian Westphal <fw@strlen.de>
examples: use mnl_nlmsg_get_payload()

not increment (nlmsghdr) pointer

Signed-off-by: Ken-ichirou MATSUZAWA <chamas@h4.dion.ne.jp>
Signed-off-by: Florian Westphal <fw@strlen.de>
attr: validate MNL_TYPE_MSEC same as MNL_TYPE_U64

Signed-off-by: Ken-ichirou MATSUZAWA <chamas@h4.dion.ne.jp>
Signed-off-by: Florian Westphal <fw@strlen.de>
examples: made sub functions the same

show entry in oneline and RTA_PRIORITY

Signed-off-by: Ken-ichirou MATSUZAWA <chamas@h4.dion.ne.jp>
Signed-off-by: Florian Westphal <fw@strlen.de>
examples: fix display condition

Signed-off-by: Ken-ichirou MATSUZAWA <chamas@h4.dion.ne.jp>
Signed-off-by: Florian Westphal <fw@strlen.de>
examples: use mnl_socket_setsockopt

instead of raw setsockopt()

Signed-off-by: Ken-ichirou MATSUZAWA <chamas@h4.dion.ne.jp>
Signed-off-by: Florian Westphal <fw@strlen.de>