/freebsd/crypto/openssh/ |
H A D | auth-rhosts.c | 59 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 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() 261 ret = match_host_and_ip(host, ipaddr, p); in match_user()
|
H A D | auth2-hostbased.c | 172 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/sys/netinet/ |
H A D | ip_options.c | 110 struct sockaddr_in ipaddr = { sizeof(ipaddr), AF_INET }; in ip_dooptions() local 169 ipaddr.sin_addr = ip->ip_dst; in ip_dooptions() 170 if (ifa_ifwithaddr_check((struct sockaddr *)&ipaddr) 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() 246 ia = (INA)ifa_ifwithnet((SA)&ipaddr, 0, in ip_dooptions() 255 nh = fib4_lookup(M_GETFIB(m), ipaddr.sin_addr, 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() [all …]
|
H A D | if_ether.h | 43 #define ETHER_MAP_IP_MULTICAST(ipaddr, enaddr) \ argument 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]; \
|
/freebsd/lib/libcasper/services/cap_net/tests/ |
H A D | net_test.c | 65 struct sockaddr_in ipaddr; in test_getnameinfo_v4() local 70 memset(&ipaddr, 0, sizeof(ipaddr)); in test_getnameinfo_v4() 71 ipaddr.sin_family = family; in test_getnameinfo_v4() 72 inet_pton(family, ip, &ipaddr.sin_addr); in test_getnameinfo_v4() 74 capret = cap_getnameinfo(chan, (struct sockaddr *)&ipaddr, sizeof(ipaddr), in test_getnameinfo_v4() 79 sysret = getnameinfo((struct sockaddr *)&ipaddr, sizeof(ipaddr), origfn, in test_getnameinfo_v4() 94 struct sockaddr_in6 ipaddr; in test_getnameinfo_v6() local 99 memset(&ipaddr, 0, sizeof(ipaddr)); in test_getnameinfo_v6() 100 ipaddr.sin6_family = AF_INET6; in test_getnameinfo_v6() 101 inet_pton(AF_INET6, ip, &ipaddr.sin6_addr); in test_getnameinfo_v6() [all …]
|
/freebsd/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/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/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/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/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/sbin/ipf/libipf/ |
H A D | load_hashnode.c | 57 char ipaddr[80], mask_msg[10], mask[8]; in load_hashnode() local 60 ipe.ipe_addr.vptr, ipaddr, in load_hashnode() 61 sizeof(ipaddr)); in load_hashnode() 77 …snprintf(msg, sizeof(msg), "%s node from lookup hash table(%s) node(%s%s)", what, name, ipaddr, ma… in load_hashnode()
|
H A D | load_poolnode.c | 56 char ipaddr[80], mask_msg[10], mask[8]; in load_poolnode() local 59 pn.ipn_addr.adf_addr.vptr, ipaddr, in load_poolnode() 60 sizeof(ipaddr)); in load_poolnode() 78 what, name, ipaddr, mask_msg); in load_poolnode()
|
/freebsd/usr.sbin/ppp/ |
H A D | defs.c | 134 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 D | ipcp.c | 524 struct ncpaddr ipaddr; in ipcp_Setup() local 538 ncpaddr_setip4(&ipaddr, iplist_setcurpos(&ipcp->cfg.peer_list, pos)); in ipcp_Setup() 544 ncpaddr_setip4(&ipaddr, iplist_setrandpos(&ipcp->cfg.peer_list)); in ipcp_Setup() 546 ncprange_sethost(&ipcp->cfg.peer_range, &ipaddr); in ipcp_Setup() 571 ncprange_getaddr(&iface->addr[n].ifa, &ipaddr); in ipcp_Setup() 572 if (ncprange_contains(&ipcp->cfg.my_range, &ipaddr)) { in ipcp_Setup() 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() 1079 log_Printf(LogIPCP, "%s %s\n", tbuff, inet_ntoa(ipaddr)); in IpcpDecodeConfig() [all …]
|
H A D | ncpaddr.h | 36 struct in_addr ipaddr; member 42 struct in6_addr ipaddr; member
|
H A D | arp.c | 224 * same subnet as ipaddr. 228 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/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/usr.sbin/bsdconfig/networking/share/ |
H A D | ipaddr.subr | 32 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 D | device.subr | 38 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/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/sbin/setkey/ |
H A D | parse.y | 137 %type <res> ipaddr 165 : ADD ipaddropts ipaddr ipaddr protocol_spec spi extension_spec algorithm_spec EOT 177 : DELETE ipaddropts ipaddr ipaddr protocol_spec spi extension_spec EOT 196 : DELETEALL ipaddropts ipaddr ipaddr protocol_spec EOT 208 : GET ipaddropts ipaddr ipaddr protocol_spec spi extension_spec EOT 532 | F_NATT ipaddr BLC [all...] |
/freebsd/stand/efi/libefi/ |
H A D | efinet.c | 210 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/contrib/unbound/ipset/ |
H A D | ipset.c | 86 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/contrib/wpa/src/common/ |
H A D | dpp_tcp.c | 62 struct hostapd_ip_addr ipaddr; member 152 os_memcpy(&ctrl->ipaddr, config->ipaddr, sizeof(*config->ipaddr)); in dpp_relay_add_controller() 159 hostapd_ip_txt(&ctrl->ipaddr, txt, sizeof(txt))); in dpp_relay_add_controller() 212 if (ctrl->ipaddr.af == AF_INET && in dpp_relay_controller_get_addr() 213 addr->sin_addr.s_addr == ctrl->ipaddr.u.v4.s_addr) in dpp_relay_controller_get_addr() 218 dpp->tmp_controller->ipaddr.af == AF_INET && in dpp_relay_controller_get_addr() 219 addr->sin_addr.s_addr == dpp->tmp_controller->ipaddr.u.v4.s_addr) 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() [all …]
|