Home
last modified time | relevance | path

Searched refs:hisaddr (Results 1 – 7 of 7) sorted by relevance

/freebsd/usr.sbin/ppp/
H A Dipv6cp.c200 struct in6_addr myaddr, hisaddr; in ipcp_SetIPv6address() local
211 memset(&hisaddr, '\0', sizeof hisaddr); in ipcp_SetIPv6address()
220 hisaddr.s6_addr[0] = 0xfe; in ipcp_SetIPv6address()
221 hisaddr.s6_addr[1] = 0x80; in ipcp_SetIPv6address()
222 memcpy(&hisaddr.s6_addr[8], hisifid, IPV6CP_IFIDLEN); in ipcp_SetIPv6address()
224 hisaddr.s6_addr[8] |= 0x02; /* set 'universal' bit */ in ipcp_SetIPv6address()
228 ncpaddr_setip6(&ipv6cp->hisaddr, &hisaddr); in ipcp_SetIPv6address()
231 if (!iface_Add(bundle->iface, &bundle->ncp, &myrange, &ipv6cp->hisaddr, in ipcp_SetIPv6address()
245 if (ncpaddr_isset(&ipv6cp->hisaddr)) in ipcp_SetIPv6address()
246 ncpaddr_getsa(&ipv6cp->hisaddr, &ssdst); in ipcp_SetIPv6address()
[all …]
H A Dipcp.c664 struct in_addr hisaddr) in ipcp_SetIPaddress() argument
677 ncpaddr_setip4(&hisncpaddr, hisaddr); in ipcp_SetIPaddress()
1357 ipcp_UseHisIPaddr(struct bundle *bundle, struct in_addr hisaddr) in ipcp_UseHisIPaddr() argument
1364 ipcp->peer_ip = hisaddr; in ipcp_UseHisIPaddr()
1365 ncprange_setip4host(&ipcp->cfg.peer_range, hisaddr); in ipcp_UseHisIPaddr()
1368 return ipcp_SetIPaddress(ipcp, myaddr, hisaddr); in ipcp_UseHisIPaddr()
1372 ipcp_UseHisaddr(struct bundle *bundle, const char *hisaddr, int setaddr) in ipcp_UseHisaddr() argument
1382 if (strpbrk(hisaddr, ",-")) { in ipcp_UseHisaddr()
1383 iplist_setsrc(&ipcp->cfg.peer_list, hisaddr); in ipcp_UseHisaddr()
1393 log_Printf(LogWARN, "%s: Invalid range !\n", hisaddr); in ipcp_UseHisaddr()
[all …]
H A Dipv6cp.h50 struct ncpaddr hisaddr; /* Peer address */ member
H A Dcommand.c560 nargv[arg] = substipv6(nargv[arg], "HISADDR6", &bundle->ncp.ipv6cp.hisaddr); in command_Expand()
1568 const char *hisaddr; in SetInterfaceAddr() local
1573 hisaddr = NULL; in SetInterfaceAddr()
1584 hisaddr = arg->argv[arg->argn+1]; in SetInterfaceAddr()
1603 if (hisaddr && !ipcp_UseHisaddr(arg->bundle, hisaddr, in SetInterfaceAddr()
2572 if (!ncpaddr_getip6(&arg->bundle->ncp.ipv6cp.hisaddr, &host6)) in AddCommand()
2621 ncprange_sethost(&dest, &arg->bundle->ncp.ipv6cp.hisaddr); in DeleteCommand()
H A Dncpaddr.c921 range->ncprange_ip6addr = ncp->ipv6cp.hisaddr.ncpaddr_ip6addr; in ncprange_aton()
H A Dradius.c511 ncpaddr_copy(&gw, &bundle->ncp.ipv6cp.hisaddr); in radius_Process()
/freebsd/share/examples/ppp/
H A Dppp.conf.sample154 add! default hisaddr