• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/ppp/pppd/

Lines Matching defs:wo

380     ipcp_options *wo = &ipcp_wantoptions[0];

408 wo->ouraddr = local;
431 wo->hisaddr = remote;
444 ipcp_options *wo = &ipcp_wantoptions[0];
446 if (wo->ouraddr != 0)
447 printer(arg, "%I", wo->ouraddr);
449 if (wo->hisaddr != 0)
450 printer(arg, "%I", wo->hisaddr);
526 ipcp_options *wo = &ipcp_wantoptions[unit];
534 memset(wo, 0, sizeof(*wo));
537 wo->neg_addr = 1;
538 wo->neg_vj = 1;
539 wo->vj_protocol = IPCP_VJ_COMP;
540 wo->maxslotindex = MAX_STATES - 1; /* really max index */
541 wo->cflag = 1;
637 ipcp_options *wo = &ipcp_wantoptions[f->unit];
640 wo->req_addr = wo->neg_addr && ipcp_allowoptions[f->unit].neg_addr;
641 if (wo->ouraddr == 0)
642 wo->accept_local = 1;
643 if (wo->hisaddr == 0)
644 wo->accept_remote = 1;
645 wo->req_dns1 = usepeerdns; /* Request DNS addresses from the peer */
646 wo->req_dns2 = usepeerdns;
647 *go = *wo;
651 ip_choose_hook(&wo->hisaddr);
664 ipcp_options *wo = &ipcp_wantoptions[f->unit];
675 if (wo->neg_addr && !go->neg_addr && !go->old_addrs) {
680 if (wo->neg_vj && !go->neg_vj && !go->old_vj) {
1199 ipcp_options *wo = &ipcp_wantoptions[f->unit];
1257 if (ciaddr1 != wo->hisaddr
1258 && (ciaddr1 == 0 || !wo->accept_remote)) {
1262 tl = ntohl(wo->hisaddr);
1265 } else if (ciaddr1 == 0 && wo->hisaddr == 0) {
1270 wo->req_addr = 0; /* don't NAK with 0.0.0.0 later */
1280 if (ciaddr2 != wo->ouraddr) {
1281 if (ciaddr2 == 0 || !wo->accept_local) {
1285 tl = ntohl(wo->ouraddr);
1314 if (ciaddr1 != wo->hisaddr
1315 && (ciaddr1 == 0 || !wo->accept_remote)) {
1319 tl = ntohl(wo->hisaddr);
1322 } else if (ciaddr1 == 0 && wo->hisaddr == 0) {
1327 wo->req_addr = 0; /* don't NAK with 0.0.0.0 later */
1405 PUTCHAR(wo->cflag, p);
1461 wo->req_addr && !reject_if_disagree) {
1465 wo->req_addr = 0; /* don't ask again */
1469 tl = ntohl(wo->hisaddr);
1488 ipcp_options *wo = &ipcp_wantoptions[0];
1494 if (wo->ouraddr == 0 && !disable_defaultip) {
1500 wo->accept_local = 1; /* don't insist on this default value */
1504 wo->ouraddr = local;
1507 ask_for_local = wo->ouraddr != 0 || !disable_defaultip;
1519 ipcp_options *wo = &ipcp_wantoptions[u];
1521 if (wo->hisaddr == 0) {
1523 wo->hisaddr = htonl(0x0a707070 + ifunit);
1524 wo->accept_remote = 1;
1526 if (wo->ouraddr == 0) {
1528 wo->ouraddr = htonl(0x0a404040 + ifunit);
1529 wo->accept_local = 1;
1532 if (!sifaddr(u, wo->ouraddr, wo->hisaddr, GetMask(wo->ouraddr)))
1538 if (wo->default_route)
1539 if (sifdefaultroute(u, wo->ouraddr, wo->hisaddr))
1541 if (wo->proxy_arp)
1542 if (sifproxyarp(u, wo->hisaddr))
1545 notice("local IP address %I", wo->ouraddr);
1546 notice("remote IP address %I", wo->hisaddr);
1564 ipcp_options *wo = &ipcp_wantoptions[f->unit];
1572 ho->hisaddr = wo->hisaddr;
1614 if (go->ouraddr != wo->ouraddr || ho->hisaddr != wo->hisaddr) {
1615 ipcp_clear_addrs(f->unit, wo->ouraddr, wo->hisaddr);
1616 if (go->ouraddr != wo->ouraddr) {
1618 script_setenv("OLDIPLOCAL", ip_ntoa(wo->ouraddr), 0);
1619 wo->ouraddr = go->ouraddr;
1622 if (ho->hisaddr != wo->hisaddr) {
1624 script_setenv("OLDIPREMOTE", ip_ntoa(wo->hisaddr), 0);
1625 wo->hisaddr = ho->hisaddr;