• Home
  • Raw
  • Download

Lines Matching refs:wo

424     ipcp_options *wo = &ipcp_wantoptions[0];  local
452 wo->ouraddr = local;
475 wo->hisaddr = remote;
488 ipcp_options *wo = &ipcp_wantoptions[0]; local
490 if (wo->ouraddr != 0)
491 printer(arg, "%I", wo->ouraddr);
493 if (wo->hisaddr != 0)
494 printer(arg, "%I", wo->hisaddr);
570 ipcp_options *wo = &ipcp_wantoptions[unit]; local
586 memset(wo, 0, sizeof(*wo));
589 wo->neg_addr = wo->old_addrs = 1;
590 wo->neg_vj = 1;
591 wo->vj_protocol = IPCP_VJ_COMP;
592 wo->maxslotindex = MAX_STATES - 1; /* really max index */
593 wo->cflag = 1;
694 ipcp_options *wo = &ipcp_wantoptions[f->unit]; local
698 wo->req_addr = (wo->neg_addr || wo->old_addrs) &&
700 if (wo->ouraddr == 0)
701 wo->accept_local = 1;
702 if (wo->hisaddr == 0)
703 wo->accept_remote = 1;
704 wo->req_dns1 = usepeerdns; /* Request DNS addresses from the peer */
705 wo->req_dns2 = usepeerdns;
706 *go = *wo;
710 ip_choose_hook(&wo->hisaddr);
711 if (wo->hisaddr) {
712 wo->accept_remote = 0;
728 ipcp_options *wo = &ipcp_wantoptions[f->unit]; local
743 if (wo->neg_vj && !go->neg_vj && !go->old_vj) {
1425 ipcp_options *wo = &ipcp_wantoptions[f->unit]; local
1482 if (ciaddr1 != wo->hisaddr
1483 && (ciaddr1 == 0 || !wo->accept_remote)) {
1487 tl = ntohl(wo->hisaddr);
1490 } else if (ciaddr1 == 0 && wo->hisaddr == 0) {
1495 wo->req_addr = 0; /* don't NAK with 0.0.0.0 later */
1505 if (ciaddr2 != wo->ouraddr) {
1506 if (ciaddr2 == 0 || !wo->accept_local) {
1510 tl = ntohl(wo->ouraddr);
1514 wo->ouraddr = ciaddr2; /* accept peer's idea */
1538 if (ciaddr1 != wo->hisaddr
1539 && (ciaddr1 == 0 || !wo->accept_remote)) {
1543 tl = ntohl(wo->hisaddr);
1546 } else if (ciaddr1 == 0 && wo->hisaddr == 0) {
1551 wo->req_addr = 0; /* don't NAK with 0.0.0.0 later */
1629 PUTCHAR(wo->cflag, p);
1685 wo->req_addr && !reject_if_disagree && !noremoteip) {
1689 wo->req_addr = 0; /* don't ask again */
1693 tl = ntohl(wo->hisaddr);
1712 ipcp_options *wo = &ipcp_wantoptions[0]; in ip_check_options() local
1718 if (wo->ouraddr == 0 && !disable_defaultip) { in ip_check_options()
1724 wo->accept_local = 1; /* don't insist on this default value */ in ip_check_options()
1728 wo->ouraddr = local; in ip_check_options()
1731 ask_for_local = wo->ouraddr != 0 || !disable_defaultip; in ip_check_options()
1743 ipcp_options *wo = &ipcp_wantoptions[u]; local
1745 if (wo->hisaddr == 0 && !noremoteip) {
1747 wo->hisaddr = htonl(0x0a707070 + ifunit);
1748 wo->accept_remote = 1;
1750 if (wo->ouraddr == 0) {
1752 wo->ouraddr = htonl(0x0a404040 + ifunit);
1753 wo->accept_local = 1;
1756 if (!sifaddr(u, wo->ouraddr, wo->hisaddr, GetMask(wo->ouraddr)))
1763 if (wo->default_route)
1764 if (sifdefaultroute(u, wo->ouraddr, wo->hisaddr))
1766 if (wo->proxy_arp)
1767 if (sifproxyarp(u, wo->hisaddr))
1770 notice("local IP address %I", wo->ouraddr);
1771 if (wo->hisaddr)
1772 notice("remote IP address %I", wo->hisaddr);
1790 ipcp_options *wo = &ipcp_wantoptions[f->unit]; local
1798 ho->hisaddr = wo->hisaddr;
1800 if (!(go->neg_addr || go->old_addrs) && (wo->neg_addr || wo->old_addrs)
1801 && wo->ouraddr != 0) {
1851 if (go->ouraddr != wo->ouraddr || ho->hisaddr != wo->hisaddr) {
1852 ipcp_clear_addrs(f->unit, wo->ouraddr, wo->hisaddr);
1853 if (go->ouraddr != wo->ouraddr) {
1855 script_setenv("OLDIPLOCAL", ip_ntoa(wo->ouraddr), 0);
1856 wo->ouraddr = go->ouraddr;
1859 if (ho->hisaddr != wo->hisaddr && wo->hisaddr != 0) {
1861 script_setenv("OLDIPREMOTE", ip_ntoa(wo->hisaddr), 0);
1862 wo->hisaddr = ho->hisaddr;