Lines Matching refs:lcconf
350 old = lcconf->myaddrs; in grab_myaddrs()
418 p->next = lcconf->myaddrs; in grab_myaddrs()
419 lcconf->myaddrs = p; in grab_myaddrs()
473 old = lcconf->myaddrs; in grab_myaddrs()
534 p->next = lcconf->myaddrs; in grab_myaddrs()
535 lcconf->myaddrs = p; in grab_myaddrs()
628 len = read(lcconf->rtsock, msg, sizeof(msg)); in update_myaddrs()
645 len = read(lcconf->rtsock, msg, sizeof(msg)); in update_myaddrs()
661 close(lcconf->rtsock); in update_myaddrs()
662 lcconf->rtsock = -1; in update_myaddrs()
708 for (p = lcconf->myaddrs; p; p = p->next) { in autoconf_myaddrsport()
718 for (p = lcconf->myaddrs, n = 0; p; p = p->next, n++) { in autoconf_myaddrsport()
719 set_port (p->addr, p->udp_encap ? lcconf->port_isakmp_natt : lcconf->port_isakmp); in autoconf_myaddrsport()
738 for (p = lcconf->myaddrs; p; p = p->next) {
827 lcconf->rtsock = socket(PF_ROUTE, SOCK_RAW, PF_UNSPEC); in initmyaddr()
828 if (lcconf->rtsock < 0) { in initmyaddr()
844 if (bind(lcconf->rtsock, (struct sockaddr*)&nl, sizeof(nl)) < 0) { in initmyaddr()
851 if (getsockname(lcconf->rtsock, (struct sockaddr*)&nl, &addr_len) < 0) { in initmyaddr()
860 if (lcconf->myaddrs == NULL && lcconf->autograbaddr == 1) { in initmyaddr()
883 for (p = lcconf->myaddrs; p; p = p->next) {