| /freebsd-13.1/crypto/openssh/ |
| H A D | auth-rhosts.c | 56 const char *ipaddr, const char *client_user, in check_rhosts_file() argument 152 !innetgr(host + 1, ipaddr, NULL, NULL)) in check_rhosts_file() 155 strcmp(host, ipaddr) != 0) in check_rhosts_file() 190 const char *ipaddr) in auth_rhosts2() argument 198 client_user, hostname, ipaddr); in auth_rhosts2() 237 if (check_rhosts_file(_PATH_RHOSTS_EQUIV, hostname, ipaddr, in auth_rhosts2() 240 "/etc/hosts.equiv.", hostname, ipaddr); in auth_rhosts2() 243 if (check_rhosts_file(_PATH_SSH_HOSTS_EQUIV, hostname, ipaddr, in auth_rhosts2() 246 "%.100s.", hostname, ipaddr, _PATH_SSH_HOSTS_EQUIV); in auth_rhosts2() 309 if (check_rhosts_file(buf, hostname, ipaddr, in auth_rhosts2() [all …]
|
| H A D | match.c | 211 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() 258 ret = match_host_and_ip(host, ipaddr, p); in match_user()
|
| H A D | auth2-hostbased.c | 174 const char *resolvedname, *ipaddr, *lookup, *reason; in hostbased_key_allowed() local 183 ipaddr = ssh_remote_ipaddr(ssh); in hostbased_key_allowed() 186 chost, resolvedname, ipaddr); in hostbased_key_allowed() 204 chost, ipaddr, resolvedname); in hostbased_key_allowed() 205 if (auth_rhosts2(pw, cuser, resolvedname, ipaddr) == 0) { in hostbased_key_allowed() 208 cuser, resolvedname, ipaddr); in hostbased_key_allowed()
|
| /freebsd-13.1/lib/libcasper/services/cap_net/tests/ |
| H A D | net_test.c | 71 memset(&ipaddr, 0, sizeof(ipaddr)); in test_getnameinfo_v4() 81 ret = getnameinfo((struct sockaddr *)&ipaddr, sizeof(ipaddr), origfn, in test_getnameinfo_v4() 97 memset(&ipaddr, 0, sizeof(ipaddr)); in test_getnameinfo_v6() 107 ret = getnameinfo((struct sockaddr *)&ipaddr, sizeof(ipaddr), origfn, in test_getnameinfo_v6() 132 memset(&ipaddr, 0, sizeof(ipaddr)); in test_gethostbyaddr_v4() 135 caphp = cap_gethostbyaddr(chan, &ipaddr, sizeof(ipaddr), family); in test_gethostbyaddr_v4() 140 orighp = gethostbyaddr(&ipaddr, sizeof(ipaddr), family); in test_gethostbyaddr_v4() 153 memset(&ipaddr, 0, sizeof(ipaddr)); in test_gethostbyaddr_v6() 156 caphp = cap_gethostbyaddr(chan, &ipaddr, sizeof(ipaddr), AF_INET6); in test_gethostbyaddr_v6() 160 orighp = gethostbyaddr(&ipaddr, sizeof(ipaddr), AF_INET6); in test_gethostbyaddr_v6() [all …]
|
| /freebsd-13.1/sys/netinet/ |
| H A D | ip_options.c | 112 struct sockaddr_in ipaddr = { sizeof(ipaddr), AF_INET }; in ip_dooptions() local 171 ipaddr.sin_addr = ip->ip_dst; in ip_dooptions() 236 (void)memcpy(&ipaddr.sin_addr, cp + off, in ip_dooptions() 237 sizeof(ipaddr.sin_addr)); in ip_dooptions() 245 ia = (INA)ifa_ifwithdstaddr((SA)&ipaddr, in ip_dooptions() 266 ip->ip_dst = ipaddr.sin_addr; in ip_dooptions() 293 (void)memcpy(&ipaddr.sin_addr, &ip->ip_dst, in ip_dooptions() 294 sizeof(ipaddr.sin_addr)); in ip_dooptions() 349 ipaddr.sin_addr = dst; in ip_dooptions() 350 ia = (INA)ifaof_ifpforaddr((SA)&ipaddr, in ip_dooptions() [all …]
|
| H A D | if_ether.h | 46 #define ETHER_MAP_IP_MULTICAST(ipaddr, enaddr) \ argument 53 (enaddr)[3] = ((const u_char *)ipaddr)[1] & 0x7f; \ 54 (enaddr)[4] = ((const u_char *)ipaddr)[2]; \ 55 (enaddr)[5] = ((const u_char *)ipaddr)[3]; \
|
| /freebsd-13.1/contrib/bsnmp/snmp_mibII/ |
| H A D | mibII_ipaddr.c | 227 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-13.1/sbin/ipf/iplang/ |
| H A D | BNF | 5 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-13.1/share/examples/ipfilter/rules/ |
| H A D | ftp-proxy | 25 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-13.1/contrib/wpa/src/ap/ |
| H A D | dhcp_snoop.c | 117 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-13.1/contrib/wpa/wpa_supplicant/examples/ |
| H A D | p2p-action.sh | 44 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-13.1/usr.sbin/ppp/ |
| H A D | defs.c | 136 struct in_addr ipaddr; in GetIpAddr() local 139 ipaddr.s_addr = INADDR_ANY; in GetIpAddr() 140 else if (inet_aton(cp, &ipaddr) == 0) { in GetIpAddr() 153 memcpy(&ipaddr, hp->h_addr, hp->h_length); in GetIpAddr() 155 ipaddr.s_addr = INADDR_NONE; in GetIpAddr() 157 ipaddr.s_addr = INADDR_NONE; in GetIpAddr() 160 return ipaddr; in GetIpAddr()
|
| H A D | ipcp.c | 526 struct ncpaddr ipaddr; in ipcp_Setup() local 575 ncpaddr_getip4(&ipaddr, &ipcp->my_ip); in ipcp_Setup() 1065 struct in_addr ipaddr, dstipaddr, have_ip; in IpcpDecodeConfig() local 1080 memcpy(&ipaddr.s_addr, opt->data, 4); in IpcpDecodeConfig() 1086 ipcp_ValidateReq(ipcp, ipaddr, dec); in IpcpDecodeConfig() 1095 ipcp->my_ip = ipaddr; in IpcpDecodeConfig() 1194 memcpy(&ipaddr.s_addr, opt->data, 4); in IpcpDecodeConfig() 1212 memcpy(&ipaddr.s_addr, opt->data, 4); in IpcpDecodeConfig() 1266 memcpy(&ipaddr.s_addr, opt->data, 4); in IpcpDecodeConfig() 1335 ipaddr.s_addr = INADDR_ANY; in IpcpDecodeConfig() [all …]
|
| H A D | ncpaddr.h | 38 struct in_addr ipaddr; member 44 struct in6_addr ipaddr; member
|
| H A D | arp.c | 230 arp_EtherAddr(struct in_addr ipaddr, struct sockaddr_dl *hwaddr, in arp_EtherAddr() argument 304 (ipaddr.s_addr & netmask->sin_addr.s_addr)) { in arp_EtherAddr() 307 dl->sdl_data, inet_ntoa(ipaddr)); in arp_EtherAddr()
|
| /freebsd-13.1/share/examples/ipfilter/ |
| H A D | BNF | 21 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-13.1/usr.sbin/bsdconfig/networking/share/ |
| H A D | ipaddr.subr | 33 f_dprintf "%s: loading includes..." networking/ipaddr.subr 43 # f_dialog_iperror $error $ipaddr 62 # f_dialog_validate_ipaddr $ipaddr 126 # f_dialog_input_ipaddr $interface $ipaddr 129 # press ESC, the $ipaddr environment variable will hold the newly-configured 209 ipaddr="$_ipaddr" 217 f_dprintf "%s: Successfully loaded." networking/ipaddr.subr
|
| H A D | device.subr | 39 f_include $BSDCFG_SHARE/networking/ipaddr.subr 162 # f_dialog_menu_netdev_edit $interface $ipaddr $netmask $options $dhcp 170 local interface="$1" ipaddr="$2" netmask="$3" options="$4" dhcp="$5" 222 '3 $msg_ipaddr4' '$ipaddr' 264 # to the ipaddr, netmask, and options variables for us to re- 311 f_ifconfig_inet "$interface" ipaddr 323 3\ *) f_dialog_input_ipaddr "$interface" "$ipaddr" 335 if [ "$ipaddr" != "$ipaddr_orig" -o \ 348 value="inet $ipaddr netmask $netmask" 382 "$interface" "$ipaddr" "$netmask" "$options"
|
| /freebsd-13.1/contrib/ipfilter/tools/ |
| H A D | BNF.ipf | 21 dup = "dup-to" interface-name[":"ipaddr] . 30 addr = "any" | nummask | host-name [ "mask" ipaddr | "mask" hexnumber ] . 40 host-name = ipaddr | hostname | "any" . 41 ipaddr = host-num "." host-num "." host-num "." host-num .
|
| /freebsd-13.1/contrib/ldns/ |
| H A D | update.c | 135 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-13.1/sbin/setkey/ |
| H A D | parse.y | 129 %type <res> ipaddr 157 : ADD ipaddropts ipaddr ipaddr protocol_spec spi extension_spec algorithm_spec EOT 169 : DELETE ipaddropts ipaddr ipaddr protocol_spec spi extension_spec EOT 188 : DELETEALL ipaddropts ipaddr ipaddr protocol_spec EOT 200 : GET ipaddropts ipaddr ipaddr protocol_spec spi extension_spec EOT 658 ipaddr
|
| /freebsd-13.1/stand/efi/libefi/ |
| H A D | efinet.c | 213 in_addr_t ipaddr, mask, gwaddr, serveraddr; in efi_env_net_params() local 223 ipaddr = (envstr != NULL) ? inet_addr(envstr) : 0; in efi_env_net_params() 235 if (ipaddr == 0 && mask == 0 && gwaddr == 0 && serveraddr == 0) in efi_env_net_params() 239 if (ipaddr == 0 || mask == 0 || gwaddr == 0 || serveraddr == 0) { in efi_env_net_params() 247 myip.s_addr = ipaddr; in efi_env_net_params()
|
| /freebsd-13.1/usr.sbin/rarpd/ |
| H A D | rarpd.c | 717 update_arptab(u_char *ep, in_addr_t ipaddr) in update_arptab() argument 738 ar->sin_addr.s_addr = ipaddr; in update_arptab() 775 ll2->sdl_family, ipaddr); in update_arptab() 852 rarp_reply(struct if_info *ii, struct ether_header *ep, in_addr_t ipaddr, in rarp_reply() argument 858 update_arptab((u_char *)&ap->arp_sha, ipaddr); in rarp_reply() 872 bcopy((char *)&ipaddr, (char *)ap->arp_tpa, 4); in rarp_reply() 885 intoa(ntohl(ipaddr))); in rarp_reply()
|
| /freebsd-13.1/sbin/ipf/ippool/ |
| H A D | ippool_y.y | 89 %type <ipa> ipaddr mask 365 ipaddr '/' mask { $$[0] = $1; 370 | ipaddr { $$[0] = $1; 384 ipaddr: ipv4 { $$.adf_addr.in4 = $1; 544 YY_STR ':' ipaddr { int size = sizeof(*$$) + strlen($1) + 1; 555 | ipaddr { $$ = calloc(1, sizeof(*$$));
|
| /freebsd-13.1/sbin/ipf/ipscan/ |
| H A D | ipscan_y.y | 58 %type <ipa> ipaddr 163 IPSL_REDIRECT '(' ipaddr ')' { $$.act_ip = $3; 165 | IPSL_REDIRECT '(' ipaddr ',' portnum ')' 171 ipaddr: YY_NUMBER '.' YY_NUMBER '.' YY_NUMBER '.' YY_NUMBER
|