Home
last modified time | relevance | path

Searched refs:ipaddr (Results 1 – 25 of 66) sorted by relevance

123

/freebsd-14.2/crypto/openssh/
H A Dauth-rhosts.c59 const char *ipaddr, const char *client_user, in check_rhosts_file() argument
155 !innetgr(host + 1, ipaddr, NULL, NULL)) in check_rhosts_file()
158 strcmp(host, ipaddr) != 0) in check_rhosts_file()
193 const char *ipaddr) in auth_rhosts2() argument
202 client_user, hostname, ipaddr); in auth_rhosts2()
243 if (check_rhosts_file(_PATH_RHOSTS_EQUIV, hostname, ipaddr, in auth_rhosts2()
246 "/etc/hosts.equiv.", hostname, ipaddr); in auth_rhosts2()
249 if (check_rhosts_file(_PATH_SSH_HOSTS_EQUIV, hostname, ipaddr, in auth_rhosts2()
252 "%.100s.", hostname, ipaddr, _PATH_SSH_HOSTS_EQUIV); in auth_rhosts2()
320 if (check_rhosts_file(path, hostname, ipaddr, in auth_rhosts2()
[all …]
H A Dmatch.c211 match_host_and_ip(const char *host, const char *ipaddr, in match_host_and_ip() argument
216 if ((mip = addr_match_list(ipaddr, patterns)) == -2) in match_host_and_ip()
218 else if (host == NULL || ipaddr == NULL || mip == -1) in match_host_and_ip()
236 match_user(const char *user, const char *host, const char *ipaddr, in match_user() argument
243 if (user == NULL && host == NULL && ipaddr == NULL) { in match_user()
261 ret = match_host_and_ip(host, ipaddr, p); in match_user()
H A Dauth2-hostbased.c172 const char *resolvedname, *ipaddr, *lookup, *reason; in hostbased_key_allowed() local
181 ipaddr = ssh_remote_ipaddr(ssh); in hostbased_key_allowed()
184 chost, resolvedname, ipaddr); in hostbased_key_allowed()
202 chost, ipaddr, resolvedname); in hostbased_key_allowed()
203 if (auth_rhosts2(pw, cuser, resolvedname, ipaddr) == 0) { in hostbased_key_allowed()
206 cuser, resolvedname, ipaddr); in hostbased_key_allowed()
/freebsd-14.2/sys/netinet/
H A Dip_options.c110 struct sockaddr_in ipaddr = { sizeof(ipaddr), AF_INET }; in ip_dooptions() local
169 ipaddr.sin_addr = ip->ip_dst; in ip_dooptions()
234 (void)memcpy(&ipaddr.sin_addr, cp + off, in ip_dooptions()
235 sizeof(ipaddr.sin_addr)); in ip_dooptions()
243 ia = (INA)ifa_ifwithdstaddr((SA)&ipaddr, in ip_dooptions()
264 ip->ip_dst = ipaddr.sin_addr; in ip_dooptions()
291 (void)memcpy(&ipaddr.sin_addr, &ip->ip_dst, in ip_dooptions()
292 sizeof(ipaddr.sin_addr)); in ip_dooptions()
347 ipaddr.sin_addr = dst; in ip_dooptions()
348 ia = (INA)ifaof_ifpforaddr((SA)&ipaddr, in ip_dooptions()
[all …]
H A Dif_ether.h45 #define ETHER_MAP_IP_MULTICAST(ipaddr, enaddr) \ argument
52 (enaddr)[3] = ((const u_char *)ipaddr)[1] & 0x7f; \
53 (enaddr)[4] = ((const u_char *)ipaddr)[2]; \
54 (enaddr)[5] = ((const u_char *)ipaddr)[3]; \
/freebsd-14.2/lib/libcasper/services/cap_net/tests/
H A Dnet_test.c71 memset(&ipaddr, 0, sizeof(ipaddr)); in test_getnameinfo_v4()
80 sysret = getnameinfo((struct sockaddr *)&ipaddr, sizeof(ipaddr), origfn, in test_getnameinfo_v4()
100 memset(&ipaddr, 0, sizeof(ipaddr)); in test_getnameinfo_v6()
109 sysret = getnameinfo((struct sockaddr *)&ipaddr, sizeof(ipaddr), origfn, in test_getnameinfo_v6()
138 memset(&ipaddr, 0, sizeof(ipaddr)); in test_gethostbyaddr_v4()
141 caphp = cap_gethostbyaddr(chan, &ipaddr, sizeof(ipaddr), family); in test_gethostbyaddr_v4()
145 orighp = gethostbyaddr(&ipaddr, sizeof(ipaddr), family); in test_gethostbyaddr_v4()
160 memset(&ipaddr, 0, sizeof(ipaddr)); in test_gethostbyaddr_v6()
163 caphp = cap_gethostbyaddr(chan, &ipaddr, sizeof(ipaddr), AF_INET6); in test_gethostbyaddr_v6()
167 orighp = gethostbyaddr(&ipaddr, sizeof(ipaddr), AF_INET6); in test_gethostbyaddr_v6()
[all …]
/freebsd-14.2/contrib/bsnmp/snmp_mibII/
H A DmibII_ipaddr.c227 u_char ipaddr[4]; in op_ipaddr() local
247 if (index_decode(&value->var, sub, iidx, ipaddr)) in op_ipaddr()
251 idx.subs[0] = ipaddr[0]; in op_ipaddr()
252 idx.subs[1] = ipaddr[1]; in op_ipaddr()
253 idx.subs[2] = ipaddr[2]; in op_ipaddr()
254 idx.subs[3] = ipaddr[3]; in op_ipaddr()
260 upd->addr.s_addr = htonl((ipaddr[0] << 24) | (ipaddr[1] << 16) | in op_ipaddr()
261 (ipaddr[2] << 8) | (ipaddr[3] << 0)); in op_ipaddr()
/freebsd-14.2/sbin/ipf/iplang/
H A DBNF5 ifaceopts ::= "ifname" name | "mtu" mtu | "v4addr" ipaddr |
10 sendbody ::= "ifname" name | "via" ipaddr .
12 defrouter ::= "router" ipaddr .
16 arpbody ::= "v4addr" ipaddr | "eaddr" eaddr .
22 ipv4body ::= "proto" protocol | "src" ipaddr | "dst" ipaddr |
/freebsd-14.2/share/examples/ipfilter/rules/
H A Dftp-proxy25 map int-c ipaddr-a/32 -> ip-addr-c-net/32 proxy port ftp ftp/tcp
28 ipaddr-a = ip# of interface a
29 ipaddr-c-net = another ip# on the C-network (usually not the same as the
39 ipaddr-a = 10.1.1.1
41 ipaddr-c-net = 203.45.67.91
/freebsd-14.2/contrib/wpa/src/ap/
H A Ddhcp_snoop.c117 if (sta->ipaddr == b->your_ip) in handle_dhcp()
120 if (sta->ipaddr != 0) { in handle_dhcp()
123 ipaddr_str(be_to_host32(sta->ipaddr))); in handle_dhcp()
125 (u8 *) &sta->ipaddr); in handle_dhcp()
136 sta->ipaddr = b->your_ip; in handle_dhcp()
/freebsd-14.2/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-14.2/usr.sbin/ppp/
H A Ddefs.c134 struct in_addr ipaddr; in GetIpAddr() local
137 ipaddr.s_addr = INADDR_ANY; in GetIpAddr()
138 else if (inet_aton(cp, &ipaddr) == 0) { in GetIpAddr()
151 memcpy(&ipaddr, hp->h_addr, hp->h_length); in GetIpAddr()
153 ipaddr.s_addr = INADDR_NONE; in GetIpAddr()
155 ipaddr.s_addr = INADDR_NONE; in GetIpAddr()
158 return ipaddr; in GetIpAddr()
H A Dipcp.c524 struct ncpaddr ipaddr; in ipcp_Setup() local
573 ncpaddr_getip4(&ipaddr, &ipcp->my_ip); in ipcp_Setup()
1063 struct in_addr ipaddr, dstipaddr, have_ip; in IpcpDecodeConfig() local
1078 memcpy(&ipaddr.s_addr, opt->data, 4); in IpcpDecodeConfig()
1084 ipcp_ValidateReq(ipcp, ipaddr, dec); in IpcpDecodeConfig()
1093 ipcp->my_ip = ipaddr; in IpcpDecodeConfig()
1192 memcpy(&ipaddr.s_addr, opt->data, 4); in IpcpDecodeConfig()
1210 memcpy(&ipaddr.s_addr, opt->data, 4); in IpcpDecodeConfig()
1264 memcpy(&ipaddr.s_addr, opt->data, 4); in IpcpDecodeConfig()
1333 ipaddr.s_addr = INADDR_ANY; in IpcpDecodeConfig()
[all …]
H A Dncpaddr.h36 struct in_addr ipaddr; member
42 struct in6_addr ipaddr; member
H A Darp.c228 arp_EtherAddr(struct in_addr ipaddr, struct sockaddr_dl *hwaddr, in arp_EtherAddr() argument
302 (ipaddr.s_addr & netmask->sin_addr.s_addr)) { in arp_EtherAddr()
305 dl->sdl_data, inet_ntoa(ipaddr)); in arp_EtherAddr()
/freebsd-14.2/share/examples/ipfilter/
H A DBNF21 dup = "dup-to" interface-name[":"ipaddr] .
23 replyto = "reply-to" interface-name [ ":" ipaddr ] .
31 addr = "any" | nummask | host-name [ "mask" ipaddr | "mask" hexnumber ] .
41 host-name = ipaddr | hostname | "any" .
42 ipaddr = host-num "." host-num "." host-num "." host-num .
/freebsd-14.2/usr.sbin/bsdconfig/networking/share/
H A Dipaddr.subr32 f_dprintf "%s: loading includes..." networking/ipaddr.subr
42 # f_dialog_iperror $error $ipaddr
61 # f_dialog_validate_ipaddr $ipaddr
125 # f_dialog_input_ipaddr $interface $ipaddr
128 # press ESC, the $ipaddr environment variable will hold the newly-configured
208 ipaddr="$_ipaddr"
216 f_dprintf "%s: Successfully loaded." networking/ipaddr.subr
H A Ddevice.subr38 f_include $BSDCFG_SHARE/networking/ipaddr.subr
161 # f_dialog_menu_netdev_edit $interface $ipaddr $netmask $options $dhcp
169 local interface="$1" ipaddr="$2" netmask="$3" options="$4" dhcp="$5"
221 '3 $msg_ipaddr4' '$ipaddr'
263 # to the ipaddr, netmask, and options variables for us to re-
310 f_ifconfig_inet "$interface" ipaddr
322 3\ *) f_dialog_input_ipaddr "$interface" "$ipaddr"
334 if [ "$ipaddr" != "$ipaddr_orig" -o \
347 value="inet $ipaddr netmask $netmask"
381 "$interface" "$ipaddr" "$netmask" "$options"
/freebsd-14.2/contrib/ldns/
H A Dupdate.c135 ldns_rdf *ipaddr, *fqdn_rdf, *tmp; in ldns_update_soa_zone_mname() local
202 ipaddr = ldns_rr_rdf(rr, 0); in ldns_update_soa_zone_mname()
210 if (ldns_rdf_compare(ipaddr, nslist[i]) == 0) { in ldns_update_soa_zone_mname()
221 (void) ldns_resolver_push_nameserver(tmp_r, ipaddr); in ldns_update_soa_zone_mname()
/freebsd-14.2/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 BLCL DECSTRING ELCL ipaddr BLCL DECSTRING ELCL
676 ipaddr
/freebsd-14.2/contrib/unbound/ipset/
H A Dipset.c86 static int add_to_ipset(filter_dev dev, const char *setname, const void *ipaddr, int af) { in add_to_ipset() argument
122 addr.pfra_ip4addr = *(struct in_addr *)ipaddr; in add_to_ipset()
126 addr.pfra_ip6addr = *(struct in6_addr *)ipaddr; in add_to_ipset()
142 static int add_to_ipset(filter_dev dev, const char *setname, const void *ipaddr, int af) { in add_to_ipset() argument
171 …| NLA_F_NET_BYTEORDER, (af == AF_INET ? sizeof(struct in_addr) : sizeof(struct in6_addr)), ipaddr); in add_to_ipset()
/freebsd-14.2/stand/efi/libefi/
H A Definet.c210 in_addr_t ipaddr, mask, gwaddr, serveraddr; in efi_env_net_params() local
220 ipaddr = (envstr != NULL) ? inet_addr(envstr) : 0; in efi_env_net_params()
232 if (ipaddr == 0 && mask == 0 && gwaddr == 0 && serveraddr == 0) in efi_env_net_params()
236 if (ipaddr == 0 || mask == 0 || gwaddr == 0 || serveraddr == 0) { in efi_env_net_params()
244 myip.s_addr = ipaddr; in efi_env_net_params()
/freebsd-14.2/contrib/wpa/src/common/
H A Ddpp_tcp.c62 struct hostapd_ip_addr ipaddr; member
152 os_memcpy(&ctrl->ipaddr, config->ipaddr, sizeof(*config->ipaddr)); in dpp_relay_add_controller()
212 if (ctrl->ipaddr.af == AF_INET && in dpp_relay_controller_get_addr()
218 dpp->tmp_controller->ipaddr.af == AF_INET && in dpp_relay_controller_get_addr()
402 const struct hostapd_ip_addr *ipaddr, in dpp_ipaddr_to_sockaddr() argument
410 switch (ipaddr->af) { in dpp_ipaddr_to_sockaddr()
415 dst->sin_addr.s_addr = ipaddr->u.v4.s_addr; in dpp_ipaddr_to_sockaddr()
424 os_memcpy(&dst6->sin6_addr, &ipaddr->u.v6, in dpp_ipaddr_to_sockaddr()
464 &ctrl->ipaddr, DPP_TCP_PORT) < 0) in dpp_relay_new_conn()
2405 if (hostapd_ip_equal(&ctrl->ipaddr, addr)) { in dpp_relay_remove_controller()
[all …]
/freebsd-14.2/usr.sbin/rarpd/
H A Drarpd.c715 update_arptab(u_char *ep, in_addr_t ipaddr) in update_arptab() argument
736 ar->sin_addr.s_addr = ipaddr; in update_arptab()
773 ll2->sdl_family, ipaddr); in update_arptab()
850 rarp_reply(struct if_info *ii, struct ether_header *ep, in_addr_t ipaddr, in rarp_reply() argument
856 update_arptab((u_char *)&ap->arp_sha, ipaddr); in rarp_reply()
870 bcopy((char *)&ipaddr, (char *)ap->arp_tpa, 4); in rarp_reply()
883 intoa(ntohl(ipaddr))); in rarp_reply()
/freebsd-14.2/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;
543 YY_STR ':' ipaddr { int size = sizeof(*$$) + strlen($1) + 1;
554 | ipaddr { $$ = calloc(1, sizeof(*$$));

123