Symbol: wg_peer
sbin/ifconfig/ifconfig.c
5771
struct wg_peer_io *wg_peer = NULL;
sbin/ifconfig/ifconfig.c
5793
peer_offset = (void *)wg_peer - (void *)wg_interface;
sbin/ifconfig/ifconfig.c
5804
if (wg_peer != NULL)
sbin/ifconfig/ifconfig.c
5805
wg_peer = (void *)wg_interface + peer_offset;
sbin/ifconfig/ifconfig.c
5815
growwgdata(sizeof(*wg_peer));
sbin/ifconfig/ifconfig.c
5817
wg_peer = (struct wg_peer_io *)wg_aip;
sbin/ifconfig/ifconfig.c
5819
wg_peer = &wg_interface->i_peers[0];
sbin/ifconfig/ifconfig.c
5820
wg_aip = &wg_peer->p_aips[0];
sbin/ifconfig/ifconfig.c
5821
wg_peer->p_flags |= WG_PEER_HAS_PUBLIC;
sbin/ifconfig/ifconfig.c
5822
WG_LOAD_KEY(wg_peer->p_public, peerkey_b64, "wgpeer");
sbin/ifconfig/ifconfig.c
5829
if (wg_peer == NULL)
sbin/ifconfig/ifconfig.c
5831
wg_peer->p_flags |= WG_PEER_SET_DESCRIPTION;
sbin/ifconfig/ifconfig.c
5832
strlcpy(wg_peer->p_description, descr, IFDESCRSIZE);
sbin/ifconfig/ifconfig.c
5839
if (wg_peer == NULL)
sbin/ifconfig/ifconfig.c
5856
wg_peer->p_flags |= WG_PEER_REPLACE_AIPS;
sbin/ifconfig/ifconfig.c
5857
wg_peer->p_aips_count++;
sbin/ifconfig/ifconfig.c
5868
if (wg_peer == NULL)
sbin/ifconfig/ifconfig.c
5874
wg_peer->p_flags |= WG_PEER_HAS_ENDPOINT;
sbin/ifconfig/ifconfig.c
5875
memcpy(&wg_peer->p_sa, ai->ai_addr, ai->ai_addrlen);
sbin/ifconfig/ifconfig.c
5882
if (wg_peer == NULL)
sbin/ifconfig/ifconfig.c
5884
wg_peer->p_flags |= WG_PEER_HAS_PSK;
sbin/ifconfig/ifconfig.c
5885
WG_LOAD_KEY(wg_peer->p_psk, psk_b64, "wgpsk");
sbin/ifconfig/ifconfig.c
5892
if (wg_peer == NULL)
sbin/ifconfig/ifconfig.c
5895
wg_peer->p_flags |= WG_PEER_HAS_PKA;
sbin/ifconfig/ifconfig.c
5896
wg_peer->p_pka = strtonum(pka, 0, 43200, &errmsg);
sbin/ifconfig/ifconfig.c
5935
wg_peer->p_flags |= WG_PEER_REMOVE;
sbin/ifconfig/ifconfig.c
5941
if (wg_peer == NULL)
sbin/ifconfig/ifconfig.c
5943
wg_peer->p_flags |= WG_PEER_SET_DESCRIPTION;
sbin/ifconfig/ifconfig.c
5944
strlcpy(wg_peer->p_description, "", IFDESCRSIZE);
sbin/ifconfig/ifconfig.c
5950
if (wg_peer == NULL)
sbin/ifconfig/ifconfig.c
5952
wg_peer->p_flags |= WG_PEER_HAS_PSK;
sbin/ifconfig/ifconfig.c
5953
bzero(wg_peer->p_psk, WG_KEY_LEN);
sbin/ifconfig/ifconfig.c
6011
wg_peer = &wg_interface->i_peers[0];
sbin/ifconfig/ifconfig.c
6013
b64_ntop(wg_peer->p_public, WG_KEY_LEN,
sbin/ifconfig/ifconfig.c
6017
if (strlen(wg_peer->p_description))
sbin/ifconfig/ifconfig.c
6019
wg_peer->p_description);
sbin/ifconfig/ifconfig.c
6021
if (wg_peer->p_flags & WG_PEER_HAS_PSK)
sbin/ifconfig/ifconfig.c
6024
if (wg_peer->p_flags & WG_PEER_HAS_PKA && wg_peer->p_pka)
sbin/ifconfig/ifconfig.c
6025
printf("\t\twgpka %u (sec)\n", wg_peer->p_pka);
sbin/ifconfig/ifconfig.c
6027
if (wg_peer->p_flags & WG_PEER_HAS_ENDPOINT) {
sbin/ifconfig/ifconfig.c
6028
if (getnameinfo(&wg_peer->p_sa, wg_peer->p_sa.sa_len,
sbin/ifconfig/ifconfig.c
6037
wg_peer->p_txbytes, wg_peer->p_rxbytes);
sbin/ifconfig/ifconfig.c
6039
if (wg_peer->p_last_handshake.tv_sec != 0) {
sbin/ifconfig/ifconfig.c
6042
now.tv_sec - wg_peer->p_last_handshake.tv_sec);
sbin/ifconfig/ifconfig.c
6046
wg_aip = &wg_peer->p_aips[0];
sbin/ifconfig/ifconfig.c
6047
for (j = 0; j < wg_peer->p_aips_count; j++) {
sbin/ifconfig/ifconfig.c
6053
wg_peer = (struct wg_peer_io *)wg_aip;
sys/net/if_wg.c
1158
struct wg_peer *peer = CONTAINER_OF(t, struct wg_peer, p_timers);
sys/net/if_wg.c
1169
struct wg_peer *peer = CONTAINER_OF(t, struct wg_peer, p_timers);
sys/net/if_wg.c
1206
struct wg_peer *peer = CONTAINER_OF(t, struct wg_peer, p_timers);
sys/net/if_wg.c
1219
struct wg_peer *peer = CONTAINER_OF(t, struct wg_peer, p_timers);
sys/net/if_wg.c
1236
struct wg_peer *peer = CONTAINER_OF(t, struct wg_peer, p_timers);
sys/net/if_wg.c
1250
struct wg_peer *peer = CONTAINER_OF(t, struct wg_peer, p_timers);
sys/net/if_wg.c
1257
wg_peer_send_buf(struct wg_peer *peer, uint8_t *buf, size_t len)
sys/net/if_wg.c
1271
struct wg_peer *peer = _peer;
sys/net/if_wg.c
1294
wg_send_response(struct wg_peer *peer)
sys/net/if_wg.c
1338
struct wg_peer *peer = _peer;
sys/net/if_wg.c
1372
struct wg_peer *peer = _peer;
sys/net/if_wg.c
1383
struct wg_peer *peer;
sys/net/if_wg.c
1438
peer = CONTAINER_OF(remote, struct wg_peer, p_remote);
sys/net/if_wg.c
1484
peer = CONTAINER_OF(remote, struct wg_peer, p_remote);
sys/net/if_wg.c
150
struct wg_peer *t_peer;
sys/net/if_wg.c
1518
peer = CONTAINER_OF(remote, struct wg_peer, p_remote);
sys/net/if_wg.c
1581
struct wg_peer *peer;
sys/net/if_wg.c
1670
struct wg_peer *peer, *allowed_peer;
sys/net/if_wg.c
1810
struct wg_peer *peer = _peer;
sys/net/if_wg.c
1849
struct wg_peer *peer = _peer;
sys/net/if_wg.c
185
struct wg_peer *a_peer;
sys/net/if_wg.c
1897
wg_queue_in(struct wg_softc *sc, struct wg_peer *peer, struct mbuf *m)
sys/net/if_wg.c
1929
wg_queue_out(struct wg_softc *sc, struct wg_peer *peer)
sys/net/if_wg.c
2002
struct wg_peer *peer;
sys/net/if_wg.c
2012
struct wg_peer *peer;
sys/net/if_wg.c
202
LIST_ENTRY(wg_peer) p_pubkey_entry;
sys/net/if_wg.c
2021
peer = CONTAINER_OF(remote, struct wg_peer, p_remote);
sys/net/if_wg.c
203
TAILQ_ENTRY(wg_peer) p_seq_entry;
sys/net/if_wg.c
2067
struct wg_peer *peer = NULL;
sys/net/if_wg.c
2079
peer = CONTAINER_OF(iter->i_value, struct wg_peer, p_remote);
sys/net/if_wg.c
2153
t->t_peer = CONTAINER_OF(remote, struct wg_peer,
sys/net/if_wg.c
2179
struct wg_peer *peer;
sys/net/if_wg.c
2182
SLIST_HEAD(,wg_peer) start_list;
sys/net/if_wg.c
2216
struct wg_peer *peer;
sys/net/if_wg.c
2303
struct wg_peer *peer, *tpeer;
sys/net/if_wg.c
233
SLIST_ENTRY(wg_peer) p_start_list;
sys/net/if_wg.c
2466
struct wg_peer *peer;
sys/net/if_wg.c
2610
struct wg_peer *peer;
sys/net/if_wg.c
264
LIST_HEAD(,wg_peer) *sc_peer;
sys/net/if_wg.c
2649
struct wg_peer *peer;
sys/net/if_wg.c
265
TAILQ_HEAD(,wg_peer) sc_peer_seq;
sys/net/if_wg.c
281
struct wg_peer *
sys/net/if_wg.c
2810
struct wg_peer *peer, *tpeer;
sys/net/if_wg.c
283
struct wg_peer *
sys/net/if_wg.c
285
void wg_peer_destroy(struct wg_peer *);
sys/net/if_wg.c
2855
pool_init(&wg_peer_pool, sizeof(struct wg_peer), 0,
sys/net/if_wg.c
286
void wg_peer_set_endpoint_from_tag(struct wg_peer *, struct wg_tag *);
sys/net/if_wg.c
287
void wg_peer_set_sockaddr(struct wg_peer *, struct sockaddr *);
sys/net/if_wg.c
288
int wg_peer_get_sockaddr(struct wg_peer *, struct sockaddr *);
sys/net/if_wg.c
289
void wg_peer_clear_src(struct wg_peer *);
sys/net/if_wg.c
290
void wg_peer_get_endpoint(struct wg_peer *, struct wg_endpoint *);
sys/net/if_wg.c
291
void wg_peer_counters_add(struct wg_peer *, uint64_t, uint64_t);
sys/net/if_wg.c
293
int wg_aip_add(struct wg_softc *, struct wg_peer *, struct wg_aip_io *);
sys/net/if_wg.c
294
struct wg_peer *
sys/net/if_wg.c
296
int wg_aip_remove(struct wg_softc *, struct wg_peer *,
sys/net/if_wg.c
338
void wg_peer_send_buf(struct wg_peer *, uint8_t *, size_t);
sys/net/if_wg.c
340
void wg_send_response(struct wg_peer *);
sys/net/if_wg.c
355
int wg_queue_in(struct wg_softc *, struct wg_peer *, struct mbuf *);
sys/net/if_wg.c
356
void wg_queue_out(struct wg_softc *, struct wg_peer *);
sys/net/if_wg.c
398
struct wg_peer *
sys/net/if_wg.c
401
struct wg_peer *peer;
sys/net/if_wg.c
465
struct wg_peer *
sys/net/if_wg.c
469
struct wg_peer *peer;
sys/net/if_wg.c
488
wg_peer_destroy(struct wg_peer *peer)
sys/net/if_wg.c
549
wg_peer_set_endpoint_from_tag(struct wg_peer *peer, struct wg_tag *t)
sys/net/if_wg.c
561
wg_peer_set_sockaddr(struct wg_peer *peer, struct sockaddr *remote)
sys/net/if_wg.c
571
wg_peer_get_sockaddr(struct wg_peer *peer, struct sockaddr *remote)
sys/net/if_wg.c
586
wg_peer_clear_src(struct wg_peer *peer)
sys/net/if_wg.c
594
wg_peer_get_endpoint(struct wg_peer *peer, struct wg_endpoint *endpoint)
sys/net/if_wg.c
602
wg_peer_counters_add(struct wg_peer *peer, uint64_t tx, uint64_t rx)
sys/net/if_wg.c
611
wg_aip_add(struct wg_softc *sc, struct wg_peer *peer, struct wg_aip_io *d)
sys/net/if_wg.c
657
struct wg_peer *
sys/net/if_wg.c
670
wg_aip_remove(struct wg_softc *sc, struct wg_peer *peer, struct wg_aip_io *d)