Lines Matching refs:ipaddr
524 struct ncpaddr ipaddr; in ipcp_Setup() local
538 ncpaddr_setip4(&ipaddr, iplist_setcurpos(&ipcp->cfg.peer_list, pos)); in ipcp_Setup()
544 ncpaddr_setip4(&ipaddr, iplist_setrandpos(&ipcp->cfg.peer_list)); in ipcp_Setup()
546 ncprange_sethost(&ipcp->cfg.peer_range, &ipaddr); in ipcp_Setup()
571 ncprange_getaddr(&iface->addr[n].ifa, &ipaddr); in ipcp_Setup()
572 if (ncprange_contains(&ipcp->cfg.my_range, &ipaddr)) { in ipcp_Setup()
573 ncpaddr_getip4(&ipaddr, &ipcp->my_ip); in ipcp_Setup()
1063 struct in_addr ipaddr, dstipaddr, have_ip; in IpcpDecodeConfig() local
1078 memcpy(&ipaddr.s_addr, opt->data, 4); in IpcpDecodeConfig()
1079 log_Printf(LogIPCP, "%s %s\n", tbuff, inet_ntoa(ipaddr)); in IpcpDecodeConfig()
1084 ipcp_ValidateReq(ipcp, ipaddr, dec); in IpcpDecodeConfig()
1088 if (ncprange_containsip4(&ipcp->cfg.my_range, ipaddr)) { in IpcpDecodeConfig()
1092 log_Printf(LogIPCP, "%s --> %s\n", tbuff2, inet_ntoa(ipaddr)); in IpcpDecodeConfig()
1093 ipcp->my_ip = ipaddr; in IpcpDecodeConfig()
1098 "%s: Unacceptable address!\n", inet_ntoa(ipaddr)); in IpcpDecodeConfig()
1192 memcpy(&ipaddr.s_addr, opt->data, 4); in IpcpDecodeConfig()
1194 snprintf(tbuff2, sizeof tbuff2, "%s %s,", tbuff, inet_ntoa(ipaddr)); in IpcpDecodeConfig()
1210 memcpy(&ipaddr.s_addr, opt->data, 4); in IpcpDecodeConfig()
1211 log_Printf(LogIPCP, "%s %s\n", tbuff, inet_ntoa(ipaddr)); in IpcpDecodeConfig()
1222 if (opt->hdr.id == TY_PRIMARY_DNS && ipaddr.s_addr != have_ip.s_addr && in IpcpDecodeConfig()
1223 ipaddr.s_addr == ipcp->ns.dns[1].s_addr) { in IpcpDecodeConfig()
1230 if (ipaddr.s_addr != have_ip.s_addr) { in IpcpDecodeConfig()
1264 memcpy(&ipaddr.s_addr, opt->data, 4); in IpcpDecodeConfig()
1265 log_Printf(LogIPCP, "%s %s\n", tbuff, inet_ntoa(ipaddr)); in IpcpDecodeConfig()
1279 if (ipaddr.s_addr != have_ip.s_addr) { in IpcpDecodeConfig()
1333 ipaddr.s_addr = INADDR_ANY; in IpcpDecodeConfig()
1334 ipcp_ValidateReq(ipcp, ipaddr, dec); in IpcpDecodeConfig()