Lines Matching refs:newlist
1388 struct server *serv, *newlist = NULL;
1406 serv->next = newlist;
1407 newlist = serv;
1412 if (!newlist)
1421 newlist = opt_malloc(sizeof(struct server));
1422 memset(newlist, 0, sizeof(struct server));
1427 newlist->flags |= SERV_LITERAL_ADDRESS;
1428 if (!(newlist->flags & SERV_TYPE))
1434 newlist->flags |= SERV_NO_ADDR; /* no server */
1435 if (newlist->flags & SERV_LITERAL_ADDRESS)
1452 if ((newlist->addr.in.sin_addr.s_addr = inet_addr(arg)) != (in_addr_t) -1)
1454 newlist->addr.in.sin_port = htons(serv_port);
1455 newlist->source_addr.in.sin_port = htons(source_port);
1456 newlist->addr.sa.sa_family = newlist->source_addr.sa.sa_family = AF_INET;
1458 newlist->source_addr.in.sin_len = newlist->addr.in.sin_len = sizeof(struct sockaddr_in);
1462 newlist->flags |= SERV_HAS_SOURCE;
1463 if ((newlist->source_addr.in.sin_addr.s_addr = inet_addr(source)) == (in_addr_t) -1)
1466 newlist->source_addr.in.sin_addr.s_addr = INADDR_ANY;
1467 strncpy(newlist->interface, source, IF_NAMESIZE);
1474 newlist->source_addr.in.sin_addr.s_addr = INADDR_ANY;
1477 else if (inet_pton(AF_INET6, arg, &newlist->addr.in6.sin6_addr) > 0)
1479 newlist->addr.in6.sin6_port = htons(serv_port);
1480 newlist->source_addr.in6.sin6_port = htons(source_port);
1481 newlist->addr.sa.sa_family = newlist->source_addr.sa.sa_family = AF_INET6;
1483 newlist->addr.in6.sin6_len = newlist->source_addr.in6.sin6_len = sizeof(newlist->addr.in6);
1487 newlist->flags |= SERV_HAS_SOURCE;
1488 if (inet_pton(AF_INET6, source, &newlist->source_addr.in6.sin6_addr) == 0)
1491 newlist->source_addr.in6.sin6_addr = in6addr_any;
1492 strncpy(newlist->interface, source, IF_NAMESIZE);
1499 newlist->source_addr.in6.sin6_addr = in6addr_any;
1507 serv = newlist;
1516 daemon->servers = newlist;