Lines Matching refs:lcconf
354 old = lcconf->myaddrs; in grab_myaddrs()
427 p->next = lcconf->myaddrs; in grab_myaddrs()
428 lcconf->myaddrs = p; in grab_myaddrs()
486 old = lcconf->myaddrs; in grab_myaddrs()
552 p->next = lcconf->myaddrs; in grab_myaddrs()
553 lcconf->myaddrs = p; in grab_myaddrs()
649 len = read(lcconf->rtsock, msg, sizeof(msg)); in update_myaddrs()
666 len = read(lcconf->rtsock, msg, sizeof(msg)); in update_myaddrs()
682 close(lcconf->rtsock); in update_myaddrs()
683 lcconf->rtsock = -1; in update_myaddrs()
729 for (p = lcconf->myaddrs; p; p = p->next) { in autoconf_myaddrsport()
739 for (p = lcconf->myaddrs, n = 0; p; p = p->next, n++) { in autoconf_myaddrsport()
740 set_port (p->addr, p->udp_encap ? lcconf->port_isakmp_natt : lcconf->port_isakmp); in autoconf_myaddrsport()
759 for (p = lcconf->myaddrs; p; p = p->next) {
848 lcconf->rtsock = socket(PF_ROUTE, SOCK_RAW, PF_UNSPEC); in initmyaddr()
849 if (lcconf->rtsock < 0) { in initmyaddr()
865 if (bind(lcconf->rtsock, (struct sockaddr*)&nl, sizeof(nl)) < 0) { in initmyaddr()
872 if (getsockname(lcconf->rtsock, (struct sockaddr*)&nl, &addr_len) < 0) { in initmyaddr()
881 if (lcconf->myaddrs == NULL && lcconf->autograbaddr == 1) { in initmyaddr()
904 for (p = lcconf->myaddrs; p; p = p->next) {