Lines Matching refs:go
715 ipcp_options *go = &pcb->ipcp_gotoptions; in ipcp_resetci() local
727 *go = *wo; in ipcp_resetci()
729 go->ouraddr = 0; in ipcp_resetci()
748 ipcp_options *go = &pcb->ipcp_gotoptions; in ipcp_cilen() local
770 if (go->neg_addr && go->old_addrs && !ho->neg_addr && ho->old_addrs) in ipcp_cilen()
771 go->neg_addr = 0; in ipcp_cilen()
774 if (wo->neg_vj && !go->neg_vj && !go->old_vj) { in ipcp_cilen()
778 go->neg_vj = 1; in ipcp_cilen()
779 go->old_vj = 1; in ipcp_cilen()
780 go->vj_protocol = ho->vj_protocol; in ipcp_cilen()
785 return (LENCIADDRS(!go->neg_addr && go->old_addrs) + in ipcp_cilen()
787 LENCIVJ(go->neg_vj, go->old_vj) + in ipcp_cilen()
789 LENCIADDR(go->neg_addr) + in ipcp_cilen()
791 LENCIDNS(go->req_dns1) + in ipcp_cilen()
792 LENCIDNS(go->req_dns2) + in ipcp_cilen()
795 LENCIWINS(go->winsaddr[0]) + in ipcp_cilen()
796 LENCIWINS(go->winsaddr[1]) + in ipcp_cilen()
808 ipcp_options *go = &pcb->ipcp_gotoptions; in ipcp_addci() local
823 go->old_addrs = 0; \ in ipcp_addci()
887 ADDCIADDRS(CI_ADDRS, !go->neg_addr && go->old_addrs, go->ouraddr, in ipcp_addci()
888 go->hisaddr); in ipcp_addci()
891 ADDCIVJ(CI_COMPRESSTYPE, go->neg_vj, go->vj_protocol, go->old_vj, in ipcp_addci()
892 go->maxslotindex, go->cflag); in ipcp_addci()
895 ADDCIADDR(CI_ADDR, go->neg_addr, go->ouraddr); in ipcp_addci()
898 ADDCIDNS(CI_MS_DNS1, go->req_dns1, go->dnsaddr[0]); in ipcp_addci()
900 ADDCIDNS(CI_MS_DNS2, go->req_dns2, go->dnsaddr[1]); in ipcp_addci()
904 ADDCIWINS(CI_MS_WINS1, go->winsaddr[0]); in ipcp_addci()
906 ADDCIWINS(CI_MS_WINS2, go->winsaddr[1]); in ipcp_addci()
923 ipcp_options *go = &pcb->ipcp_gotoptions; in ipcp_ackci() local
1032 ACKCIADDRS(CI_ADDRS, !go->neg_addr && go->old_addrs, go->ouraddr, in ipcp_ackci()
1033 go->hisaddr); in ipcp_ackci()
1036 ACKCIVJ(CI_COMPRESSTYPE, go->neg_vj, go->vj_protocol, go->old_vj, in ipcp_ackci()
1037 go->maxslotindex, go->cflag); in ipcp_ackci()
1040 ACKCIADDR(CI_ADDR, go->neg_addr, go->ouraddr); in ipcp_ackci()
1043 ACKCIDNS(CI_MS_DNS1, go->req_dns1, go->dnsaddr[0]); in ipcp_ackci()
1045 ACKCIDNS(CI_MS_DNS2, go->req_dns2, go->dnsaddr[1]); in ipcp_ackci()
1049 ACKCIWINS(CI_MS_WINS1, go->winsaddr[0]); in ipcp_ackci()
1051 ACKCIWINS(CI_MS_WINS2, go->winsaddr[1]); in ipcp_ackci()
1078 ipcp_options *go = &pcb->ipcp_gotoptions; in ipcp_nakci() local
1092 try_ = *go; in ipcp_nakci()
1116 if (go->neg && \ in ipcp_nakci()
1129 if (go->neg && \ in ipcp_nakci()
1143 if (go->neg && \ in ipcp_nakci()
1160 NAKCIADDRS(CI_ADDRS, !go->neg_addr && go->old_addrs, in ipcp_nakci()
1164 if (go->accept_local && ciaddr1) { in ipcp_nakci()
1168 if (go->accept_remote && ciaddr2) { in ipcp_nakci()
1190 if (cimaxslotindex < go->maxslotindex) in ipcp_nakci()
1212 } else if (go->accept_local && ciaddr1) { in ipcp_nakci()
1254 if (go->neg_vj || no.neg_vj || in ipcp_nakci()
1261 if ((!go->neg_addr && go->old_addrs) || no.old_addrs in ipcp_nakci()
1267 if (ciaddr1 && go->accept_local) in ipcp_nakci()
1271 if (ciaddr2 && go->accept_remote) in ipcp_nakci()
1276 if (go->neg_addr || no.neg_addr || cilen != CILEN_ADDR) in ipcp_nakci()
1281 if (ciaddr1 && go->accept_local) in ipcp_nakci()
1289 if (go->req_dns1 || no.req_dns1 || cilen != CILEN_ADDR) in ipcp_nakci()
1297 if (go->req_dns2 || no.req_dns2 || cilen != CILEN_ADDR) in ipcp_nakci()
1327 *go = try_; in ipcp_nakci()
1343 ipcp_options *go = &pcb->ipcp_gotoptions; in ipcp_rejci() local
1352 try_ = *go; in ipcp_rejci()
1381 if (go->neg && \ in ipcp_rejci()
1404 if (go->neg && \ in ipcp_rejci()
1421 if (go->neg && \ in ipcp_rejci()
1455 REJCIADDRS(CI_ADDRS, !go->neg_addr && go->old_addrs, in ipcp_rejci()
1456 go->ouraddr, go->hisaddr); in ipcp_rejci()
1459 REJCIVJ(CI_COMPRESSTYPE, neg_vj, go->vj_protocol, go->old_vj, in ipcp_rejci()
1460 go->maxslotindex, go->cflag); in ipcp_rejci()
1463 REJCIADDR(CI_ADDR, neg_addr, go->ouraddr); in ipcp_rejci()
1466 REJCIDNS(CI_MS_DNS1, req_dns1, go->dnsaddr[0]); in ipcp_rejci()
1468 REJCIDNS(CI_MS_DNS2, req_dns2, go->dnsaddr[1]); in ipcp_rejci()
1472 REJCIWINS(CI_MS_WINS1, go->winsaddr[0]); in ipcp_rejci()
1474 REJCIWINS(CI_MS_WINS2, go->winsaddr[1]); in ipcp_rejci()
1486 *go = try_; in ipcp_rejci()
1889 ipcp_options *go = &pcb->ipcp_gotoptions; in ipcp_up() local
1900 if (!(go->neg_addr || go->old_addrs) && (wo->neg_addr || wo->old_addrs) in ipcp_up()
1906 if (go->ouraddr == 0) { in ipcp_up()
1917 script_setenv("IPLOCAL", ip_ntoa(go->ouraddr), 0); in ipcp_up()
1923 if (!go->req_dns1) in ipcp_up()
1924 go->dnsaddr[0] = 0; in ipcp_up()
1925 if (!go->req_dns2) in ipcp_up()
1926 go->dnsaddr[1] = 0; in ipcp_up()
1928 if (go->dnsaddr[0]) in ipcp_up()
1929 script_setenv("DNS1", ip_ntoa(go->dnsaddr[0]), 0); in ipcp_up()
1930 if (go->dnsaddr[1]) in ipcp_up()
1931 script_setenv("DNS2", ip_ntoa(go->dnsaddr[1]), 0); in ipcp_up()
1933 if (pcb->settings.usepeerdns && (go->dnsaddr[0] || go->dnsaddr[1])) { in ipcp_up()
1934 sdns(pcb, go->dnsaddr[0], go->dnsaddr[1]); in ipcp_up()
1937 create_resolv(go->dnsaddr[0], go->dnsaddr[1]); in ipcp_up()
1984 if (go->ouraddr != wo->ouraddr || ho->hisaddr != wo->hisaddr) { in ipcp_up()
1987 if (go->ouraddr != wo->ouraddr) { in ipcp_up()
1988 ppp_warn("Local IP address changed to %I", go->ouraddr); in ipcp_up()
1990 wo->ouraddr = go->ouraddr; in ipcp_up()
2001 mask = get_mask(go->ouraddr); 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()
2024 demand_rexmit(PPP_IP,go->ouraddr); in ipcp_up()
2033 mask = get_mask(go->ouraddr); 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()
2082 wo->ouraddr = go->ouraddr; in ipcp_up()
2084 ppp_notice("local IP address %I", go->ouraddr); in ipcp_up()
2088 if (go->dnsaddr[0]) in ipcp_up()
2089 ppp_notice("primary DNS address %I", go->dnsaddr[0]); in ipcp_up()
2090 if (go->dnsaddr[1]) in ipcp_up()
2091 ppp_notice("secondary DNS address %I", go->dnsaddr[1]); in ipcp_up()
2121 ipcp_options *go = &pcb->ipcp_gotoptions; in ipcp_down() local
2166 ipcp_clear_addrs(pcb, go->ouraddr, in ipcp_down()
2169 cdns(pcb, go->dnsaddr[0], go->dnsaddr[1]); in ipcp_down()