Home
last modified time | relevance | path

Searched refs:nladdr (Results 1 – 2 of 2) sorted by relevance

/linux-2.4.37.9/net/netlink/
Dnetlink_dev.c105 struct sockaddr_nl nladdr; in netlink_open() local
117 memset(&nladdr, 0, sizeof(nladdr)); in netlink_open()
118 nladdr.nl_family = AF_NETLINK; in netlink_open()
119 nladdr.nl_groups = ~0; in netlink_open()
120 if ((err = sock->ops->bind(sock, (struct sockaddr*)&nladdr, sizeof(nladdr))) < 0) { in netlink_open()
Daf_netlink.c472 struct sockaddr_nl *nladdr=(struct sockaddr_nl *)addr; in netlink_bind() local
474 if (nladdr->nl_family != AF_NETLINK) in netlink_bind()
478 if (nladdr->nl_groups && !netlink_capable(sock, NL_NONROOT_RECV)) in netlink_bind()
482 if (nladdr->nl_pid != sk->protinfo.af_netlink->pid) in netlink_bind()
485 err = nladdr->nl_pid ? in netlink_bind()
486 netlink_insert(sk, nladdr->nl_pid) : in netlink_bind()
492 if (!nladdr->nl_groups && !nlk->groups) in netlink_bind()
497 if (nlk->groups && !nladdr->nl_groups) { in netlink_bind()
504 } else if (!nlk->groups && nladdr->nl_groups) { in netlink_bind()
508 nlk->groups = nladdr->nl_groups; in netlink_bind()
[all …]