mirror of
https://github.com/amnezia-vpn/amneziawg-tools.git
synced 2025-06-05 04:23:43 +02:00
convert indentation&fix action
This commit is contained in:
parent
be97b12dac
commit
18901ddeaf
2 changed files with 41 additions and 41 deletions
2
.github/workflows/windows-build.yml
vendored
2
.github/workflows/windows-build.yml
vendored
|
@ -27,7 +27,7 @@ jobs:
|
||||||
- name: 'Build WireGuard Tools binary'
|
- name: 'Build WireGuard Tools binary'
|
||||||
working-directory: windows/wireguard-tools-windows
|
working-directory: windows/wireguard-tools-windows
|
||||||
run: |
|
run: |
|
||||||
cmd /c build.bat
|
cmd /c build.cmd
|
||||||
mkdir build
|
mkdir build
|
||||||
move x64 build\x64
|
move x64 build\x64
|
||||||
move x86 build\x86
|
move x86 build\x86
|
||||||
|
|
|
@ -29,12 +29,12 @@
|
||||||
#define a_ipv6 a_addr.addr_ipv6
|
#define a_ipv6 a_addr.addr_ipv6
|
||||||
|
|
||||||
struct wg_aip_io {
|
struct wg_aip_io {
|
||||||
sa_family_t a_af;
|
sa_family_t a_af;
|
||||||
int a_cidr;
|
int a_cidr;
|
||||||
union wg_aip_addr {
|
union wg_aip_addr {
|
||||||
struct in_addr addr_ipv4;
|
struct in_addr addr_ipv4;
|
||||||
struct in6_addr addr_ipv6;
|
struct in6_addr addr_ipv6;
|
||||||
} a_addr;
|
} a_addr;
|
||||||
};
|
};
|
||||||
|
|
||||||
#define WG_PEER_HAS_PUBLIC (1 << 0)
|
#define WG_PEER_HAS_PUBLIC (1 << 0)
|
||||||
|
@ -50,21 +50,21 @@ struct wg_aip_io {
|
||||||
#define p_sin6 p_endpoint.sa_sin6
|
#define p_sin6 p_endpoint.sa_sin6
|
||||||
|
|
||||||
struct wg_peer_io {
|
struct wg_peer_io {
|
||||||
int p_flags;
|
int p_flags;
|
||||||
int p_protocol_version;
|
int p_protocol_version;
|
||||||
uint8_t p_public[WG_KEY_LEN];
|
uint8_t p_public[WG_KEY_LEN];
|
||||||
uint8_t p_psk[WG_KEY_LEN];
|
uint8_t p_psk[WG_KEY_LEN];
|
||||||
uint16_t p_pka;
|
uint16_t p_pka;
|
||||||
union wg_peer_endpoint {
|
union wg_peer_endpoint {
|
||||||
struct sockaddr sa_sa;
|
struct sockaddr sa_sa;
|
||||||
struct sockaddr_in sa_sin;
|
struct sockaddr_in sa_sin;
|
||||||
struct sockaddr_in6 sa_sin6;
|
struct sockaddr_in6 sa_sin6;
|
||||||
} p_endpoint;
|
} p_endpoint;
|
||||||
uint64_t p_txbytes;
|
uint64_t p_txbytes;
|
||||||
uint64_t p_rxbytes;
|
uint64_t p_rxbytes;
|
||||||
struct timespec p_last_handshake; /* nanotime */
|
struct timespec p_last_handshake; /* nanotime */
|
||||||
size_t p_aips_count;
|
size_t p_aips_count;
|
||||||
struct wg_aip_io p_aips[];
|
struct wg_aip_io p_aips[];
|
||||||
};
|
};
|
||||||
|
|
||||||
#define WG_INTERFACE_HAS_PUBLIC (1 << 0)
|
#define WG_INTERFACE_HAS_PUBLIC (1 << 0)
|
||||||
|
@ -83,29 +83,29 @@ struct wg_peer_io {
|
||||||
#define WG_INTERFACE_DEVICE_HAS_H4 (1 << 13)
|
#define WG_INTERFACE_DEVICE_HAS_H4 (1 << 13)
|
||||||
|
|
||||||
struct wg_interface_io {
|
struct wg_interface_io {
|
||||||
uint16_t i_flags;
|
uint16_t i_flags;
|
||||||
in_port_t i_port;
|
in_port_t i_port;
|
||||||
int i_rtable;
|
int i_rtable;
|
||||||
uint8_t i_public[WG_KEY_LEN];
|
uint8_t i_public[WG_KEY_LEN];
|
||||||
uint8_t i_private[WG_KEY_LEN];
|
uint8_t i_private[WG_KEY_LEN];
|
||||||
size_t i_peers_count;
|
size_t i_peers_count;
|
||||||
struct wg_peer_io i_peers[];
|
struct wg_peer_io i_peers[];
|
||||||
|
|
||||||
uint16_t i_junk_packet_count;
|
uint16_t i_junk_packet_count;
|
||||||
uint16_t i_junk_packet_min_size;
|
uint16_t i_junk_packet_min_size;
|
||||||
uint16_t i_junk_packet_max_size;
|
uint16_t i_junk_packet_max_size;
|
||||||
uint16_t i_init_packet_junk_size;
|
uint16_t i_init_packet_junk_size;
|
||||||
uint16_t i_response_packet_junk_size;
|
uint16_t i_response_packet_junk_size;
|
||||||
uint32_t i_init_packet_magic_header;
|
uint32_t i_init_packet_magic_header;
|
||||||
uint32_t i_response_packet_magic_header;
|
uint32_t i_response_packet_magic_header;
|
||||||
uint32_t i_underload_packet_magic_header;
|
uint32_t i_underload_packet_magic_header;
|
||||||
uint32_t i_transport_packet_magic_header;
|
uint32_t i_transport_packet_magic_header;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct wg_data_io {
|
struct wg_data_io {
|
||||||
char wgd_name[IFNAMSIZ];
|
char wgd_name[IFNAMSIZ];
|
||||||
size_t wgd_size; /* total size of the memory pointed to by wgd_interface */
|
size_t wgd_size; /* total size of the memory pointed to by wgd_interface */
|
||||||
struct wg_interface_io *wgd_interface;
|
struct wg_interface_io *wgd_interface;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /* __IF_WG_H__ */
|
#endif /* __IF_WG_H__ */
|
||||||
|
|
Loading…
Add table
Reference in a new issue