| /freebsd/sys/netlink/ |
| H A D | netlink_var.h | 57 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 D | netlink_ctl.h | 80 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); 112 struct nlpcb *_nl_get_thread_nlp(struct thread *td); 114 static inline struct nlpcb * 122 struct nlpcb *nl_get_thread_nlp(struct thread *td);
|
| H A D | netlink_glue.c | 86 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 D | netlink_domain.c | 107 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 D | netlink_io.c | 54 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() 261 struct nlpcb *nlp, struct nl_pstate *npt) in nl_receive_message() 324 nl_process_nbuf(struct nl_buf *nb, struct nlpcb *nlp) in nl_process_nbuf()
|
| H A D | netlink_linux.h | 36 struct nlpcb; 40 typedef struct nl_buf * msgs_to_linux_cb_t(struct nl_buf *, struct nlpcb *,
|
| H A D | netlink_message_writer.h | 50 struct nlpcb *nlp; 72 bool _nl_writer_unicast(struct nl_writer *, size_t, struct nlpcb *nlp, bool); 88 nl_writer_unicast(struct nl_writer *nw, size_t size, struct nlpcb *nlp, in nl_writer_unicast() 147 bool nl_writer_unicast(struct nl_writer *, size_t, struct nlpcb *, bool waitok);
|
| H A D | netlink_route.c | 71 struct nlpcb *nlp = npt->nlp; in rtnl_handle_message()
|
| H A D | netlink_message_writer.c | 76 _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 D | netlink_message_parser.h | 68 struct nlpcb *nlp; /* Originator socket */
|
| H A D | netlink_generic.c | 115 struct nlpcb *nlp = npt->nlp; in genl_handle_message()
|
| /freebsd/sys/netlink/route/ |
| H A D | route_var.h | 37 struct nlpcb; 40 typedef int rtnl_msg_cb_f(struct nlmsghdr *hdr, struct nlpcb *nlp, 110 const struct nlattr_bmask *bm, struct nlpcb *nlp, struct nl_pstate *npt); 112 const struct nlattr_bmask *bm, struct nlpcb *nlp, struct nl_pstate *npt);
|
| H A D | neigh.c | 62 struct nlpcb *so; 360 rtnl_handle_newneigh(struct nlmsghdr *hdr, struct nlpcb *nlp, struct nl_pstate *npt) in rtnl_handle_newneigh() 473 rtnl_handle_delneigh(struct nlmsghdr *hdr, struct nlpcb *nlp, struct nl_pstate *npt) in rtnl_handle_delneigh() 500 rtnl_handle_getneigh(struct nlmsghdr *hdr, struct nlpcb *nlp, struct nl_pstate *npt) in rtnl_handle_getneigh()
|
| H A D | iface.c | 66 struct nlpcb *so; 1062 rtnl_handle_getlink(struct nlmsghdr *hdr, struct nlpcb *nlp, struct nl_pstate *npt) in rtnl_handle_getlink() 1144 rtnl_handle_dellink(struct nlmsghdr *hdr, struct nlpcb *nlp, struct nl_pstate *npt) in rtnl_handle_dellink() 1197 struct nlattr_bmask *bm, struct nlpcb *nlp, struct nl_pstate *npt) in create_link() 1222 struct nlattr_bmask *bm, struct nlpcb *nlp, struct nl_pstate *npt) in modify_link() 1278 rtnl_handle_newlink(struct nlmsghdr *hdr, struct nlpcb *nlp, struct nl_pstate *npt) in rtnl_handle_newlink() 1676 rtnl_handle_getaddr(struct nlmsghdr *hdr, struct nlpcb *nlp, struct nl_pstate *npt) in rtnl_handle_getaddr() 1729 if_t ifp, struct nlpcb *nlp, struct nl_pstate *npt) in handle_newaddr_inet() 1813 if_t ifp, struct nlpcb *nlp, struct nl_pstate *npt) in handle_deladdr_inet() 1834 if_t ifp, struct nlpcb *nlp, struct nl_pstate *npt) in handle_newaddr_inet6() [all …]
|
| H A D | rt.c | 414 struct nlpcb *nlp, struct nlmsghdr *hdr) in report_operation() 619 struct nlpcb *nlp; 696 handle_rtm_getroute(struct nlpcb *nlp, struct nl_parsed_route *attrs, in handle_rtm_getroute() 749 handle_rtm_dump(struct nlpcb *nlp, uint32_t fibnum, int family, in handle_rtm_dump() 1037 rtnl_handle_newroute(struct nlmsghdr *hdr, struct nlpcb *nlp, in rtnl_handle_newroute() 1106 rtnl_handle_delroute(struct nlmsghdr *hdr, struct nlpcb *nlp, in rtnl_handle_delroute() 1137 rtnl_handle_getroute(struct nlmsghdr *hdr, struct nlpcb *nlp, struct nl_pstate *npt) in rtnl_handle_getroute()
|
| H A D | nexthop.c | 380 struct nlpcb *so; 899 rtnl_handle_newnhop(struct nlmsghdr *hdr, struct nlpcb *nlp, in rtnl_handle_newnhop() 984 rtnl_handle_delnhop(struct nlmsghdr *hdr, struct nlpcb *nlp, in rtnl_handle_delnhop() 1023 rtnl_handle_getnhop(struct nlmsghdr *hdr, struct nlpcb *nlp, in rtnl_handle_getnhop()
|
| /freebsd/sys/compat/linux/ |
| H A D | linux_netlink.c | 359 rtnl_newlink_to_linux(struct nlmsghdr *hdr, struct nlpcb *nlp, in rtnl_newlink_to_linux() 402 rtnl_newaddr_to_linux(struct nlmsghdr *hdr, struct nlpcb *nlp, in rtnl_newaddr_to_linux() 424 rtnl_newneigh_to_linux(struct nlmsghdr *hdr, struct nlpcb *nlp, in rtnl_newneigh_to_linux() 445 rtnl_newroute_to_linux(struct nlmsghdr *hdr, struct nlpcb *nlp, in rtnl_newroute_to_linux() 493 rtnl_to_linux(struct nlmsghdr *hdr, struct nlpcb *nlp, struct nl_writer *nw) in rtnl_to_linux() 520 nlmsg_error_to_linux(struct nlmsghdr *hdr, struct nlpcb *nlp, struct nl_writer *nw) in nlmsg_error_to_linux() 554 nlmsg_to_linux(struct nlmsghdr *hdr, struct nlpcb *nlp, struct nl_writer *nw) in nlmsg_to_linux() 580 nlmsgs_to_linux(struct nl_buf *orig, struct nlpcb *nlp, const struct ifnet *ifp) in nlmsgs_to_linux()
|
| /freebsd/sys/netpfil/pf/ |
| H A D | pf_nl.c | 172 dump_state(struct nlpcb *nlp, const struct nlmsghdr *hdr, in dump_state() 270 handle_dumpstates(struct nlpcb *nlp, struct nl_parsed_state *attrs, in handle_dumpstates() 327 handle_getstate(struct nlpcb *nlp, struct nl_parsed_state *attrs, in handle_getstate() 343 dump_creatorid(struct nlpcb *nlp, const struct nlmsghdr *hdr, uint32_t creator, in dump_creatorid()
|