Lines Matching defs:wg_softc

134  * - struct wg_softc is an instance of wg interfaces
626 struct wg_softc;
628 struct wg_softc *wgp_sc;
690 struct wg_softc {
692 LIST_ENTRY(wg_softc) wg_list;
757 static void wg_send_cookie_msg(struct wg_softc *, struct wg_peer *,
760 static void wg_send_handshake_msg_resp(struct wg_softc *, struct wg_peer *,
765 wg_pick_peer_by_sa(struct wg_softc *, const struct sockaddr *,
768 wg_lookup_peer_by_pubkey(struct wg_softc *,
772 wg_lookup_session_by_index(struct wg_softc *,
780 static bool wg_is_underload(struct wg_softc *, struct wg_peer *, int);
794 static int wg_bind_port(struct wg_softc *, const uint16_t);
813 int (*bind_port)(struct wg_softc *, const uint16_t);
824 static bool wg_user_mode(struct wg_softc *);
825 static int wg_ioctl_linkstr(struct wg_softc *, struct ifdrv *);
830 static int wg_bind_port_user(struct wg_softc *, const uint16_t);
857 wg_rnh(struct wg_softc *wg, const int family)
1321 wg_destroy_session(struct wg_softc *wg, struct wg_session *wgs)
1365 wg_get_session_index(struct wg_softc *wg, struct wg_session *wgs)
1400 wg_put_session_index(struct wg_softc *wg, struct wg_session *wgs)
1435 wg_fill_msg_init(struct wg_softc *wg, struct wg_peer *wgp,
1571 wg_initiator_priority(struct wg_softc *wg, struct wg_peer *wgp)
1593 wg_handle_msg_init(struct wg_softc *wg, const struct wg_msg_init *wgmi,
1856 wg_get_so_by_af(struct wg_softc *wg, const int af)
1923 wg_send_handshake_msg_init(struct wg_softc *wg, struct wg_peer *wgp)
2006 wg_fill_msg_resp(struct wg_softc *wg, struct wg_peer *wgp,
2111 wg_swap_sessions(struct wg_softc *wg, struct wg_peer *wgp)
2198 wg_handle_msg_resp(struct wg_softc *wg, const struct wg_msg_resp *wgmr,
2389 wg_send_handshake_msg_resp(struct wg_softc *wg, struct wg_peer *wgp,
2420 wg_lookup_peer_by_pubkey(struct wg_softc *wg,
2435 wg_fill_msg_cookie(struct wg_softc *wg, struct wg_peer *wgp,
2500 wg_send_cookie_msg(struct wg_softc *wg, struct wg_peer *wgp,
2529 wg_is_underload(struct wg_softc *wg, struct wg_peer *wgp, int msgtype)
2618 wg_lookup_session_by_index(struct wg_softc *wg, const uint32_t index,
2763 wg_validate_route(struct wg_softc *wg, struct wg_peer *wgp_expected,
2893 wg_handle_msg_data(struct wg_softc *wg, struct mbuf *m,
3151 wg_handle_msg_cookie(struct wg_softc *wg, const struct wg_msg_cookie *wgmc)
3214 wg_validate_msg_header(struct wg_softc *wg, struct mbuf *m)
3274 wg_handle_packet(struct wg_softc *wg, struct mbuf *m,
3309 wg_receive_packets(struct wg_softc *wg, const int af)
3354 wg_task_send_init_message(struct wg_softc *wg, struct wg_peer *wgp)
3388 wg_task_retry_handshake(struct wg_softc *wg, struct wg_peer *wgp)
3428 wg_task_establish_session(struct wg_softc *wg, struct wg_peer *wgp)
3470 wg_task_endpoint_changed(struct wg_softc *wg, struct wg_peer *wgp)
3490 wg_task_send_keepalive_message(struct wg_softc *wg, struct wg_peer *wgp)
3506 wg_task_destroy_prev_session(struct wg_softc *wg, struct wg_peer *wgp)
3568 struct wg_softc *wg = wgp->wgp_sc;
3599 struct wg_softc *wg = container_of(job, struct wg_softc, wg_job);
3619 wg_bind_port(struct wg_softc *wg, const uint16_t port)
3659 struct wg_softc *wg = cookie;
3694 struct wg_softc *wg = arg;
3750 wg_socreate(struct wg_softc *wg, int af, struct socket **sop)
3881 wg_alloc_peer(struct wg_softc *wg)
3939 struct wg_softc *wg = wgp->wgp_sc;
4010 wg_destroy_all_peers(struct wg_softc *wg)
4052 wg_destroy_peer_name(struct wg_softc *wg, const char *name)
4089 wg_if_attach(struct wg_softc *wg)
4121 wg_if_detach(struct wg_softc *wg)
4132 struct wg_softc *wg;
4227 struct wg_softc *wg = container_of(ifp, struct wg_softc, wg_if);
4277 wg_pick_peer_by_sa(struct wg_softc *wg, const struct sockaddr *sa,
4313 wg_fill_msg_data(struct wg_softc *wg, struct wg_peer *wgp,
4330 struct wg_softc *wg = ifp->if_softc;
4468 struct wg_softc *wg = wgp->wgp_sc;
4636 wg_rtable_add_route(struct wg_softc *wg, struct wg_allowedip *wga)
4656 wg_handle_prop_peer(struct wg_softc *wg, prop_dictionary_t peer,
4859 wg_ioctl_set_private_key(struct wg_softc *wg, struct ifdrv *ifd)
4897 wg_ioctl_set_listen_port(struct wg_softc *wg, struct ifdrv *ifd)
4922 wg_ioctl_add_peer(struct wg_softc *wg, struct ifdrv *ifd)
4972 wg_ioctl_delete_peer(struct wg_softc *wg, struct ifdrv *ifd)
4999 wg_is_authorized(struct wg_softc *wg, u_long cmd)
5010 wg_ioctl_get(struct wg_softc *wg, struct ifdrv *ifd)
5185 struct wg_softc *wg = ifp->if_softc;
5416 wg_user_mode(struct wg_softc *wg)
5423 wg_ioctl_linkstr(struct wg_softc *wg, struct ifdrv *ifd)
5466 struct wg_softc *wg = wgp->wgp_sc;
5509 struct wg_softc *wg = ifp->if_softc;
5558 wg_bind_port_user(struct wg_softc *wg, const uint16_t port)
5578 rumpkern_wg_recv_user(struct wg_softc *wg, struct iovec *iov, size_t iovlen)
5607 rumpkern_wg_recv_peer(struct wg_softc *wg, struct iovec *iov, size_t iovlen)