Lines Matching refs:ouraddr
444 wo->ouraddr = local;
482 if (wo->ouraddr != 0)
483 printer(arg, "%I", wo->ouraddr);
684 if (wo->ouraddr == 0)
692 go->ouraddr = 0;
814 ADDCIADDRS(CI_ADDRS, !go->neg_addr && go->old_addrs, go->ouraddr,
820 ADDCIADDR(CI_ADDR, go->neg_addr, go->ouraddr);
929 ACKCIADDRS(CI_ADDRS, !go->neg_addr && go->old_addrs, go->ouraddr,
935 ACKCIADDR(CI_ADDR, go->neg_addr, go->ouraddr);
1049 try.ouraddr = ciaddr1;
1095 try.ouraddr = ciaddr1;
1143 try.ouraddr = ciaddr1;
1157 try.ouraddr = ciaddr1;
1158 if (try.ouraddr != 0)
1280 go->ouraddr, go->hisaddr);
1285 REJCIADDR(CI_ADDR, neg_addr, go->ouraddr);
1404 if (ciaddr2 != wo->ouraddr) {
1409 tl = ntohl(wo->ouraddr);
1413 wo->ouraddr = ciaddr2; /* accept peer's idea */
1419 ho->ouraddr = ciaddr2;
1617 if (wo->ouraddr == 0 && !disable_defaultip) {
1627 wo->ouraddr = local;
1630 ask_for_local = wo->ouraddr != 0 || !disable_defaultip;
1649 if (wo->ouraddr == 0) {
1651 wo->ouraddr = htonl(0x0a404040 + ifunit);
1655 if (!sifaddr(u, wo->ouraddr, wo->hisaddr, GetMask(wo->ouraddr)))
1662 if (sifdefaultroute(u, wo->ouraddr, wo->hisaddr))
1668 notice("local IP address %I", wo->ouraddr);
1698 && wo->ouraddr != 0) {
1703 if (go->ouraddr == 0) {
1713 script_setenv("IPLOCAL", ip_ntoa(go->ouraddr), 0);
1743 if (go->ouraddr != wo->ouraddr || ho->hisaddr != wo->hisaddr) {
1744 ipcp_clear_addrs(f->unit, wo->ouraddr, wo->hisaddr);
1745 if (go->ouraddr != wo->ouraddr) {
1746 warn("Local IP address changed to %I", go->ouraddr);
1747 script_setenv("OLDIPLOCAL", ip_ntoa(wo->ouraddr), 0);
1748 wo->ouraddr = go->ouraddr;
1759 mask = GetMask(go->ouraddr);
1760 if (!sifaddr(f->unit, go->ouraddr, ho->hisaddr, mask)) {
1769 if (sifdefaultroute(f->unit, go->ouraddr, ho->hisaddr))
1785 mask = GetMask(go->ouraddr);
1788 if (!sifaddr(f->unit, go->ouraddr, ho->hisaddr, mask)) {
1805 if (!sifaddr(f->unit, go->ouraddr, ho->hisaddr, mask)) {
1816 if (sifdefaultroute(f->unit, go->ouraddr, ho->hisaddr))
1824 ipcp_wantoptions[0].ouraddr = go->ouraddr;
1826 notice("local IP address %I", go->ouraddr);
1892 ipcp_clear_addrs(f->unit, ipcp_gotoptions[f->unit].ouraddr,
1909 ipcp_clear_addrs(unit, ouraddr, hisaddr)
1911 u_int32_t ouraddr; /* local address */
1919 cifdefaultroute(unit, ouraddr, hisaddr);
1922 cifaddr(unit, ouraddr, hisaddr);
1978 slprintf(strlocal, sizeof(strlocal), "%I", ipcp_gotoptions[0].ouraddr);