Lines Matching refs:hisaddr

310 static void ipcp_clear_addrs(ppp_pcb *pcb, u32_t ouraddr, u32_t hisaddr, u8_t replacedefaultroute);
505 wo->hisaddr = remote;
523 if (wo->hisaddr != 0)
524 printer(arg, "%I", wo->hisaddr);
725 if (wo->hisaddr == 0) in ipcp_resetci()
740 ip_choose_hook(&wo->hisaddr); in ipcp_resetci()
741 if (wo->hisaddr) { in ipcp_resetci()
896 go->hisaddr); in ipcp_addci()
1041 go->hisaddr); in ipcp_ackci()
1178 try_.hisaddr = ciaddr2; in ipcp_nakci()
1280 try_.hisaddr = ciaddr2; in ipcp_nakci()
1464 go->ouraddr, go->hisaddr); in ipcp_rejci()
1579 if (ciaddr1 != wo->hisaddr in ipcp_reqci()
1584 tl = lwip_ntohl(wo->hisaddr); in ipcp_reqci()
1587 } else if (ciaddr1 == 0 && wo->hisaddr == 0) { in ipcp_reqci()
1616 ho->hisaddr = ciaddr1; in ipcp_reqci()
1635 if (ciaddr1 != wo->hisaddr in ipcp_reqci()
1640 tl = lwip_ntohl(wo->hisaddr); in ipcp_reqci()
1643 } else if (ciaddr1 == 0 && wo->hisaddr == 0) { in ipcp_reqci()
1653 ho->hisaddr = ciaddr1; in ipcp_reqci()
1796 tl = lwip_ntohl(wo->hisaddr); in ipcp_reqci()
1851 if (wo->hisaddr == 0 && !pcb->settings.noremoteip) {
1853 wo->hisaddr = lwip_htonl(0x0a707070 + ifunit);
1862 if (!sifaddr(pcb, wo->ouraddr, wo->hisaddr, get_mask(wo->ouraddr)))
1870 if (sifdefaultroute(pcb, wo->ouraddr, wo->hisaddr,
1876 if (sifproxyarp(pcb, wo->hisaddr))
1881 if (wo->hisaddr)
1882 ppp_notice("remote IP address %I", wo->hisaddr);
1906 ho->hisaddr = wo->hisaddr; in ipcp_up()
1919 if (ho->hisaddr == 0 && !pcb->settings.noremoteip) { in ipcp_up()
1920 ho->hisaddr = lwip_htonl(0x0a404040); in ipcp_up()
1922 ho->hisaddr); in ipcp_up()
1926 if (ho->hisaddr != 0) in ipcp_up()
1927 script_setenv("IPREMOTE", ip_ntoa(ho->hisaddr), 1); in ipcp_up()
1955 if (ho->hisaddr != 0 && !auth_ip_addr(f->unit, ho->hisaddr)) { in ipcp_up()
1956 ppp_error("Peer is not authorized to use remote address %I", ho->hisaddr); in ipcp_up()
1974 if (go->ouraddr != wo->ouraddr || ho->hisaddr != wo->hisaddr) { in ipcp_up()
1975 ipcp_clear_addrs(f->unit, wo->ouraddr, wo->hisaddr, in ipcp_up()
1983 if (ho->hisaddr != wo->hisaddr && wo->hisaddr != 0) { in ipcp_up()
1984 ppp_warn("Remote IP address changed to %I", ho->hisaddr); in ipcp_up()
1985 script_setenv("OLDIPREMOTE", ip_ntoa(wo->hisaddr), 0); in ipcp_up()
1986 wo->hisaddr = ho->hisaddr; in ipcp_up()
1992 if (!sifaddr(pcb, go->ouraddr, ho->hisaddr, mask)) { in ipcp_up()
2002 if (sifdefaultroute(pcb, go->ouraddr, ho->hisaddr, in ipcp_up()
2008 if (ho->hisaddr != 0 && ipcp_wantoptions[f->unit].proxy_arp) in ipcp_up()
2009 if (sifproxyarp(pcb, ho->hisaddr)) in ipcp_up()
2026 if (!sifaddr(pcb, go->ouraddr, ho->hisaddr, mask)) { in ipcp_up()
2045 if (!sifaddr(pcb, go->ouraddr, ho->hisaddr, mask)) { in ipcp_up()
2060 if (sifdefaultroute(pcb, go->ouraddr, ho->hisaddr, in ipcp_up()
2067 if (ho->hisaddr != 0 && wo->proxy_arp) in ipcp_up()
2068 if (sifproxyarp(pcb, ho->hisaddr)) in ipcp_up()
2075 if (ho->hisaddr != 0) in ipcp_up()
2076 ppp_notice("remote IP address %I", ho->hisaddr); in ipcp_up()
2157 ho->hisaddr, 0); in ipcp_down()
2169 static void ipcp_clear_addrs(ppp_pcb *pcb, u32_t ouraddr, u32_t hisaddr, u8_t replacedefaultroute) { in ipcp_clear_addrs() argument
2174 cifproxyarp(pcb, hisaddr); in ipcp_clear_addrs()
2188 cifdefaultroute(pcb, ouraddr, hisaddr); in ipcp_clear_addrs()
2192 cifaddr(pcb, ouraddr, hisaddr); in ipcp_clear_addrs()