moved netlink socket setup to a separate function and changed global
variables to be local ones
added guards against kernel communicating with itself through netlink, creating a loop
added skbuff header necessary for function declarations
changed msgtype.h to protocol.h
added iohelp.c and h for writen,readn and readlinen