Lines Matching refs:wg_packet
150 struct wg_packet { struct
151 STAILQ_ENTRY(wg_packet) p_serial;
152 STAILQ_ENTRY(wg_packet) p_parallel;
166 STAILQ_HEAD(wg_packet_list, wg_packet); argument
335 static void wg_handshake(struct wg_softc *, struct wg_packet *);
336 static void wg_encrypt(struct wg_softc *, struct wg_packet *);
337 static void wg_decrypt(struct wg_softc *, struct wg_packet *);
345 static struct wg_packet *wg_packet_alloc(struct mbuf *);
346 static void wg_packet_free(struct wg_packet *);
350 static int wg_queue_enqueue_handshake(struct wg_queue *, struct wg_packet *);
351 static struct wg_packet *wg_queue_dequeue_handshake(struct wg_queue *);
352 static void wg_queue_push_staged(struct wg_queue *, struct wg_packet *);
356 static int wg_queue_both(struct wg_queue *, struct wg_queue *, struct wg_packet *);
357 static struct wg_packet *wg_queue_dequeue_serial(struct wg_queue *);
358 static struct wg_packet *wg_queue_dequeue_parallel(struct wg_queue *);
1346 struct wg_packet *pkt; in wg_send_keepalive()
1364 wg_handshake(struct wg_softc *sc, struct wg_packet *pkt) in wg_handshake()
1500 struct wg_packet *pkt; in wg_softc_handshake_receive()
1548 calculate_padding(struct wg_packet *pkt) in calculate_padding()
1569 wg_encrypt(struct wg_softc *sc, struct wg_packet *pkt) in wg_encrypt()
1612 wg_decrypt(struct wg_softc *sc, struct wg_packet *pkt) in wg_decrypt()
1686 struct wg_packet *pkt; in wg_softc_decrypt()
1695 struct wg_packet *pkt; in wg_softc_encrypt()
1727 struct wg_packet *pkt; in wg_deliver_out()
1796 struct wg_packet *pkt; in wg_deliver_in()
1861 static struct wg_packet *
1864 struct wg_packet *pkt; in wg_packet_alloc()
1873 wg_packet_free(struct wg_packet *pkt) in wg_packet_free()
1904 wg_queue_enqueue_handshake(struct wg_queue *hs, struct wg_packet *pkt) in wg_queue_enqueue_handshake()
1920 static struct wg_packet *
1923 struct wg_packet *pkt; in wg_queue_dequeue_handshake()
1934 wg_queue_push_staged(struct wg_queue *staged, struct wg_packet *pkt) in wg_queue_push_staged()
1936 struct wg_packet *old = NULL; in wg_queue_push_staged()
1955 struct wg_packet *pkt, *tpkt; in wg_queue_enlist_staged()
1974 struct wg_packet *pkt, *tpkt; in wg_queue_purge()
1981 wg_queue_both(struct wg_queue *parallel, struct wg_queue *serial, struct wg_packet *pkt) in wg_queue_both()
2010 static struct wg_packet *
2013 struct wg_packet *pkt = NULL; in wg_queue_dequeue_serial()
2024 static struct wg_packet *
2027 struct wg_packet *pkt = NULL; in wg_queue_dequeue_parallel()
2050 struct wg_packet *pkt; in wg_input()
2143 struct wg_packet *pkt, *tpkt; in wg_peer_send_staged()
2175 xmit_err(if_t ifp, struct mbuf *m, struct wg_packet *pkt, sa_family_t af) in xmit_err()
2205 struct wg_packet *pkt = NULL; in wg_xmit()
3241 wg_packet_zone = uma_zcreate("wg packet", sizeof(struct wg_packet), in wg_module_init()