| /netbsd/src/crypto/external/bsd/openssh/dist/ |
| D | auth-rhosts.c | 58 const char *ipaddr, const char *client_user, in check_rhosts_file() argument 154 !innetgr(host + 1, ipaddr, NULL, NULL)) in check_rhosts_file() 157 strcmp(host, ipaddr) != 0) in check_rhosts_file() 192 const char *ipaddr) in auth_rhosts2() argument 201 client_user, hostname, ipaddr); in auth_rhosts2() 242 if (check_rhosts_file(_PATH_RHOSTS_EQUIV, hostname, ipaddr, in auth_rhosts2() 245 "/etc/hosts.equiv.", hostname, ipaddr); in auth_rhosts2() 248 if (check_rhosts_file(_PATH_SSH_HOSTS_EQUIV, hostname, ipaddr, in auth_rhosts2() 251 "%.100s.", hostname, ipaddr, _PATH_SSH_HOSTS_EQUIV); in auth_rhosts2() 319 if (check_rhosts_file(path, hostname, ipaddr, in auth_rhosts2() [all …]
|
| D | match.c | 208 match_host_and_ip(const char *host, const char *ipaddr, in match_host_and_ip() argument 213 if ((mip = addr_match_list(ipaddr, patterns)) == -2) in match_host_and_ip() 215 else if (host == NULL || ipaddr == NULL || mip == -1) in match_host_and_ip() 233 match_user(const char *user, const char *host, const char *ipaddr, in match_user() argument 240 if (user == NULL && host == NULL && ipaddr == NULL) { in match_user() 258 ret = match_host_and_ip(host, ipaddr, p); in match_user()
|
| D | auth2-hostbased.c | 175 const char *resolvedname, *ipaddr, *lookup, *reason; in hostbased_key_allowed() local 184 ipaddr = ssh_remote_ipaddr(ssh); in hostbased_key_allowed() 187 chost, resolvedname, ipaddr); in hostbased_key_allowed() 205 chost, ipaddr, resolvedname); in hostbased_key_allowed() 206 if (auth_rhosts2(pw, cuser, resolvedname, ipaddr) == 0) { in hostbased_key_allowed() 209 cuser, resolvedname, ipaddr); in hostbased_key_allowed()
|
| D | auth.c | 103 const char *hostname = NULL, *ipaddr = NULL; in allowed_user() local 113 ipaddr = ssh_remote_ipaddr(ssh); in allowed_user() 125 match_ip = match_hostname(ipaddr, hp); in allowed_user() 154 match_ip = match_hostname(ipaddr, hp); in allowed_user() 253 ipaddr = ssh_remote_ipaddr(ssh); in allowed_user() 259 r = match_user(pw->pw_name, hostname, ipaddr, in allowed_user() 275 r = match_user(pw->pw_name, hostname, ipaddr, in allowed_user()
|
| /netbsd/src/external/bsd/ipf/dist/iplang/ |
| 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 |
|
| /netbsd/src/external/bsd/ipf/dist/rules/ |
| 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
|
| /netbsd/src/external/bsd/wpa/dist/wpa_supplicant/examples/ |
| 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"
|
| /netbsd/src/external/bsd/wpa/dist/src/ap/ |
| 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()
|
| D | ap_drv_ops.h | 342 int version, const u8 *ipaddr, in hostapd_drv_br_add_ip_neigh() argument 348 return hapd->driver->br_add_ip_neigh(hapd->drv_priv, version, ipaddr, in hostapd_drv_br_add_ip_neigh() 353 u8 version, const u8 *ipaddr) in hostapd_drv_br_delete_ip_neigh() argument 359 ipaddr); in hostapd_drv_br_delete_ip_neigh()
|
| D | accounting.c | 135 if (sta->ipaddr && in accounting_msg() 138 be_to_host32(sta->ipaddr))) { in accounting_msg()
|
| D | dpp_hostapd.c | 375 const struct hostapd_ip_addr *ipaddr, in hostapd_dpp_pkex_init() argument 393 if (ipaddr) { in hostapd_dpp_pkex_init() 396 ipaddr, tcp_port, in hostapd_dpp_pkex_init() 842 struct hostapd_ip_addr ipaddr; in hostapd_dpp_auth_init() local 873 os_memcpy(&ipaddr, peer_bi->host, sizeof(ipaddr)); in hostapd_dpp_auth_init() 878 res = hostapd_parse_ip_addr(addr, &ipaddr); in hostapd_dpp_auth_init() 959 &ipaddr, tcp_port, hapd->conf->dpp_name, in hostapd_dpp_auth_init() 3223 struct hostapd_ip_addr *ipaddr = NULL; in hostapd_dpp_pkex_add() local 3242 ipaddr = &ipaddr_buf; in hostapd_dpp_pkex_add() 3304 if (hostapd_dpp_pkex_init(hapd, ver, ipaddr, tcp_port) < 0) in hostapd_dpp_pkex_add() [all …]
|
| /netbsd/src/sys/netinet/ |
| D | ip_input.c | 906 struct sockaddr_in ipaddr = { in ip_dooptions() local 907 .sin_len = sizeof(ipaddr), in ip_dooptions() 928 ipaddr.sin_addr = ip->ip_dst; in ip_dooptions() 931 ifa = ifa_ifwithaddr(sintosa(&ipaddr)); in ip_dooptions() 958 memcpy((void *)&ipaddr.sin_addr, (void *)(cp + off), in ip_dooptions() 959 sizeof(ipaddr.sin_addr)); in ip_dooptions() 961 ifa = ifa_ifwithladdr_psref(sintosa(&ipaddr), in ip_dooptions() 968 ia = ip_rtaddr(ipaddr.sin_addr, &psref); in ip_dooptions() 975 ip->ip_dst = ipaddr.sin_addr; in ip_dooptions() 989 struct sockaddr_in ipaddr = { in ip_dooptions() local [all …]
|
| /netbsd/src/external/bsd/ipf/dist/ |
| 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 .
|
| /netbsd/src/usr.sbin/rarpd/ |
| D | rarpd.c | 190 init_one(char *ifname, u_int32_t ipaddr) in init_one() argument 227 p->ii_ipaddr = ipaddr; in init_one() 714 update_arptab(u_char *ep, u_int32_t ipaddr) argument 722 sin->sin_addr.s_addr = ipaddr; 774 rarp_reply(struct if_info *ii, struct ether_header *ep, u_int32_t ipaddr, argument 787 (void)mkarp((u_int8_t *)ar_sha(ap), ipaddr); 789 update_arptab((u_char *) & ap->arp_sha, ipaddr); 808 memmove(ar_tpa(ap), (char *) &ipaddr, 4); 823 memmove((char *) ap->arp_tpa, (char *) &ipaddr, 4);
|
| D | mkarp.c | 114 mkarp(u_char *haddr, u_int32_t ipaddr) in mkarp() argument 145 sin->sin_addr.s_addr = ipaddr; in mkarp()
|
| /netbsd/src/external/bsd/ipf/dist/tools/ |
| 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 .
|
| D | ippool_y.y | 94 %type <ipa> ipaddr mask 354 ipaddr '/' mask { $$[0] = $1; 359 | ipaddr { $$[0] = $1; 373 ipaddr: ipv4 { $$.adf_addr.in4 = $1; 533 YY_STR ':' ipaddr { int size = sizeof(*$$) + strlen($1) + 1; 544 | ipaddr { $$ = calloc(1, sizeof(*$$));
|
| 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
|
| D | BNF.ipnat | 18 addr = "any" | nummask | host-name [ "mask" ipaddr | "mask" hexnumber ] .
|
| D | ipf_y.y | 114 %type <ipp> addr ipaddr 1021 | ipaddr { $$ = $1; 1025 ipaddr: IPFY_ANY { memset(&($$), 0, sizeof($$)); 1189 ipaddr { $$ = newalist(NULL); 1194 | ipaddr ',' { yyexpectaddr = 1; } addrlist 1209 ipaddr { $$ = newalist(NULL); 1214 | '!' ipaddr { $$ = newalist(NULL); 1220 | poollist ',' ipaddr 1226 | poollist ',' '!' ipaddr
|
| /netbsd/src/sys/net/ |
| D | if_ether.h | 132 #define ETHER_MAP_IP_MULTICAST(ipaddr, enaddr) \ argument 139 (enaddr)[3] = ((const uint8_t *)ipaddr)[1] & 0x7f; \ 140 (enaddr)[4] = ((const uint8_t *)ipaddr)[2]; \ 141 (enaddr)[5] = ((const uint8_t *)ipaddr)[3]; \
|
| /netbsd/src/external/bsd/wpa/dist/src/common/ |
| 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 …]
|
| /netbsd/src/external/bsd/libbind/dist/irs/ |
| D | irp.c | 160 long ipaddr; in irs_irp_connect() local 193 if (inet_pton(AF_INET, irphost, &ipaddr) != 1) { in irs_irp_connect() 206 iaddr.sin_addr.s_addr = ipaddr; in irs_irp_connect()
|
| /netbsd/src/external/bsd/ipf/dist/lib/ |
| D | save_v1trap.c | 301 maketrap_v1(community, buffer, bufsize, msg, msglen, ipaddr, when) in maketrap_v1() argument 307 u_32_t ipaddr; 359 bcopy(&ipaddr, s, 4);
|
| /netbsd/src/usr.sbin/arp/ |
| D | arp.c | 807 getetheraddr(struct in_addr ipaddr, struct sockaddr_dl *sdl) in getetheraddr() argument 828 if ((ipaddr.s_addr & mask) != (ina & mask)) in getetheraddr() 834 warnx("No interface matched %s", inet_ntoa(ipaddr)); in getetheraddr()
|