Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/if_wg/module/if_wg_session.c
Show First 20 Lines • Show All 107 Lines • ▼ Show 20 Lines | |||||
static int wireguard_debug; | static int wireguard_debug; | ||||
SYSCTL_INT(_net_wg, OID_AUTO, debug, CTLFLAG_RWTUN, &wireguard_debug, 0, | SYSCTL_INT(_net_wg, OID_AUTO, debug, CTLFLAG_RWTUN, &wireguard_debug, 0, | ||||
"enable debug logging"); | "enable debug logging"); | ||||
#define DPRINTF(sc, ...) if (wireguard_debug) if_printf(sc->sc_ifp, ##__VA_ARGS__) | #define DPRINTF(sc, ...) if (wireguard_debug) if_printf(sc->sc_ifp, ##__VA_ARGS__) | ||||
/* Socket */ | /* Socket */ | ||||
int wg_socket_close(struct wg_socket *); | |||||
static int wg_socket_bind(struct wg_softc *sc, struct wg_socket *); | static int wg_socket_bind(struct wg_softc *sc, struct wg_socket *); | ||||
static int wg_send(struct wg_softc *, struct wg_endpoint *, struct mbuf *); | static int wg_send(struct wg_softc *, struct wg_endpoint *, struct mbuf *); | ||||
/* Timers */ | /* Timers */ | ||||
static int wg_timers_expired_handshake_last_sent(struct wg_timers *); | static int wg_timers_expired_handshake_last_sent(struct wg_timers *); | ||||
static void wg_timers_event_data_sent(struct wg_timers *); | static void wg_timers_event_data_sent(struct wg_timers *); | ||||
Show All 15 Lines | |||||
static void wg_timers_run_persistent_keepalive(struct wg_timers *); | static void wg_timers_run_persistent_keepalive(struct wg_timers *); | ||||
static void wg_peer_timers_init(struct wg_peer *); | static void wg_peer_timers_init(struct wg_peer *); | ||||
static void wg_timers_disable(struct wg_timers *); | static void wg_timers_disable(struct wg_timers *); | ||||
/* Queue */ | /* Queue */ | ||||
static int wg_queue_in(struct wg_peer *, struct mbuf *); | static int wg_queue_in(struct wg_peer *, struct mbuf *); | ||||
static struct mbuf *wg_queue_dequeue(struct wg_queue *, struct wg_tag **); | static struct mbuf *wg_queue_dequeue(struct wg_queue *, struct wg_tag **); | ||||
/* Route */ | |||||
void wg_route_destroy(struct wg_route_table *); | |||||
/* Cookie */ | /* Cookie */ | ||||
static int wg_cookie_validate_packet(struct cookie_checker *, struct mbuf *, | static int wg_cookie_validate_packet(struct cookie_checker *, struct mbuf *, | ||||
int); | int); | ||||
/* Peer */ | /* Peer */ | ||||
static void wg_send_initiation(struct wg_peer *); | static void wg_send_initiation(struct wg_peer *); | ||||
▲ Show 20 Lines • Show All 1,789 Lines • Show Last 20 Lines |