commit - 9619e975dc8d52d7b27a8fd99796d8cef68e78df
commit + e19f80400423f0275c9dd785179aa06a3efabab0
blob - 821e58a3ea05345ba5395aa2a1c0479a70a16978
blob + d7d5433a5cc1129adfe0e4b5d94a8b24cc657002
--- gotwebd/gotwebd.h
+++ gotwebd/gotwebd.h
TAILQ_ENTRY(address) entry;
struct sockaddr_storage ss;
int ipproto;
- int prefixlen;
in_port_t port;
char ifname[IFNAMSIZ];
};
blob - 2ce12171af2de27dad4d389dbbf8f9ea81cdb1ba
blob + 0b684e23a4716d7b3d3a5e5d5a5280ba537ccc82
--- gotwebd/parse.y
+++ gotwebd/parse.y
fatal(__func__);
sain = (struct sockaddr_in *)&h->ss;
got_sockaddr_inet_init(sain, &ina);
- if (sain->sin_addr.s_addr == INADDR_ANY)
- h->prefixlen = 0; /* 0.0.0.0 address */
- else
- h->prefixlen = -1; /* host address */
return (h);
}
ra = (struct sockaddr_in6 *)res->ai_addr;
got_sockaddr_inet6_init(sa_in6, &ra->sin6_addr,
ra->sin6_scope_id);
- if (memcmp(&sa_in6->sin6_addr, &in6addr_any,
- sizeof(sa_in6->sin6_addr)) == 0)
- h->prefixlen = 0; /* any address */
- else
- h->prefixlen = -1; /* host address */
freeaddrinfo(res);
}
if (ipproto != -1)
h->ipproto = ipproto;
h->ss.ss_family = res->ai_family;
- h->prefixlen = -1; /* host address */
if (res->ai_family == AF_INET) {
struct sockaddr_in *ra;
if (ipproto != -1)
h->ipproto = ipproto;
h->ss.ss_family = af;
- h->prefixlen = -1; /* host address */
if (af == AF_INET) {
struct sockaddr_in *ra;
blob - eacbdc8fa8acb1d85aef92bdaf14ba95977a69b1
blob + 771a0c2547f73ef4ea0982ca4f4d1c6310d39522
--- gotwebd/sockets.c
+++ gotwebd/sockets.c
memcpy(&acp->ss, &a->ss, sizeof(acp->ss));
acp->ipproto = a->ipproto;
- acp->prefixlen = a->prefixlen;
acp->port = a->port;
if (strlen(a->ifname) != 0) {
if (strlcpy(acp->ifname, a->ifname,