Lines Matching refs:ndisc_socket
78 static struct socket *ndisc_socket; variable
380 struct sock *sk = ndisc_socket->sk; in ndisc_send_na()
454 struct sock *sk = ndisc_socket->sk; in ndisc_send_ns()
515 struct sock *sk = ndisc_socket->sk; in ndisc_send_rs()
1192 struct sock *sk = ndisc_socket->sk; in ndisc_send_redirect()
1377 ndisc_socket = sock_alloc(); in ndisc_init()
1378 if (ndisc_socket == NULL) { in ndisc_init()
1383 ndisc_socket->inode->i_uid = 0; in ndisc_init()
1384 ndisc_socket->inode->i_gid = 0; in ndisc_init()
1385 ndisc_socket->type = SOCK_RAW; in ndisc_init()
1387 if((err = ops->create(ndisc_socket, IPPROTO_ICMPV6)) < 0) { in ndisc_init()
1391 sock_release(ndisc_socket); in ndisc_init()
1392 ndisc_socket = NULL; /* For safety. */ in ndisc_init()
1396 sk = ndisc_socket->sk; in ndisc_init()
1420 sock_release(ndisc_socket); in ndisc_cleanup()
1421 ndisc_socket = NULL; /* For safety. */ in ndisc_cleanup()