Make sure the log output is line-buffered

Signed-off-by: Raphael Catolino <raphael.catolino@gmail.com>
Coalesce the netlink message type checking.

Signed-off-by: Raphael Catolino <raphael.catolino@gmail.com>
Add log message on smdp timeout.

Signed-off-by: Raphael Catolino <raphael.catolino@gmail.com>