mirror of
https://github.com/amnezia-vpn/amneziawg-tools.git
synced 2025-06-05 04:23:43 +02:00
minor modifications
This commit is contained in:
parent
f632775430
commit
6747b3ebd9
2 changed files with 12 additions and 11 deletions
|
@ -94,6 +94,9 @@ struct wgdevice {
|
||||||
|
|
||||||
uint32_t fwmark;
|
uint32_t fwmark;
|
||||||
uint16_t listen_port;
|
uint16_t listen_port;
|
||||||
|
|
||||||
|
struct wgpeer *first_peer, *last_peer;
|
||||||
|
|
||||||
uint16_t junk_packet_count;
|
uint16_t junk_packet_count;
|
||||||
uint16_t junk_packet_min_size;
|
uint16_t junk_packet_min_size;
|
||||||
uint16_t junk_packet_max_size;
|
uint16_t junk_packet_max_size;
|
||||||
|
@ -103,8 +106,6 @@ struct wgdevice {
|
||||||
uint32_t response_packet_magic_header;
|
uint32_t response_packet_magic_header;
|
||||||
uint32_t underload_packet_magic_header;
|
uint32_t underload_packet_magic_header;
|
||||||
uint32_t transport_packet_magic_header;
|
uint32_t transport_packet_magic_header;
|
||||||
|
|
||||||
struct wgpeer *first_peer, *last_peer;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#define for_each_wgpeer(__dev, __peer) for ((__peer) = (__dev)->first_peer; (__peer); (__peer) = (__peer)->next_peer)
|
#define for_each_wgpeer(__dev, __peer) for ((__peer) = (__dev)->first_peer; (__peer); (__peer) = (__peer)->next_peer)
|
||||||
|
|
|
@ -47,23 +47,23 @@ int showconf_main(int argc, const char *argv[])
|
||||||
printf("PrivateKey = %s\n", base64);
|
printf("PrivateKey = %s\n", base64);
|
||||||
}
|
}
|
||||||
if (device->flags & WGDEVICE_HAS_JC)
|
if (device->flags & WGDEVICE_HAS_JC)
|
||||||
printf("Jc = %u", device->junk_packet_count);
|
printf("Jc = %u\n", device->junk_packet_count);
|
||||||
if (device->flags & WGDEVICE_HAS_JMIN)
|
if (device->flags & WGDEVICE_HAS_JMIN)
|
||||||
printf("Jmin = %u", device->junk_packet_min_size);
|
printf("Jmin = %u\n", device->junk_packet_min_size);
|
||||||
if (device->flags & WGDEVICE_HAS_JMAX)
|
if (device->flags & WGDEVICE_HAS_JMAX)
|
||||||
printf("Jmax = %u", device->junk_packet_max_size);
|
printf("Jmax = %u\n", device->junk_packet_max_size);
|
||||||
if (device->flags & WGDEVICE_HAS_S1)
|
if (device->flags & WGDEVICE_HAS_S1)
|
||||||
printf("S1 = %u", device->init_packet_junk_size);
|
printf("S1 = %u\n", device->init_packet_junk_size);
|
||||||
if (device->flags & WGDEVICE_HAS_S2)
|
if (device->flags & WGDEVICE_HAS_S2)
|
||||||
printf("S2 = %u", device->response_packet_junk_size);
|
printf("S2 = %u\n", device->response_packet_junk_size);
|
||||||
if (device->flags & WGDEVICE_HAS_H1)
|
if (device->flags & WGDEVICE_HAS_H1)
|
||||||
printf("H1 = %u", device->init_packet_magic_header);
|
printf("H1 = %u\n", device->init_packet_magic_header);
|
||||||
if (device->flags & WGDEVICE_HAS_H2)
|
if (device->flags & WGDEVICE_HAS_H2)
|
||||||
printf("H2 = %u", device->response_packet_magic_header);
|
printf("H2 = %u\n", device->response_packet_magic_header);
|
||||||
if (device->flags & WGDEVICE_HAS_H3)
|
if (device->flags & WGDEVICE_HAS_H3)
|
||||||
printf("H3 = %u", device->underload_packet_magic_header);
|
printf("H3 = %u\n", device->underload_packet_magic_header);
|
||||||
if (device->flags & WGDEVICE_HAS_H4)
|
if (device->flags & WGDEVICE_HAS_H4)
|
||||||
printf("H4 = %u", device->transport_packet_magic_header);
|
printf("H4 = %u\n", device->transport_packet_magic_header);
|
||||||
|
|
||||||
printf("\n");
|
printf("\n");
|
||||||
for_each_wgpeer(device, peer) {
|
for_each_wgpeer(device, peer) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue