Lines Matching defs:go
483 ipcp_options *go = &ipcp_gotoptions[f->unit];
492 *go = *wo;
494 go->ouraddr = 0;
506 ipcp_options *go = &ipcp_gotoptions[f->unit];
518 if (go->neg_addr && go->old_addrs && !ho->neg_addr && ho->old_addrs)
520 go->neg_addr = 0;
521 if (wo->neg_vj && !go->neg_vj && !go->old_vj) {
525 go->neg_vj = 1;
526 go->old_vj = 1;
527 go->vj_protocol = ho->vj_protocol;
531 return (LENCIADDRS(!go->neg_addr && go->old_addrs) +
532 LENCIVJ(go->neg_vj, go->old_vj) +
533 LENCIADDR(go->neg_addr) +
534 LENCIADDR(go->req_dns1) +
535 LENCIADDR(go->req_dns2)) ;
549 ipcp_options *go = &ipcp_gotoptions[f->unit];
561 go->old_addrs = 0; \
591 ADDCIADDRS(CI_ADDRS, !go->neg_addr && go->old_addrs, go->ouraddr,
592 go->hisaddr);
594 ADDCIVJ(CI_COMPRESSTYPE, go->neg_vj, go->vj_protocol, go->old_vj,
595 go->maxslotindex, go->cflag);
597 ADDCIADDR(CI_ADDR, go->neg_addr, go->ouraddr);
599 ADDCIADDR(CI_MS_DNS1, go->req_dns1, go->dnsaddr[0]);
601 ADDCIADDR(CI_MS_DNS2, go->req_dns2, go->dnsaddr[1]);
621 ipcp_options *go = &ipcp_gotoptions[f->unit];
677 ACKCIADDRS(CI_ADDRS, !go->neg_addr && go->old_addrs, go->ouraddr,
678 go->hisaddr);
680 ACKCIVJ(CI_COMPRESSTYPE, go->neg_vj, go->vj_protocol, go->old_vj,
681 go->maxslotindex, go->cflag);
683 ACKCIADDR(CI_ADDR, go->neg_addr, go->ouraddr);
685 ACKCIADDR(CI_MS_DNS1, go->req_dns1, go->dnsaddr[0]);
687 ACKCIADDR(CI_MS_DNS2, go->req_dns2, go->dnsaddr[1]);
717 ipcp_options *go = &ipcp_gotoptions[f->unit];
726 try = *go;
747 if (go->neg && \
759 if (go->neg && \
774 NAKCIADDRS(CI_ADDRS, !go->neg_addr && go->old_addrs,
775 if (go->accept_local && ciaddr1) { /* Do we know our address? */
778 if (go->accept_remote && ciaddr2) { /* Does he know his? */
795 if (cimaxslotindex < go->maxslotindex)
813 if (go->accept_local && ciaddr1) { /* Do we know our address? */
841 if (go->neg_vj || no.neg_vj ||
847 if ((!go->neg_addr && go->old_addrs) || no.old_addrs
853 if (ciaddr1 && go->accept_local)
856 if (ciaddr2 && go->accept_remote)
861 if (go->neg_addr || no.neg_addr || cilen != CILEN_ADDR)
865 if (ciaddr1 && go->accept_local)
880 *go = try;
900 ipcp_options *go = &ipcp_gotoptions[f->unit];
906 try = *go;
931 if (go->neg && \
953 if (go->neg && \
966 REJCIADDRS(CI_ADDRS, !go->neg_addr && go->old_addrs,
967 go->ouraddr, go->hisaddr);
969 REJCIVJ(CI_COMPRESSTYPE, neg_vj, go->vj_protocol, go->old_vj,
970 go->maxslotindex, go->cflag);
972 REJCIADDR(CI_ADDR, neg_addr, go->ouraddr);
974 REJCIADDR(CI_MS_DNS1, req_dns1, go->dnsaddr[0]);
976 REJCIADDR(CI_MS_DNS2, req_dns2, go->dnsaddr[1]);
987 *go = try;
1015 ipcp_options *go = &ipcp_gotoptions[f->unit];
1087 go->hisaddr = ciaddr1;
1101 go->ouraddr = ciaddr2; /* accept peer's idea */
1435 ipcp_options *go = &ipcp_gotoptions[f->unit];
1458 if (go->ouraddr == 0) {
1463 script_setenv("IPLOCAL", ip_ntoa(go->ouraddr), 0);
1475 if ((go->req_dns1 && go->dnsaddr[0] != 0) ||
1476 (go->req_dns2 && go->dnsaddr[1] != 0)) {
1478 if (go->dnsaddr[0] != 0)
1479 script_setenv("DNS1", ip_ntoa(go->dnsaddr[0]), 0);
1480 if (go->dnsaddr[1] != 0)
1481 script_setenv("DNS2", ip_ntoa(go->dnsaddr[1]), 0);
1482 create_resolv(go->dnsaddr[0], go->dnsaddr[1]);
1497 if (go->ouraddr != wo->ouraddr || ho->hisaddr != wo->hisaddr) {
1499 if (go->ouraddr != wo->ouraddr) {
1500 warn("Local IP address changed to %I", go->ouraddr);
1502 wo->ouraddr = go->ouraddr;
1513 mask = GetMask(go->ouraddr);
1514 if (!sifaddr(f->unit, go->ouraddr, ho->hisaddr, mask)) {
1522 if (sifdefaultroute(f->unit, go->ouraddr, ho->hisaddr))
1541 mask = GetMask(go->ouraddr);
1552 if (!sifaddr(f->unit, go->ouraddr, ho->hisaddr, mask)) {
1574 if (sifdefaultroute(f->unit, go->ouraddr, ho->hisaddr))
1582 wo->ouraddr = go->ouraddr;
1584 notice("local IP address %I", go->ouraddr);
1586 if (go->dnsaddr[0] != 0)
1587 notice("primary DNS address %I", go->dnsaddr[0]);
1588 if (go->dnsaddr[1] != 0)
1589 notice("secondary DNS address %I", go->dnsaddr[1]);
1995 ipcp_options *go = &ipcp_gotoptions[unit];
2006 (void) flprintf(strptr, "%s local %I remote %I", proto_name, go->ouraddr,