diff options
author | Oxore <oxore@protonmail.com> | 2023-12-12 23:36:12 +0300 |
---|---|---|
committer | Oxore <oxore@protonmail.com> | 2023-12-12 23:36:12 +0300 |
commit | 17c01af9dea19ab9e553ef0db775e43f74a752e5 (patch) | |
tree | 39647860089b25a026841a94d0c1b5323139f134 /client.c | |
parent | 0b86520b9ff166cd285d077d3d8192653e7d95e9 (diff) |
Impl printing source address
Diffstat (limited to 'client.c')
-rw-r--r-- | client.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -15,8 +15,8 @@ int main(void) } struct sockaddr_in const serveraddr = { .sin_family = AF_INET, - .sin_port = htons(50037), - .sin_addr.s_addr = htonl(0x7f000001), + .sin_port = htons(50037u), + .sin_addr.s_addr = htonl(INADDR_LOOPBACK), }; for (int i = 0; i < 4; i++) { ssize_t const ret = sendto( |