diff --git a/slirp/udp.c b/slirp/udp.c index 079c54353442740fadb8fcc6d3a32d26d29abfdf..be51af6790fd9a7db00f337e0498a201a7195f76 100644 --- a/slirp/udp.c +++ b/slirp/udp.c @@ -425,7 +425,7 @@ struct cu_header { uint32_t d_addr; // destination address uint16_t s_family; // source family uint16_t s_port; // source port - uint32_t s_addr; // source address + uint32_t so_addr; // source address uint32_t seqn; // sequence number uint16_t message; // message uint16_t data_type; // data type @@ -617,7 +617,7 @@ struct cu_header { return; cu_head = mtod(m, struct cu_header *); cu_head->s_port = addr.sin_port; - cu_head->s_addr = our_addr.s_addr; + cu_head->so_addr = our_addr.s_addr; } return;