Home
last modified time | relevance | path

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

12345

/titanic_41/usr/src/lib/libipadm/common/
H A Dipadm_addr.c131 i_ipadm_init_addr(ipadm_addrobj_t ipaddr, const char *ifname, in i_ipadm_init_addr() argument
134 bzero(ipaddr, sizeof (struct ipadm_addrobj_s)); in i_ipadm_init_addr()
135 (void) strlcpy(ipaddr->ipadm_ifname, ifname, in i_ipadm_init_addr()
136 sizeof (ipaddr->ipadm_ifname)); in i_ipadm_init_addr()
137 (void) strlcpy(ipaddr->ipadm_aobjname, aobjname, in i_ipadm_init_addr()
138 sizeof (ipaddr->ipadm_aobjname)); in i_ipadm_init_addr()
139 ipaddr->ipadm_atype = atype; in i_ipadm_init_addr()
182 i_ipadm_get_addrobj(ipadm_handle_t iph, ipadm_addrobj_t ipaddr) in i_ipadm_get_addrobj() argument
190 (void) strlcpy(larg.ia_aobjname, ipaddr->ipadm_aobjname, in i_ipadm_get_addrobj()
198 (void) strlcpy(ipaddr->ipadm_ifname, rval.ir_ifname, in i_ipadm_get_addrobj()
[all …]
H A Dipadm_persist.c348 i_ipadm_add_ipaddr2nvl(nvlist_t *nvl, ipadm_addrobj_t ipaddr) in i_ipadm_add_ipaddr2nvl() argument
353 sa_family_t af = ipaddr->ipadm_af; in i_ipadm_add_ipaddr2nvl()
373 ipaddr->ipadm_static_aname)) != 0) in i_ipadm_add_ipaddr2nvl()
375 if (ipaddr->ipadm_static_dname[0] != '\0') { in i_ipadm_add_ipaddr2nvl()
377 ipaddr->ipadm_static_dname)) != 0) in i_ipadm_add_ipaddr2nvl()
491 struct ipadm_addrobj_s ipaddr; in i_ipadm_ip4_dbline2nvl() local
495 bzero(&ipaddr, sizeof (ipaddr)); in i_ipadm_ip4_dbline2nvl()
496 ipaddr.ipadm_af = AF_INET; in i_ipadm_ip4_dbline2nvl()
502 (void) strlcpy(ipaddr.ipadm_static_aname, hname, in i_ipadm_ip4_dbline2nvl()
503 sizeof (ipaddr.ipadm_static_aname)); in i_ipadm_ip4_dbline2nvl()
[all …]
/titanic_41/usr/src/cmd/fs.d/nfs/nfslog/
H A Dnfslog_ipaddr.c96 iplookup(ipaddr) in iplookup() argument
97 struct in_addr *ipaddr; in iplookup()
104 for (h = h_table4[iphash(ipaddr->s_addr)]; h; h = h->h4_next) {
105 if (h->h4_addr.s_addr == ipaddr->s_addr)
111 if (ipaddr->s_addr == htonl(INADDR_BROADCAST))
112 return (addhost(AF_INET, ipaddr, "BROADCAST"));
113 if (ipaddr->s_addr == htonl(INADDR_ANY))
114 return (addhost(AF_INET, ipaddr, "OLD-BROADCAST"));
124 hp = getipnodebyaddr((char *)ipaddr, sizeof (struct in_addr),
126 if (hp == NULL && inet_lnaof(*ipaddr) == 0) {
[all …]
/titanic_41/usr/src/cmd/ssh/sshd/
H A Dauth-rhosts.c40 const char *ipaddr, const char *client_user, in check_rhosts_file() argument
119 !innetgr(host + 1, ipaddr, NULL, NULL)) in check_rhosts_file()
121 } else if (strcasecmp(host, hostname) && strcmp(host, ipaddr) != 0) in check_rhosts_file()
158 const char *hostname, *ipaddr; in auth_rhosts() local
161 ipaddr = get_remote_ipaddr(); in auth_rhosts()
162 return auth_rhosts2(pw, client_user, hostname, ipaddr); in auth_rhosts()
167 const char *ipaddr) in auth_rhosts2_raw() argument
175 client_user, hostname, ipaddr); in auth_rhosts2_raw()
207 if (check_rhosts_file(_PATH_RHOSTS_EQUIV, hostname, ipaddr, in auth_rhosts2_raw()
210 hostname, ipaddr); in auth_rhosts2_raw()
[all …]
H A Dauth2-hostbased.c165 const char *resolvedname, *ipaddr, *lookup; in hostbased_key_allowed() local
170 ipaddr = get_remote_ipaddr(); in hostbased_key_allowed()
173 chost, resolvedname, ipaddr); in hostbased_key_allowed()
190 chost, ipaddr, resolvedname); in hostbased_key_allowed()
191 if (auth_rhosts2(pw, cuser, resolvedname, ipaddr) == 0) in hostbased_key_allowed()
/titanic_41/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_ipaddr.c90 iplookup(struct in_addr ipaddr) in iplookup() argument
98 for (h = h_table4[iphash(ipaddr.s_addr)]; h; h = h->h4_next) { in iplookup()
99 if (h->h4_addr.s_addr == ipaddr.s_addr) in iplookup()
105 if (ipaddr.s_addr == htonl(INADDR_BROADCAST)) in iplookup()
106 return (addhost(AF_INET, &ipaddr, "BROADCAST", NULL)); in iplookup()
107 if (ipaddr.s_addr == htonl(INADDR_ANY)) in iplookup()
108 return (addhost(AF_INET, &ipaddr, "OLD-BROADCAST", NULL)); in iplookup()
117 hp = getipnodebyaddr((char *)&ipaddr, sizeof (int), in iplookup()
119 if (hp == NULL && inet_lnaof(ipaddr) == 0) { in iplookup()
120 np = getnetbyaddr(inet_netof(ipaddr), AF_INET); in iplookup()
[all …]
H A Dsnoop_socks.c48 struct in_addr ipaddr; local
61 (void) memcpy(&ipaddr, &buf[4],
62 sizeof (ipaddr));
65 addrtoname(AF_INET, &ipaddr),
158 (void) memcpy(&ipaddr, &buf[4],
159 sizeof (ipaddr));
163 &ipaddr),
260 struct in_addr ipaddr; local
270 (void) memcpy(&ipaddr, &buf[4],
271 sizeof (ipaddr));
[all …]
/titanic_41/usr/src/uts/common/io/ib/clients/rdsv3/
H A Dib_rdma.c95 rdsv3_ib_get_device(uint32_be_t ipaddr) in rdsv3_ib_get_device() argument
100 RDSV3_DPRINTF4("rdsv3_ib_get_device", "Enter: ipaddr: 0x%x", ipaddr); in rdsv3_ib_get_device()
106 if (i_ipaddr->ipaddr == ipaddr) { in rdsv3_ib_get_device()
114 RDSV3_DPRINTF4("rdsv3_ib_get_device", "Return: ipaddr: 0x%x", ipaddr); in rdsv3_ib_get_device()
120 rdsv3_ib_add_ipaddr(struct rdsv3_ib_device *rds_ibdev, uint32_be_t ipaddr) in rdsv3_ib_add_ipaddr() argument
125 rds_ibdev, ipaddr); in rdsv3_ib_add_ipaddr()
131 i_ipaddr->ipaddr = ipaddr; in rdsv3_ib_add_ipaddr()
141 rdsv3_ib_remove_ipaddr(struct rdsv3_ib_device *rds_ibdev, uint32_be_t ipaddr) in rdsv3_ib_remove_ipaddr() argument
147 rds_ibdev, ipaddr); in rdsv3_ib_remove_ipaddr()
152 if (i_ipaddr->ipaddr == ipaddr) { in rdsv3_ib_remove_ipaddr()
[all …]
H A Drdsv3_sc.c144 p1->libd_ip = path->local.ipaddr; in rdsv3_path_up()
145 p1->ribd_ip = path->remote.ipaddr; in rdsv3_path_up()
164 p1->libd_ip = path->local.ipaddr; in rdsv3_path_up()
165 p1->ribd_ip = path->remote.ipaddr; in rdsv3_path_up()
209 while ((p1) && ((p1->libd_ip != path->local.ipaddr) || in rdsv3_path_down()
210 (p1->ribd_ip != path->remote.ipaddr))) { in rdsv3_path_down()
217 "(0x%x <-> 0x%x)", path->local.ipaddr, path->remote.ipaddr); in rdsv3_path_down()
/titanic_41/usr/src/stand/lib/fs/nfs/
H A Dbootparams.c82 struct in_addr ipaddr; in whoami() local
102 ipv4_getipaddr(&ipaddr); in whoami()
103 ipaddr.s_addr = htonl(ipaddr.s_addr); in whoami()
104 bcopy((caddr_t)&ipaddr, in whoami()
106 sizeof (ipaddr)); in whoami()
190 (caddr_t)&ipaddr, sizeof (ipaddr)); in whoami()
191 if (ntohl(ipaddr.s_addr) != INADDR_ANY) { in whoami()
193 inet_ntoa(ipaddr)); in whoami()
196 &ipaddr); in whoami()
/titanic_41/usr/src/uts/common/os/
H A Discsiboot_prop.c96 char ipaddr[50] = {0}; in iscsi_print_nic_property() local
103 kinet_ntoa(ipaddr, &nicp->nic_ip_u, nicp->sin_family); in iscsi_print_nic_property()
105 "Local IP addr : %s\n", ipaddr); in iscsi_print_nic_property()
107 (void) memset(ipaddr, 0, 50); in iscsi_print_nic_property()
108 kinet_ntoa(ipaddr, &nicp->nic_gw_u, nicp->sin_family); in iscsi_print_nic_property()
110 "Local gateway : %s\n", ipaddr); in iscsi_print_nic_property()
112 (void) memset(ipaddr, 0, 50); in iscsi_print_nic_property()
113 kinet_ntoa(ipaddr, &nicp->nic_dhcp_u, nicp->sin_family); in iscsi_print_nic_property()
115 "Local DHCP : %s\n", ipaddr); in iscsi_print_nic_property()
133 char ipaddr[50] = {0}; in iscsi_print_tgt_property() local
[all …]
/titanic_41/usr/src/cmd/tsol/misc/
H A Dtxzonemgr.sh475 ipaddr=$(getent hosts $hostname|cut -f1)
477 ipaddr=$(zenity --entry \
484 if [[ -z $ipaddr ]] ; then
488 print "ip_address=$ipaddr" >> ${SYSIDCFG}
506 ipaddr=$(getent hosts $hostname|cut -f1)
508 print "ip_address=$ipaddr" >> ${SYSIDCFG}
513 ipaddr=$(ifconfig $i|grep inet|cut -d " " -f2)
516 print "ip_address=$ipaddr" >> ${SYSIDCFG}
651 set -A octets $ipaddr
665 --text="$ipaddr $msg_badip")
[all …]
/titanic_41/usr/src/grub/grub-0.97/netboot/
H A Dfsys_tftp.c74 if (arptable[ARP_CLIENT].ipaddr.s_addr != ip->dest.s_addr) in await_tftp()
107 if (!udp_transmit(arptable[ARP_SERVER].ipaddr.s_addr, ++iport, in tftp_file_read()
122 if (!udp_transmit(arptable[ARP_SERVER].ipaddr.s_addr, in tftp_file_read()
133 udp_transmit(arptable[ARP_SERVER].ipaddr.s_addr, in tftp_file_read()
186 udp_transmit(arptable[ARP_SERVER].ipaddr.s_addr, in tftp_file_read()
213 udp_transmit(arptable[ARP_SERVER].ipaddr.s_addr, iport, in tftp_file_read()
266 if (! udp_transmit (arptable[ARP_SERVER].ipaddr.s_addr, in buf_fill()
280 udp_transmit (arptable[ARP_SERVER].ipaddr.s_addr, in buf_fill()
356 udp_transmit (arptable[ARP_SERVER].ipaddr.s_addr, in buf_fill()
410 udp_transmit (arptable[ARP_SERVER].ipaddr.s_addr, iport, in buf_fill()
[all …]
H A Dnic.c266 int net = ntohl(arptable[ARP_CLIENT].ipaddr.s_addr) >> 24; in default_netmask()
323 (arptable[ARP_CLIENT].ipaddr.s_addr & netmask)) && in ip_transmit()
324 arptable[ARP_GATEWAY].ipaddr.s_addr) in ip_transmit()
325 destip = arptable[ARP_GATEWAY].ipaddr.s_addr; in ip_transmit()
327 if (arptable[arpentry].ipaddr.s_addr == destip) break; in ip_transmit()
342 memcpy(arpreq.sipaddr, &arptable[ARP_CLIENT].ipaddr, sizeof(in_addr)); in ip_transmit()
375 ip->src.s_addr = arptable[ARP_CLIENT].ipaddr.s_addr; in build_ip_hdr()
468 memcpy(&arptable[ARP_SERVER].ipaddr, arpreply->sipaddr, sizeof(in_addr)); in await_rarp()
469 memcpy(&arptable[ARP_CLIENT].ipaddr, arpreply->tipaddr, sizeof(in_addr)); in await_rarp()
470 memset(&arptable[ARP_GATEWAY].ipaddr, 0, sizeof(in_addr)); in await_rarp()
[all …]
/titanic_41/usr/src/common/smbsrv/
H A Dsmb_inet.c86 smb_inet_iszero(smb_inaddr_t *ipaddr) in smb_inet_iszero() argument
90 if ((ipaddr->a_family == AF_INET) && in smb_inet_iszero()
91 (ipaddr->a_ipv4 == 0)) in smb_inet_iszero()
94 if ((ipaddr->a_family == AF_INET6) && in smb_inet_iszero()
95 !memcmp(&ipaddr->a_ipv6, ipsz, sizeof (in6_addr_t))) in smb_inet_iszero()
/titanic_41/usr/src/lib/smbsrv/libsmbns/common/
H A Dsmbns_netlogon.c477 uint32_t ipaddr; in smb_netlogon_rdc_rsp() local
510 ipaddr = ntdomain_info.n_ipaddr; in smb_netlogon_rdc_rsp()
512 ipaddr = 0; in smb_netlogon_rdc_rsp()
514 if (smb_better_dc(ipaddr, src_ipaddr) || in smb_netlogon_rdc_rsp()
530 smb_inaddr_t ipaddr; in smb_better_dc() local
544 ipaddr.a_family = AF_INET; in smb_better_dc()
545 ipaddr.a_ipv4 = cur_ip; in smb_better_dc()
546 if (smb_nic_is_same_subnet(&ipaddr)) in smb_better_dc()
549 ipaddr.a_family = AF_INET; in smb_better_dc()
550 ipaddr.a_ipv4 = new_ip; in smb_better_dc()
[all …]
H A Dsmbns_netbios_datagram.c320 smb_inaddr_t ipaddr; in smb_netbios_datagram_send() local
378 ipaddr.a_ipv4 = addr->sin.sin_addr.s_addr; in smb_netbios_datagram_send()
379 ipaddr.a_family = AF_INET; in smb_netbios_datagram_send()
381 if (smb_nic_is_local(&ipaddr)) in smb_netbios_datagram_send()
384 sin.sin_addr.s_addr = ipaddr.a_ipv4; in smb_netbios_datagram_send()
400 smb_inaddr_t ipaddr; in smb_netbios_datagram_send_to_net() local
458 ipaddr.a_ipv4 = addr->sin.sin_addr.s_addr; in smb_netbios_datagram_send_to_net()
459 ipaddr.a_family = AF_INET; in smb_netbios_datagram_send_to_net()
460 if (smb_nic_is_local(&ipaddr)) in smb_netbios_datagram_send_to_net()
463 sin.sin_addr.s_addr = ipaddr.a_ipv4; in smb_netbios_datagram_send_to_net()
[all …]
/titanic_41/usr/src/uts/common/inet/ipf/netinet/
H A Dip_h323_pxy.c57 static int find_port(ipaddr, data, datlen, off, port) in find_port() argument
58 int ipaddr; in find_port()
73 netaddr = ntohl(ipaddr);
186 int ipaddr, off, datlen; local
195 ipaddr = ip->ip_src.s_addr;
199 if (find_port(ipaddr, data, datlen, &off, &port) == 0) {
271 int ipaddr, off, datlen; local
282 ipaddr = nat->nat_inip.s_addr;
285 if (find_port(ipaddr, data, datlen, &off, &port) == 0) {
/titanic_41/usr/src/cmd/ipf/examples/
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
/titanic_41/usr/src/uts/common/io/ib/clients/rds/
H A Drdsib_sc.c148 p1->libd_ip = path->local.ipaddr; in rds_path_up()
149 p1->ribd_ip = path->remote.ipaddr; in rds_path_up()
168 p1->libd_ip = path->local.ipaddr; in rds_path_up()
169 p1->ribd_ip = path->remote.ipaddr; in rds_path_up()
213 while ((p1) && ((p1->libd_ip != path->local.ipaddr) || in rds_path_down()
214 (p1->ribd_ip != path->remote.ipaddr))) { in rds_path_down()
221 "(0x%x <-> 0x%x)", path->local.ipaddr, path->remote.ipaddr); in rds_path_down()
/titanic_41/usr/src/cmd/cmd-inet/lib/nwamd/
H A Dncu.c740 ipadm_addrobj_t ipaddr; in populate_ip_ncu_properties() local
783 ipadm_destroy_addrobj(nifai->ipaddr); in populate_ip_ncu_properties()
815 ncu_data->ncu_name, &ipaddr); in populate_ip_ncu_properties()
823 ipstatus = ipadm_set_wait_time(ipaddr, ncu_wait_time); in populate_ip_ncu_properties()
828 ipadm_destroy_addrobj(ipaddr); in populate_ip_ncu_properties()
834 (*nifa)->ipaddr = ipaddr; in populate_ip_ncu_properties()
841 ipadm_destroy_addrobj(ipaddr); in populate_ip_ncu_properties()
857 &ipaddr); in populate_ip_ncu_properties()
867 ipstatus = ipadm_set_addr(ipaddr, addrvalue[i], in populate_ip_ncu_properties()
875 ipadm_destroy_addrobj(ipaddr); in populate_ip_ncu_properties()
[all …]
/titanic_41/usr/src/cmd/ypcmd/
H A Drpc_bootstrap.c153 char *ipaddr, *port; local
218 ipaddr = svc_uaddr;
219 ipaddrlen = strlen(ipaddr);
222 if (ipaddr[i] == '.')
226 if (ipaddr[i] == '.')
233 port = &ipaddr[i+1];
234 ipaddr[i] = '\0';
240 if (inet_pton(AF_INET, ipaddr, &sa->sin_addr) != 1) {
249 if (inet_pton(AF_INET6, ipaddr, &sa6->sin6_addr) != 1) {
/titanic_41/usr/src/uts/common/fs/smbsrv/
H A Dsmb_session.c54 void dump_smb_inaddr(smb_inaddr_t *ipaddr);
294 dump_smb_inaddr(&session->ipaddr); in smb_session_xprt_gethdr()
305 dump_smb_inaddr(&session->ipaddr); in smb_session_xprt_gethdr()
342 dump_smb_inaddr(&session->ipaddr); in smb_session_xprt_puthdr()
671 &session->ipaddr.au_addr.au_ipv4, in smb_session_create()
684 &session->ipaddr.au_addr.au_ipv6, in smb_session_create()
687 session->ipaddr.a_family = family; in smb_session_create()
1257 smb_inaddr_t *ipaddr; in smb_session_getclient() local
1270 ipaddr = &sn->ipaddr; in smb_session_getclient()
1271 if (smb_inet_ntop(ipaddr, ipbuf, SMB_IPSTRLEN(ipaddr->a_family))) in smb_session_getclient()
[all …]
/titanic_41/usr/src/lib/ncad_addr/common/
H A Dncad_addr.c78 ipaddr_t ipaddr; /* IP address, in network byte order */ member
171 ncaaddrs[addrcount].ipaddr = addr; in ncad_init()
238 (sin.sin_addr.s_addr == ncaaddrs[i].ipaddr || in nca_bind()
239 ncaaddrs[i].ipaddr == INADDR_ANY)) { in nca_bind()
/titanic_41/usr/src/cmd/ssh/libssh/common/
H A Dmatch.c186 match_host_and_ip(const char *host, const char *ipaddr, in match_host_and_ip() argument
192 if ((mip = match_hostname(ipaddr, patterns, strlen(patterns))) == -1) in match_host_and_ip()
207 match_user(const char *user, const char *host, const char *ipaddr, in match_user() argument
221 ret = match_host_and_ip(host, ipaddr, p); in match_user()

12345