| /freebsd-14.2/sys/netlink/ |
| H A D | netlink_var.h | 54 struct nlpcb { struct 75 CK_LIST_ENTRY(nlpcb) nl_next; argument 76 CK_LIST_ENTRY(nlpcb) nl_port_next; 81 #define sotonlpcb(so) ((struct nlpcb *)(so)->so_pcb) argument 107 CK_LIST_HEAD(nl_pid_head, nlpcb) ctl_port_head; 108 CK_LIST_HEAD(nlpcb_head, nlpcb) ctl_pcb_head; 147 void nl_on_transmit(struct nlpcb *nlp); 148 void nl_init_io(struct nlpcb *nlp); 149 void nl_free_io(struct nlpcb *nlp); 153 void nl_process_receive_locked(struct nlpcb *nlp); [all …]
|
| H A D | netlink_ctl.h | 83 bool nlp_has_priv(struct nlpcb *nlp, int priv); 84 struct ucred *nlp_get_cred(struct nlpcb *nlp); 85 uint32_t nlp_get_pid(const struct nlpcb *nlp); 86 bool nlp_unconstrained_vnet(const struct nlpcb *nlp); 114 struct nlpcb *_nl_get_thread_nlp(struct thread *td); 116 static inline struct nlpcb * 124 struct nlpcb *nl_get_thread_nlp(struct thread *td);
|
| H A D | netlink_domain.c | 103 struct nlpcb * 124 static struct nlpcb * 127 struct nlpcb *nlp; in nl_port_lookup() 195 struct nlpcb *nlp_last = NULL; in nl_send_group() 196 struct nlpcb *nlp; in nl_send_group() 304 struct nlpcb *nlp; in nl_pru_attach() 375 struct nlpcb *nlp = sotonlpcb(so); in nl_pru_bind() 452 struct nlpcb *nlp; in nl_pru_connect() 477 destroy_nlpcb(struct nlpcb *nlp) in destroy_nlpcb() 488 struct nlpcb *nlp; in destroy_nlpcb_epoch() [all …]
|
| H A D | netlink_io.c | 177 nl_schedule_taskqueue(struct nlpcb *nlp) in nl_schedule_taskqueue() 191 struct nlpcb *nlp = sotonlpcb(so); in nl_receive_async() 215 tx_check_locked(struct nlpcb *nlp) in tx_check_locked() 254 nl_process_received_one(struct nlpcb *nlp) in nl_process_received_one() 309 nl_process_received(struct nlpcb *nlp) in nl_process_received() 325 nl_init_io(struct nlpcb *nlp) in nl_init_io() 332 nl_free_io(struct nlpcb *nlp) in nl_free_io() 342 nl_on_transmit(struct nlpcb *nlp) in nl_on_transmit() 368 struct nlpcb *nlp = (struct nlpcb *)_arg; in nl_taskqueue_handler() 376 queue_push_tx(struct nlpcb *nlp, struct mbuf *m) in queue_push_tx() [all …]
|
| 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() 123 nlmsg_get_unicast_writer_stub(struct nl_writer *nw, int size, struct nlpcb *nlp) in nlmsg_get_unicast_writer_stub() 194 static struct nlpcb * 230 nlmsg_get_unicast_writer(struct nl_writer *nw, int size, struct nlpcb *nlp) in nlmsg_get_unicast_writer() 302 struct nlpcb *
|
| H A D | netlink_linux.h | 35 struct nlpcb; 39 struct nlpcb *nlp); 41 struct nlpcb *nlp);
|
| H A D | netlink_message_writer.h | 82 struct nlpcb; 87 bool _nlmsg_get_unicast_writer(struct nl_writer *nw, int expected_size, struct nlpcb *nlp); 103 nlmsg_get_unicast_writer(struct nl_writer *nw, int expected_size, struct nlpcb *nlp) in nlmsg_get_unicast_writer() 166 bool nlmsg_get_unicast_writer(struct nl_writer *nw, int expected_size, struct nlpcb *nlp);
|
| H A D | netlink_message_writer.c | 229 return (nl_send_one(m, (struct nlpcb *)(nw->arg.ptr), cnt, io_flags)); in nlmsg_write_socket_buf() 333 return (nl_send_one(m, (struct nlpcb *)(nw->arg.ptr), cnt, io_flags)); in nlmsg_write_socket_mbuf() 421 struct nlpcb *nlp = (struct nlpcb *)(nw->arg.ptr); in nlmsg_write_socket_lbuf() 533 _nlmsg_get_unicast_writer(struct nl_writer *nw, int size, struct nlpcb *nlp) in _nlmsg_get_unicast_writer() 718 nlmsg_ack(struct nlpcb *nlp, int error, struct nlmsghdr *hdr, in nlmsg_ack()
|
| H A D | netlink_route.c | 72 struct nlpcb *nlp = npt->nlp; in rtnl_handle_message()
|
| H A D | netlink_generic.c | 60 struct nlpcb *nlp = npt->nlp; in genl_handle_message()
|
| H A D | netlink_message_parser.h | 68 struct nlpcb *nlp; /* Originator socket */
|
| /freebsd-14.2/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, 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 D | iface.c | 64 struct nlpcb *so; 450 rtnl_handle_getlink(struct nlmsghdr *hdr, struct nlpcb *nlp, struct nl_pstate *npt) in rtnl_handle_getlink() 531 rtnl_handle_dellink(struct nlmsghdr *hdr, struct nlpcb *nlp, struct nl_pstate *npt) in rtnl_handle_dellink() 587 struct nlattr_bmask *bm, struct nlpcb *nlp, struct nl_pstate *npt) in create_link() 612 struct nlattr_bmask *bm, struct nlpcb *nlp, struct nl_pstate *npt) in modify_link() 668 rtnl_handle_newlink(struct nlmsghdr *hdr, struct nlpcb *nlp, struct nl_pstate *npt) in rtnl_handle_newlink() 1111 if_t ifp, struct nlpcb *nlp, struct nl_pstate *npt) in handle_newaddr_inet() 1195 if_t ifp, struct nlpcb *nlp, struct nl_pstate *npt) in handle_deladdr_inet() 1216 if_t ifp, struct nlpcb *nlp, struct nl_pstate *npt) in handle_newaddr_inet6() 1279 if_t ifp, struct nlpcb *nlp, struct nl_pstate *npt) in handle_deladdr_inet6() [all …]
|
| H A D | neigh.c | 63 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 D | rt.c | 351 struct nlpcb *nlp, struct nlmsghdr *hdr) in report_operation() 532 struct nlpcb *nlp; 611 handle_rtm_getroute(struct nlpcb *nlp, struct nl_parsed_route *attrs, in handle_rtm_getroute() 665 handle_rtm_dump(struct nlpcb *nlp, uint32_t fibnum, int family, in handle_rtm_dump() 926 rtnl_handle_newroute(struct nlmsghdr *hdr, struct nlpcb *nlp, in rtnl_handle_newroute() 994 rtnl_handle_delroute(struct nlmsghdr *hdr, struct nlpcb *nlp, in rtnl_handle_delroute() 1023 rtnl_handle_getroute(struct nlmsghdr *hdr, struct nlpcb *nlp, struct nl_pstate *npt) in rtnl_handle_getroute()
|
| H A D | nexthop.c | 384 struct nlpcb *so; 881 rtnl_handle_newnhop(struct nlmsghdr *hdr, struct nlpcb *nlp, in rtnl_handle_newnhop() 965 rtnl_handle_delnhop(struct nlmsghdr *hdr, struct nlpcb *nlp, in rtnl_handle_delnhop() 1004 rtnl_handle_getnhop(struct nlmsghdr *hdr, struct nlpcb *nlp, in rtnl_handle_getnhop()
|
| /freebsd-14.2/sys/compat/linux/ |
| H A D | linux_netlink.c | 334 rtnl_newlink_to_linux(struct nlmsghdr *hdr, struct nlpcb *nlp, in rtnl_newlink_to_linux() 369 rtnl_newaddr_to_linux(struct nlmsghdr *hdr, struct nlpcb *nlp, in rtnl_newaddr_to_linux() 391 rtnl_newneigh_to_linux(struct nlmsghdr *hdr, struct nlpcb *nlp, in rtnl_newneigh_to_linux() 412 rtnl_newroute_to_linux(struct nlmsghdr *hdr, struct nlpcb *nlp, in rtnl_newroute_to_linux() 460 rtnl_to_linux(struct nlmsghdr *hdr, struct nlpcb *nlp, struct nl_writer *nw) in rtnl_to_linux() 487 nlmsg_error_to_linux(struct nlmsghdr *hdr, struct nlpcb *nlp, struct nl_writer *nw) in nlmsg_error_to_linux() 521 nlmsg_to_linux(int netlink_family, struct nlmsghdr *hdr, struct nlpcb *nlp, in nlmsg_to_linux() 548 nlmsgs_to_linux(int netlink_family, char *buf, int data_length, struct nlpcb *nlp) in nlmsgs_to_linux() 583 mbufs_to_linux(int netlink_family, struct mbuf *m, struct nlpcb *nlp) in mbufs_to_linux()
|