fix alpine linux brokie
This commit is contained in:
parent
25d852e1b2
commit
a5c8188362
1 changed files with 2 additions and 2 deletions
|
@ -9,12 +9,12 @@
|
||||||
|
|
||||||
void create_ip_addr(uint8_t* domain, IpAddr* addr) {
|
void create_ip_addr(uint8_t* domain, IpAddr* addr) {
|
||||||
addr->type = V4;
|
addr->type = V4;
|
||||||
memcpy(&addr->data.v4.s_addr, domain, 4);
|
memcpy(&addr->data.v4, domain, 4);
|
||||||
}
|
}
|
||||||
|
|
||||||
void create_ip_addr6(uint8_t* domain, IpAddr* addr) {
|
void create_ip_addr6(uint8_t* domain, IpAddr* addr) {
|
||||||
addr->type = V6;
|
addr->type = V6;
|
||||||
memcpy(&addr->data.v6.__in6_u.__u6_addr8, domain, 16);
|
memcpy(&addr->data.v6, domain, 16);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ip_addr_any(IpAddr* addr) {
|
void ip_addr_any(IpAddr* addr) {
|
||||||
|
|
Loading…
Reference in a new issue