Lines Matching refs:addr
109 struct sockaddr_in addr;
117 ip = (p->addr[0] << 24) | (p->addr[1] << 16) | (p->addr[2] << 8) |
118 p->addr[3];
119 memset(&addr, 0, sizeof(addr));
120 addr.sin_addr.s_addr = htonl(ip);
121 addr.sin_port = htons(p->port);
122 addr.sin_family = AF_INET;
123 addr.sin_len = sizeof(addr);
124 if (addr.sin_addr.s_addr == INADDR_ANY) {
134 if (bind(p->input.fd, (struct sockaddr *)&addr, sizeof(addr))) {
140 syslog(LOG_ERR, "bind: %s:%u %m", inet_ntoa(addr.sin_addr),
160 udp_open_port(u_int8_t *addr, u_int32_t udp_port, struct udp_port **pp)
173 port->tport.index.subs[0] = addr[0];
174 port->tport.index.subs[1] = addr[1];
175 port->tport.index.subs[2] = addr[2];
176 port->tport.index.subs[3] = addr[3];
179 port->addr[0] = addr[0];
180 port->addr[1] = addr[1];
181 port->addr[2] = addr[2];
182 port->addr[3] = addr[3];
221 const struct sockaddr *addr, size_t addrlen)
235 msg.msg_name = __DECONST(void *, addr);
350 u_int8_t addr[4];
386 if (index_decode(&value->var, sub, iidx, addr, &port))
388 return (udp_open_port(addr, port, &p));