1. static struct nl_sock * nl_create_handle(struct nl_cb *cb, const char *dbg)
2. struct nl_sock *nl_socket_alloc_cb(struct nl_cb *cb)
a. calloc struct cb memory area
b. 建立pid s_local.nl_pid = generate_local_port(); //取process id作為pid
3. 在此建立socket和bind
int genl_connect(struct nl_sock *sk)
int genl_connect(struct nl_sock *sk)
a. sk->s_fd = socket(AF_NETLINK, SOCK_RAW | flags, protocol);
b. bind(sk->s_fd, (struct sockaddr*) &sk->s_local, sizeof(sk->s_local));