Home | History | Annotate | Download | only in src

Lines Matching defs:ip

34 #include <netinet/ip.h>
76 #include "ip.h"
143 { 1, "IPADDRS" }, /* IP-Addresses */ /* deprecated */
144 { 2, "COMPPROTO" }, /* IP-Compression-Protocol */
145 { 3, "IPADDR" }, /* IP-Address */
245 for (ncp = cp; isip(*ncp); ncp++) /* Jump over IP */
528 /* Try to give the peer a previously configured IP address */
560 * Otherwise, if we've used an IP number before and it's still within
562 * want to keep that IP number so that we can keep any existing
563 * connections that are bound to that IP.
620 struct in_addr peer, mask, ip;
637 ip.s_addr = peer.s_addr & mask.s_addr;
639 ip.s_addr = htonl(ntohl(ip.s_addr) + 1);
643 if (!((ip.s_addr ^ peer.s_addr) & mask.s_addr)) {
644 if (!(ret = (*proxyfun)(bundle, ip)))
648 ip.s_addr = htonl(ntohl(ip.s_addr) + 1);
718 log_Printf(LogIPCP, "Selected IP address %s\n", inet_ntoa(try));
906 log_Printf(LogERROR, "ipcp_InterfaceUp: unable to set ip address\n");
973 ipcp_ValidateReq(struct ipcp *ipcp, struct in_addr ip, struct fsm_decode *dec)
982 if (ip.s_addr == INADDR_ANY ||
983 iplist_ip2pos(&ipcp->cfg.peer_list, ip) < 0 ||
984 !ipcp_SetIPaddress(ipcp, myaddr, ip)) {
986 inet_ntoa(ip));
1002 /* Just pick an IP number from our list */
1009 memcpy(dec->rejend, &ip.s_addr, 4);
1019 } else if (ip.s_addr == INADDR_ANY ||
1020 !ncprange_containsip4(&ipcp->cfg.peer_range, ip)) {
1041 ipcp->peer_ip = ip;
1044 memcpy(dec->ackend, &ip.s_addr, 4);
1320 * Pretend the peer has requested an IP.
1324 * the peer that we have to have an IP address on their end.