Symbol: wg_peer
sbin/ifconfig/ifconfig.c
5770
struct wg_peer_io *wg_peer = NULL;
sbin/ifconfig/ifconfig.c
5792
peer_offset = (void *)wg_peer - (void *)wg_interface;
sbin/ifconfig/ifconfig.c
5803
if (wg_peer != NULL)
sbin/ifconfig/ifconfig.c
5804
wg_peer = (void *)wg_interface + peer_offset;
sbin/ifconfig/ifconfig.c
5814
growwgdata(sizeof(*wg_peer));
sbin/ifconfig/ifconfig.c
5816
wg_peer = (struct wg_peer_io *)wg_aip;
sbin/ifconfig/ifconfig.c
5818
wg_peer = &wg_interface->i_peers[0];
sbin/ifconfig/ifconfig.c
5819
wg_aip = &wg_peer->p_aips[0];
sbin/ifconfig/ifconfig.c
5820
wg_peer->p_flags |= WG_PEER_HAS_PUBLIC;
sbin/ifconfig/ifconfig.c
5821
WG_LOAD_KEY(wg_peer->p_public, peerkey_b64, "wgpeer");
sbin/ifconfig/ifconfig.c
5828
if (wg_peer == NULL)
sbin/ifconfig/ifconfig.c
5830
wg_peer->p_flags |= WG_PEER_SET_DESCRIPTION;
sbin/ifconfig/ifconfig.c
5831
strlcpy(wg_peer->p_description, descr, IFDESCRSIZE);
sbin/ifconfig/ifconfig.c
5838
if (wg_peer == NULL)
sbin/ifconfig/ifconfig.c
5855
wg_peer->p_flags |= WG_PEER_REPLACE_AIPS;
sbin/ifconfig/ifconfig.c
5856
wg_peer->p_aips_count++;
sbin/ifconfig/ifconfig.c
5867
if (wg_peer == NULL)
sbin/ifconfig/ifconfig.c
5873
wg_peer->p_flags |= WG_PEER_HAS_ENDPOINT;
sbin/ifconfig/ifconfig.c
5874
memcpy(&wg_peer->p_sa, ai->ai_addr, ai->ai_addrlen);
sbin/ifconfig/ifconfig.c
5881
if (wg_peer == NULL)
sbin/ifconfig/ifconfig.c
5883
wg_peer->p_flags |= WG_PEER_HAS_PSK;
sbin/ifconfig/ifconfig.c
5884
WG_LOAD_KEY(wg_peer->p_psk, psk_b64, "wgpsk");
sbin/ifconfig/ifconfig.c
5891
if (wg_peer == NULL)
sbin/ifconfig/ifconfig.c
5894
wg_peer->p_flags |= WG_PEER_HAS_PKA;
sbin/ifconfig/ifconfig.c
5895
wg_peer->p_pka = strtonum(pka, 0, 43200, &errmsg);
sbin/ifconfig/ifconfig.c
5934
wg_peer->p_flags |= WG_PEER_REMOVE;
sbin/ifconfig/ifconfig.c
5940
if (wg_peer == NULL)
sbin/ifconfig/ifconfig.c
5942
wg_peer->p_flags |= WG_PEER_SET_DESCRIPTION;
sbin/ifconfig/ifconfig.c
5943
strlcpy(wg_peer->p_description, "", IFDESCRSIZE);
sbin/ifconfig/ifconfig.c
5949
if (wg_peer == NULL)
sbin/ifconfig/ifconfig.c
5951
wg_peer->p_flags |= WG_PEER_HAS_PSK;
sbin/ifconfig/ifconfig.c
5952
bzero(wg_peer->p_psk, WG_KEY_LEN);
sbin/ifconfig/ifconfig.c
6010
wg_peer = &wg_interface->i_peers[0];
sbin/ifconfig/ifconfig.c
6012
b64_ntop(wg_peer->p_public, WG_KEY_LEN,
sbin/ifconfig/ifconfig.c
6016
if (strlen(wg_peer->p_description))
sbin/ifconfig/ifconfig.c
6018
wg_peer->p_description);
sbin/ifconfig/ifconfig.c
6020
if (wg_peer->p_flags & WG_PEER_HAS_PSK)
sbin/ifconfig/ifconfig.c
6023
if (wg_peer->p_flags & WG_PEER_HAS_PKA && wg_peer->p_pka)
sbin/ifconfig/ifconfig.c
6024
printf("\t\twgpka %u (sec)\n", wg_peer->p_pka);
sbin/ifconfig/ifconfig.c
6026
if (wg_peer->p_flags & WG_PEER_HAS_ENDPOINT) {
sbin/ifconfig/ifconfig.c
6027
if (getnameinfo(&wg_peer->p_sa, wg_peer->p_sa.sa_len,
sbin/ifconfig/ifconfig.c
6036
wg_peer->p_txbytes, wg_peer->p_rxbytes);
sbin/ifconfig/ifconfig.c
6038
if (wg_peer->p_last_handshake.tv_sec != 0) {
sbin/ifconfig/ifconfig.c
6041
now.tv_sec - wg_peer->p_last_handshake.tv_sec);
sbin/ifconfig/ifconfig.c
6045
wg_aip = &wg_peer->p_aips[0];
sbin/ifconfig/ifconfig.c
6046
for (j = 0; j < wg_peer->p_aips_count; j++) {
sbin/ifconfig/ifconfig.c
6052
wg_peer = (struct wg_peer_io *)wg_aip;
sys/net/if_wg.c
1161
struct wg_peer *peer = CONTAINER_OF(t, struct wg_peer, p_timers);
sys/net/if_wg.c
1172
struct wg_peer *peer = CONTAINER_OF(t, struct wg_peer, p_timers);
sys/net/if_wg.c
1209
struct wg_peer *peer = CONTAINER_OF(t, struct wg_peer, p_timers);
sys/net/if_wg.c
1222
struct wg_peer *peer = CONTAINER_OF(t, struct wg_peer, p_timers);
sys/net/if_wg.c
1239
struct wg_peer *peer = CONTAINER_OF(t, struct wg_peer, p_timers);
sys/net/if_wg.c
1253
struct wg_peer *peer = CONTAINER_OF(t, struct wg_peer, p_timers);
sys/net/if_wg.c
1260
wg_peer_send_buf(struct wg_peer *peer, uint8_t *buf, size_t len)
sys/net/if_wg.c
1274
struct wg_peer *peer = _peer;
sys/net/if_wg.c
1297
wg_send_response(struct wg_peer *peer)
sys/net/if_wg.c
1341
struct wg_peer *peer = _peer;
sys/net/if_wg.c
1375
struct wg_peer *peer = _peer;
sys/net/if_wg.c
1386
struct wg_peer *peer;
sys/net/if_wg.c
1441
peer = CONTAINER_OF(remote, struct wg_peer, p_remote);
sys/net/if_wg.c
1487
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
1521
peer = CONTAINER_OF(remote, struct wg_peer, p_remote);
sys/net/if_wg.c
1584
struct wg_peer *peer;
sys/net/if_wg.c
1673
struct wg_peer *peer, *allowed_peer;
sys/net/if_wg.c
1813
struct wg_peer *peer = _peer;
sys/net/if_wg.c
185
struct wg_peer *a_peer;
sys/net/if_wg.c
1852
struct wg_peer *peer = _peer;
sys/net/if_wg.c
1900
wg_queue_in(struct wg_softc *sc, struct wg_peer *peer, struct mbuf *m)
sys/net/if_wg.c
1932
wg_queue_out(struct wg_softc *sc, struct wg_peer *peer)
sys/net/if_wg.c
2005
struct wg_peer *peer;
sys/net/if_wg.c
2015
struct wg_peer *peer;
sys/net/if_wg.c
202
LIST_ENTRY(wg_peer) p_pubkey_entry;
sys/net/if_wg.c
2024
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
2070
struct wg_peer *peer = NULL;
sys/net/if_wg.c
2082
peer = CONTAINER_OF(iter->i_value, struct wg_peer, p_remote);
sys/net/if_wg.c
2156
t->t_peer = CONTAINER_OF(remote, struct wg_peer,
sys/net/if_wg.c
2182
struct wg_peer *peer;
sys/net/if_wg.c
2185
SLIST_HEAD(,wg_peer) start_list;
sys/net/if_wg.c
2226
struct wg_peer *peer;
sys/net/if_wg.c
2307
struct wg_peer *peer, *tpeer;
sys/net/if_wg.c
233
SLIST_ENTRY(wg_peer) p_start_list;
sys/net/if_wg.c
2470
struct wg_peer *peer;
sys/net/if_wg.c
2614
struct wg_peer *peer;
sys/net/if_wg.c
264
LIST_HEAD(,wg_peer) *sc_peer;
sys/net/if_wg.c
265
TAILQ_HEAD(,wg_peer) sc_peer_seq;
sys/net/if_wg.c
2653
struct wg_peer *peer;
sys/net/if_wg.c
281
struct wg_peer *
sys/net/if_wg.c
2814
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
2859
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
660
struct wg_peer *
sys/net/if_wg.c
673
wg_aip_remove(struct wg_softc *sc, struct wg_peer *peer, struct wg_aip_io *d)