commit - 83769d30329a2744571b359ad7c849db5249ca79
commit + 1adf41e8089257344579fba9c7e03d7ebc0c15b8
blob - 806012ae38445e49fc3162cd5d209756e7d1e9e4
blob + fae082679ec712db36cb01d56e5edb5857535ab7
--- 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 - d5a7dbbee8448313fbb103ee1f02db4a45a1bb10
blob + 3b73a07923fb6fec5efd9fea7f055fc7f917cfae
--- 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 - 2e65dd1a33285ce42d25e3660426529b8adb5416
blob + bf53d6f9bff50c34f85de2733fe7ae29ff2401d7
--- 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,