Searched refs:ipaddr (Results 1 - 25 of 50) sorted by relevance

12

/freebsd-current/sys/netgraph/
H A Dng_cisco.h65 struct in_addr ipaddr; /* IP address */ member in struct:ng_cisco_ipaddr
71 { "ipaddr", &ng_parse_ipaddr_type }, \
/freebsd-current/usr.sbin/bsdconfig/networking/share/
H A DMakefile3 FILES= common.subr device.subr hostname.subr ipaddr.subr media.subr \
/freebsd-current/sys/netinet/
H A Dif_ether.h43 #define ETHER_MAP_IP_MULTICAST(ipaddr, enaddr) \
44 /* struct in_addr *ipaddr; */ \
50 (enaddr)[3] = ((const u_char *)ipaddr)[1] & 0x7f; \
51 (enaddr)[4] = ((const u_char *)ipaddr)[2]; \
52 (enaddr)[5] = ((const u_char *)ipaddr)[3]; \
H A Dip_options.c110 struct sockaddr_in ipaddr = { sizeof(ipaddr), AF_INET }; local
169 ipaddr.sin_addr = ip->ip_dst;
170 if (ifa_ifwithaddr_check((struct sockaddr *)&ipaddr)
234 (void)memcpy(&ipaddr.sin_addr, cp + off,
235 sizeof(ipaddr.sin_addr));
243 ia = (INA)ifa_ifwithdstaddr((SA)&ipaddr,
246 ia = (INA)ifa_ifwithnet((SA)&ipaddr, 0,
255 nh = fib4_lookup(M_GETFIB(m), ipaddr.sin_addr,
264 ip->ip_dst = ipaddr
[all...]
/freebsd-current/contrib/wpa/src/ap/
H A Ddhcp_snoop.c117 if (sta->ipaddr == b->your_ip)
120 if (sta->ipaddr != 0) {
123 ipaddr_str(be_to_host32(sta->ipaddr)));
125 (u8 *) &sta->ipaddr);
136 sta->ipaddr = b->your_ip;
H A Dap_drv_ops.h311 int version, const u8 *ipaddr,
317 return hapd->driver->br_add_ip_neigh(hapd->drv_priv, version, ipaddr,
322 u8 version, const u8 *ipaddr)
328 ipaddr);
310 hostapd_drv_br_add_ip_neigh(struct hostapd_data *hapd, int version, const u8 *ipaddr, int prefixlen, const u8 *addr) argument
321 hostapd_drv_br_delete_ip_neigh(struct hostapd_data *hapd, u8 version, const u8 *ipaddr) argument
/freebsd-current/crypto/openssh/
H A Dauth-rhosts.c59 const char *ipaddr, const char *client_user,
155 !innetgr(host + 1, ipaddr, NULL, NULL))
158 strcmp(host, ipaddr) != 0)
193 const char *ipaddr)
201 debug2_f("clientuser %s hostname %s ipaddr %s",
202 client_user, hostname, ipaddr);
243 if (check_rhosts_file(_PATH_RHOSTS_EQUIV, hostname, ipaddr,
246 "/etc/hosts.equiv.", hostname, ipaddr);
249 if (check_rhosts_file(_PATH_SSH_HOSTS_EQUIV, hostname, ipaddr,
252 "%.100s.", hostname, ipaddr, _PATH_SSH_HOSTS_EQUI
58 check_rhosts_file(const char *filename, const char *hostname, const char *ipaddr, const char *client_user, const char *server_user) argument
192 auth_rhosts2(struct passwd *pw, const char *client_user, const char *hostname, const char *ipaddr) argument
[all...]
H A Dauth2-hostbased.c172 const char *resolvedname, *ipaddr, *lookup, *reason; local
181 ipaddr = ssh_remote_ipaddr(ssh);
183 debug2_f("chost %s resolvedname %s ipaddr %s",
184 chost, resolvedname, ipaddr);
202 chost, ipaddr, resolvedname);
203 if (auth_rhosts2(pw, cuser, resolvedname, ipaddr) == 0) {
206 cuser, resolvedname, ipaddr);
H A Dmatch.c211 match_host_and_ip(const char *host, const char *ipaddr, argument
216 if ((mip = addr_match_list(ipaddr, patterns)) == -2)
217 return -1; /* error in ipaddr match */
218 else if (host == NULL || ipaddr == NULL || mip == -1)
232 * If user, host and ipaddr are all NULL then validate pattern/
236 match_user(const char *user, const char *host, const char *ipaddr, argument
243 if (user == NULL && host == NULL && ipaddr == NULL) {
261 ret = match_host_and_ip(host, ipaddr, p);
H A Dauth.c104 const char *hostname = NULL, *ipaddr = NULL; local
146 ipaddr = ssh_remote_ipaddr(ssh);
152 r = match_user(pw->pw_name, hostname, ipaddr,
168 r = match_user(pw->pw_name, hostname, ipaddr,
/freebsd-current/contrib/wpa/wpa_supplicant/examples/
H A Dp2p-action.sh44 ipaddr=`echo "$*" | sed 's/.* ip_addr=\([^ ]*\).*/\1/'`
47 if echo "$ipaddr$ipmask$goipaddr" | grep -q ' '; then
48 ipaddr=""
52 if [ -n "$ipaddr" ]; then
53 sudo ifconfig $GIFNAME "$ipaddr" netmask "$ipmask"
/freebsd-current/contrib/bsnmp/snmp_mibII/
H A DmibII_ipaddr.c227 u_char ipaddr[4]; local
247 if (index_decode(&value->var, sub, iidx, ipaddr))
251 idx.subs[0] = ipaddr[0];
252 idx.subs[1] = ipaddr[1];
253 idx.subs[2] = ipaddr[2];
254 idx.subs[3] = ipaddr[3];
260 upd->addr.s_addr = htonl((ipaddr[0] << 24) | (ipaddr[1] << 16) |
261 (ipaddr[2] << 8) | (ipaddr[
[all...]
/freebsd-current/usr.sbin/ppp/
H A Ddefs.c134 struct in_addr ipaddr; local
137 ipaddr.s_addr = INADDR_ANY;
138 else if (inet_aton(cp, &ipaddr) == 0) {
151 memcpy(&ipaddr, hp->h_addr, hp->h_length);
153 ipaddr.s_addr = INADDR_NONE;
155 ipaddr.s_addr = INADDR_NONE;
158 return ipaddr;
H A Dncpaddr.h36 struct in_addr ipaddr; member in struct:ncprange::__anon6762::__anon6763
42 struct in6_addr ipaddr; member in struct:ncprange::__anon6762::__anon6764
H A Dipcp.c524 struct ncpaddr ipaddr; local
538 ncpaddr_setip4(&ipaddr, iplist_setcurpos(&ipcp->cfg.peer_list, pos));
544 ncpaddr_setip4(&ipaddr, iplist_setrandpos(&ipcp->cfg.peer_list));
546 ncprange_sethost(&ipcp->cfg.peer_range, &ipaddr);
571 ncprange_getaddr(&iface->addr[n].ifa, &ipaddr);
572 if (ncprange_contains(&ipcp->cfg.my_range, &ipaddr)) {
573 ncpaddr_getip4(&ipaddr, &ipcp->my_ip);
1063 struct in_addr ipaddr, dstipaddr, have_ip; local
1078 memcpy(&ipaddr.s_addr, opt->data, 4);
1079 log_Printf(LogIPCP, "%s %s\n", tbuff, inet_ntoa(ipaddr));
[all...]
H A Darp.c224 * same subnet as ipaddr.
228 arp_EtherAddr(struct in_addr ipaddr, struct sockaddr_dl *hwaddr, argument
302 (ipaddr.s_addr & netmask->sin_addr.s_addr)) {
305 dl->sdl_data, inet_ntoa(ipaddr));
/freebsd-current/lib/libcasper/services/cap_net/tests/
H A Dnet_test.c65 struct sockaddr_in ipaddr; local
70 memset(&ipaddr, 0, sizeof(ipaddr));
71 ipaddr.sin_family = family;
72 inet_pton(family, ip, &ipaddr.sin_addr);
74 capret = cap_getnameinfo(chan, (struct sockaddr *)&ipaddr, sizeof(ipaddr),
79 sysret = getnameinfo((struct sockaddr *)&ipaddr, sizeof(ipaddr), origfn,
94 struct sockaddr_in6 ipaddr; local
134 struct in_addr ipaddr; local
156 struct in6_addr ipaddr; local
1288 struct in_addr ipaddr; local
[all...]
/freebsd-current/contrib/ldns/
H A Dupdate.c135 ldns_rdf *ipaddr, *fqdn_rdf, *tmp; local
202 ipaddr = ldns_rr_rdf(rr, 0);
210 if (ldns_rdf_compare(ipaddr, nslist[i]) == 0) {
221 (void) ldns_resolver_push_nameserver(tmp_r, ipaddr);
/freebsd-current/usr.sbin/bsdconfig/networking/
H A Ddevices44 f_include $BSDCFG_SHARE/networking/ipaddr.subr
/freebsd-current/sbin/setkey/
H A Dparse.y133 %type <res> ipaddr
161 : ADD ipaddropts ipaddr ipaddr protocol_spec spi extension_spec algorithm_spec EOT
173 : DELETE ipaddropts ipaddr ipaddr protocol_spec spi extension_spec EOT
192 : DELETEALL ipaddropts ipaddr ipaddr protocol_spec EOT
204 : GET ipaddropts ipaddr ipaddr protocol_spec spi extension_spec EOT
528 | F_NATT ipaddr BLC
[all...]
/freebsd-current/stand/efi/libefi/
H A Definet.c210 in_addr_t ipaddr, mask, gwaddr, serveraddr; local
219 envstr = getenv("ipaddr");
220 ipaddr = (envstr != NULL) ? inet_addr(envstr) : 0;
232 if (ipaddr == 0 && mask == 0 && gwaddr == 0 && serveraddr == 0)
236 if (ipaddr == 0 || mask == 0 || gwaddr == 0 || serveraddr == 0) {
244 myip.s_addr = ipaddr;
/freebsd-current/sbin/ipf/ippool/
H A Dippool_y.y88 %type <ipa> ipaddr mask
364 ipaddr '/' mask { $$[0] = $1;
369 | ipaddr { $$[0] = $1;
383 ipaddr: ipv4 { $$.adf_addr.in4 = $1; label
543 YY_STR ':' ipaddr { int size = sizeof(*$$) + strlen($1) + 1;
554 | ipaddr { $$ = calloc(1, sizeof(*$$));
/freebsd-current/sbin/ipf/ipscan/
H A Dipscan_y.y57 %type <ipa> ipaddr
162 IPSL_REDIRECT '(' ipaddr ')' { $$.act_ip = $3;
164 | IPSL_REDIRECT '(' ipaddr ',' portnum ')'
170 ipaddr: YY_NUMBER '.' YY_NUMBER '.' YY_NUMBER '.' YY_NUMBER label
/freebsd-current/usr.sbin/rarpd/
H A Drarpd.c707 update_arptab(u_char *ep, in_addr_t ipaddr) argument
728 ar->sin_addr.s_addr = ipaddr;
765 ll2->sdl_family, ipaddr);
842 rarp_reply(struct if_info *ii, struct ether_header *ep, in_addr_t ipaddr, argument
848 update_arptab((u_char *)&ap->arp_sha, ipaddr);
862 bcopy((char *)&ipaddr, (char *)ap->arp_tpa, 4);
875 intoa(ntohl(ipaddr)));
/freebsd-current/sbin/ipf/libipf/
H A Dsave_v1trap.c290 int msglen, u_32_t ipaddr, time_t when)
341 bcopy(&ipaddr, s, 4);
289 maketrap_v1(char *community, u_char *buffer, int bufsize, u_char *msg, int msglen, u_32_t ipaddr, time_t when) argument

Completed in 186 milliseconds

12