Lines Matching refs:ho
752 ipcp_options *ho = &pcb->ipcp_hisoptions; in ipcp_cilen() local
770 if (go->neg_addr && go->old_addrs && !ho->neg_addr && ho->old_addrs) in ipcp_cilen()
777 if (ho->neg_vj && ho->old_vj) { in ipcp_cilen()
780 go->vj_protocol = ho->vj_protocol; in ipcp_cilen()
1509 ipcp_options *ho = &pcb->ipcp_hisoptions; in ipcp_reqci() local
1532 BZERO(ho, sizeof(*ho)); in ipcp_reqci()
1557 if (!ao->old_addrs || ho->neg_addr || in ipcp_reqci()
1607 ho->old_addrs = 1; in ipcp_reqci()
1608 ho->hisaddr = ciaddr1; in ipcp_reqci()
1609 ho->ouraddr = ciaddr2; in ipcp_reqci()
1613 if (!ao->neg_addr || ho->old_addrs || in ipcp_reqci()
1644 ho->neg_addr = 1; in ipcp_reqci()
1645 ho->hisaddr = ciaddr1; in ipcp_reqci()
1707 ho->neg_vj = 1; in ipcp_reqci()
1708 ho->vj_protocol = cishort; in ipcp_reqci()
1726 ho->maxslotindex = maxslotindex; in ipcp_reqci()
1727 ho->cflag = cflag; in ipcp_reqci()
1729 ho->old_vj = 1; in ipcp_reqci()
1730 ho->maxslotindex = MAX_STATES - 1; in ipcp_reqci()
1731 ho->cflag = 1; in ipcp_reqci()
1779 if (rc != CONFREJ && !ho->neg_addr && !ho->old_addrs && in ipcp_reqci()
1888 ipcp_options *ho = &pcb->ipcp_hisoptions; in ipcp_up() local
1897 if (!ho->neg_addr && !ho->old_addrs) in ipcp_up()
1898 ho->hisaddr = wo->hisaddr; in ipcp_up()
1911 if (ho->hisaddr == 0 && !pcb->settings.noremoteip) { in ipcp_up()
1912 ho->hisaddr = lwip_htonl(0x0a404040); in ipcp_up()
1914 ho->hisaddr); in ipcp_up()
1918 if (ho->hisaddr != 0) in ipcp_up()
1919 script_setenv("IPREMOTE", ip_ntoa(ho->hisaddr), 1); in ipcp_up()
1945 if (ho->hisaddr != 0) { in ipcp_up()
1946 u32_t addr = lwip_ntohl(ho->hisaddr); in ipcp_up()
1955 || (pcb->settings.auth_required && wo->hisaddr != ho->hisaddr) in ipcp_up()
1958 ppp_error("Peer is not authorized to use remote address %I", ho->hisaddr); in ipcp_up()
1965 if (ho->hisaddr != 0 && !auth_ip_addr(f->unit, ho->hisaddr)) { in ipcp_up()
1966 ppp_error("Peer is not authorized to use remote address %I", ho->hisaddr); in ipcp_up()
1974 sifvjcomp(pcb, ho->neg_vj, ho->cflag, ho->maxslotindex); in ipcp_up()
1984 if (go->ouraddr != wo->ouraddr || ho->hisaddr != wo->hisaddr) { in ipcp_up()
1993 if (ho->hisaddr != wo->hisaddr && wo->hisaddr != 0) { in ipcp_up()
1994 ppp_warn("Remote IP address changed to %I", ho->hisaddr); in ipcp_up()
1996 wo->hisaddr = ho->hisaddr; in ipcp_up()
2002 if (!sifaddr(pcb, go->ouraddr, ho->hisaddr, mask)) { in ipcp_up()
2012 if (sifdefaultroute(pcb, go->ouraddr, ho->hisaddr, in ipcp_up()
2018 if (ho->hisaddr != 0 && ipcp_wantoptions[f->unit].proxy_arp) in ipcp_up()
2019 if (sifproxyarp(pcb, ho->hisaddr)) in ipcp_up()
2036 if (!sifaddr(pcb, go->ouraddr, ho->hisaddr, mask)) { in ipcp_up()
2055 if (!sifaddr(pcb, go->ouraddr, ho->hisaddr, mask)) { in ipcp_up()
2070 if (sifdefaultroute(pcb, go->ouraddr, ho->hisaddr, in ipcp_up()
2077 if (ho->hisaddr != 0 && wo->proxy_arp) in ipcp_up()
2078 if (sifproxyarp(pcb, ho->hisaddr)) in ipcp_up()
2085 if (ho->hisaddr != 0) in ipcp_up()
2086 ppp_notice("remote IP address %I", ho->hisaddr); in ipcp_up()
2120 ipcp_options *ho = &pcb->ipcp_hisoptions; in ipcp_down() local
2167 ho->hisaddr, 0); in ipcp_down()