Home
last modified time | relevance | path

Searched refs:nlpcb (Results 1 – 18 of 18) sorted by relevance

/freebsd/sys/netlink/
H A Dnetlink_var.h57 struct nlpcb { struct
74 CK_LIST_ENTRY(nlpcb) nl_next; argument
75 CK_LIST_ENTRY(nlpcb) nl_port_next;
80 #define sotonlpcb(so) ((struct nlpcb *)(so)->so_pcb) argument
99 CK_LIST_HEAD(nl_pid_head, nlpcb) ctl_port_head;
100 CK_LIST_HEAD(nlpcb_head, nlpcb) ctl_pcb_head;
127 void nl_set_thread_nlp(struct thread *td, struct nlpcb *nlp);
130 bool nl_send(struct nl_writer *, struct nlpcb *);
131 void nlmsg_ack(struct nlpcb *nlp, int error, struct nlmsghdr *nlmsg,
133 void nl_on_transmit(struct nlpcb *nlp);
[all …]
H A Dnetlink_ctl.h80 bool nlp_has_priv(struct nlpcb *nlp, int priv);
81 struct ucred *nlp_get_cred(struct nlpcb *nlp);
82 uint32_t nlp_get_pid(const struct nlpcb *nlp);
83 bool nlp_unconstrained_vnet(const struct nlpcb *nlp);
109 struct nlpcb *_nl_get_thread_nlp(struct thread *td);
111 static inline struct nlpcb *
119 struct nlpcb *nl_get_thread_nlp(struct thread *td);
H A Dnetlink_glue.c86 nlp_has_priv(struct nlpcb *nlp, int priv) in nlp_has_priv()
92 nlp_get_cred(struct nlpcb *nlp) in nlp_get_cred()
98 nlp_get_pid(const struct nlpcb *nlp) in nlp_get_pid()
104 nlp_unconstrained_vnet(const struct nlpcb *nlp) in nlp_unconstrained_vnet()
113 nl_writer_unicast_stub(struct nl_writer *nw, size_t size, struct nlpcb *nlp, in nl_writer_unicast_stub()
181 static struct nlpcb *
216 nl_writer_unicast(struct nl_writer *nw, size_t size, struct nlpcb *nlp, in nl_writer_unicast()
285 struct nlpcb *
H A Dnetlink_domain.c107 struct nlpcb *
114 nl_set_thread_nlp(struct thread *td, struct nlpcb *nlp) in nl_set_thread_nlp()
128 static struct nlpcb *
131 struct nlpcb *nlp; in nl_port_lookup()
141 nlp_join_group(struct nlpcb *nlp, unsigned int group_id) in nlp_join_group()
154 nlp_leave_group(struct nlpcb *nlp, unsigned int group_id) in nlp_leave_group()
163 nlp_memberof_group(struct nlpcb *nlp, unsigned int group_id) in nlp_memberof_group()
172 nlp_get_groups_compat(struct nlpcb *nlp) in nlp_get_groups_compat()
206 struct nlpcb *nlp_last = NULL; in nl_send_group()
207 struct nlpcb *nlp; in nl_send_group()
[all …]
H A Dnetlink_io.c54 static bool nl_process_nbuf(struct nl_buf *nb, struct nlpcb *nlp);
81 nl_schedule_taskqueue(struct nlpcb *nlp) in nl_schedule_taskqueue()
93 nl_process_received_one(struct nlpcb *nlp) in nl_process_received_one()
142 nl_process_received(struct nlpcb *nlp) in nl_process_received()
161 nl_on_transmit(struct nlpcb *nlp) in nl_on_transmit()
187 struct nlpcb *nlp = (struct nlpcb *)_arg; in nl_taskqueue_handler()
201 nl_send(struct nl_writer *nw, struct nlpcb *nlp) in nl_send()
260 struct nlpcb *nlp, struct nl_pstate *npt) in nl_receive_message()
322 nl_process_nbuf(struct nl_buf *nb, struct nlpcb *nlp) in nl_process_nbuf()
H A Dnetlink_linux.h36 struct nlpcb;
40 typedef bool msgs_to_linux_cb_t(struct nl_writer *nw, struct nlpcb *nlp);
H A Dnetlink_message_writer.h49 struct nlpcb *nlp;
70 bool _nl_writer_unicast(struct nl_writer *, size_t, struct nlpcb *nlp, bool);
86 nl_writer_unicast(struct nl_writer *nw, size_t size, struct nlpcb *nlp, in nl_writer_unicast()
145 bool nl_writer_unicast(struct nl_writer *, size_t, struct nlpcb *, bool waitok);
H A Dnetlink_route.c71 struct nlpcb *nlp = npt->nlp; in rtnl_handle_message()
H A Dnetlink_message_writer.c76 _nl_writer_unicast(struct nl_writer *nw, size_t size, struct nlpcb *nlp, in _nl_writer_unicast()
267 nlmsg_ack(struct nlpcb *nlp, int error, struct nlmsghdr *hdr, in nlmsg_ack()
H A Dnetlink_message_parser.h68 struct nlpcb *nlp; /* Originator socket */
H A Dnetlink_generic.c116 struct nlpcb *nlp = npt->nlp; in genl_handle_message()
/freebsd/sys/netlink/route/
H A Droute_var.h37 struct nlpcb;
40 typedef int rtnl_msg_cb_f(struct nlmsghdr *hdr, struct nlpcb *nlp,
108 const struct nlattr_bmask *bm, struct nlpcb *nlp, struct nl_pstate *npt);
110 const struct nlattr_bmask *bm, struct nlpcb *nlp, struct nl_pstate *npt);
H A Diface.c64 struct nlpcb *so;
452 rtnl_handle_getlink(struct nlmsghdr *hdr, struct nlpcb *nlp, struct nl_pstate *npt) in rtnl_handle_getlink()
533 rtnl_handle_dellink(struct nlmsghdr *hdr, struct nlpcb *nlp, struct nl_pstate *npt) in rtnl_handle_dellink()
589 struct nlattr_bmask *bm, struct nlpcb *nlp, struct nl_pstate *npt) in create_link()
614 struct nlattr_bmask *bm, struct nlpcb *nlp, struct nl_pstate *npt) in modify_link()
670 rtnl_handle_newlink(struct nlmsghdr *hdr, struct nlpcb *nlp, struct nl_pstate *npt) in rtnl_handle_newlink()
1060 rtnl_handle_getaddr(struct nlmsghdr *hdr, struct nlpcb *nlp, struct nl_pstate *npt) in rtnl_handle_getaddr()
1113 if_t ifp, struct nlpcb *nlp, struct nl_pstate *npt) in handle_newaddr_inet()
1197 if_t ifp, struct nlpcb *nlp, struct nl_pstate *npt) in handle_deladdr_inet()
1218 if_t ifp, struct nlpcb *nlp, struct nl_pstate *npt) in handle_newaddr_inet6()
[all …]
H A Dneigh.c63 struct nlpcb *so;
361 rtnl_handle_newneigh(struct nlmsghdr *hdr, struct nlpcb *nlp, struct nl_pstate *npt) in rtnl_handle_newneigh()
474 rtnl_handle_delneigh(struct nlmsghdr *hdr, struct nlpcb *nlp, struct nl_pstate *npt) in rtnl_handle_delneigh()
501 rtnl_handle_getneigh(struct nlmsghdr *hdr, struct nlpcb *nlp, struct nl_pstate *npt) in rtnl_handle_getneigh()
H A Drt.c351 struct nlpcb *nlp, struct nlmsghdr *hdr) in report_operation()
545 struct nlpcb *nlp; in dump_rtentry()
622 handle_rtm_getroute(struct nlpcb *nlp, struct nl_parsed_route *attrs, in handle_rtm_getroute()
676 handle_rtm_dump(struct nlpcb *nlp, uint32_t fibnum, int family, in handle_rtm_dump()
937 rtnl_handle_newroute(struct nlmsghdr *hdr, struct nlpcb *nlp, in rtnl_handle_newroute()
1005 rtnl_handle_delroute(struct nlmsghdr *hdr, struct nlpcb *nlp, in rtnl_handle_delroute()
1035 rtnl_handle_getroute(struct nlmsghdr *hdr, struct nlpcb *nlp, struct nl_pstate *npt) in rtnl_handle_getroute()
H A Dnexthop.c384 struct nlpcb *so;
881 rtnl_handle_newnhop(struct nlmsghdr *hdr, struct nlpcb *nlp, in rtnl_handle_newnhop()
966 rtnl_handle_delnhop(struct nlmsghdr *hdr, struct nlpcb *nlp, in rtnl_handle_delnhop()
1005 rtnl_handle_getnhop(struct nlmsghdr *hdr, struct nlpcb *nlp, in rtnl_handle_getnhop()
/freebsd/sys/compat/linux/
H A Dlinux_netlink.c354 rtnl_newlink_to_linux(struct nlmsghdr *hdr, struct nlpcb *nlp, in rtnl_newlink_to_linux()
389 rtnl_newaddr_to_linux(struct nlmsghdr *hdr, struct nlpcb *nlp, in rtnl_newaddr_to_linux()
411 rtnl_newneigh_to_linux(struct nlmsghdr *hdr, struct nlpcb *nlp, in rtnl_newneigh_to_linux()
432 rtnl_newroute_to_linux(struct nlmsghdr *hdr, struct nlpcb *nlp, in rtnl_newroute_to_linux()
480 rtnl_to_linux(struct nlmsghdr *hdr, struct nlpcb *nlp, struct nl_writer *nw) in rtnl_to_linux()
507 nlmsg_error_to_linux(struct nlmsghdr *hdr, struct nlpcb *nlp, struct nl_writer *nw) in nlmsg_error_to_linux()
541 nlmsg_to_linux(struct nlmsghdr *hdr, struct nlpcb *nlp, struct nl_writer *nw) in nlmsg_to_linux()
567 nlmsgs_to_linux(struct nl_writer *nw, struct nlpcb *nlp) in nlmsgs_to_linux()
/freebsd/sys/netpfil/pf/
H A Dpf_nl.c145 dump_state(struct nlpcb *nlp, const struct nlmsghdr *hdr, struct pf_kstate *s, in dump_state()
240 handle_dumpstates(struct nlpcb *nlp, struct nl_parsed_state *attrs, in handle_dumpstates()
297 handle_getstate(struct nlpcb *nlp, struct nl_parsed_state *attrs, in handle_getstate()
313 dump_creatorid(struct nlpcb *nlp, const struct nlmsghdr *hdr, uint32_t creator, in dump_creatorid()