/illumos-gate/usr/src/cmd/fs.d/nfs/nfslog/ |
H A D | nfslog_ipaddr.c | 96 iplookup(ipaddr) 97 struct in_addr *ipaddr; 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) [all...] |
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/ |
H A D | snoop_ipaddr.c | 90 iplookup(struct in_addr ipaddr) argument 98 for (h = h_table4[iphash(ipaddr.s_addr)]; h; h = h->h4_next) { 99 if (h->h4_addr.s_addr == ipaddr.s_addr) 105 if (ipaddr.s_addr == htonl(INADDR_BROADCAST)) 106 return (addhost(AF_INET, &ipaddr, "BROADCAST", NULL)); 107 if (ipaddr.s_addr == htonl(INADDR_ANY)) 108 return (addhost(AF_INET, &ipaddr, "OLD-BROADCAST", NULL)); 117 hp = getipnodebyaddr((char *)&ipaddr, sizeof (int), 119 if (hp == NULL && inet_lnaof(ipaddr) == 0) { 120 np = getnetbyaddr(inet_netof(ipaddr), AF_INE 184 addhost(int family, const void *ipaddr, const char *name, char **aliases) argument 283 addrtoname(int family, const void *ipaddr) argument [all...] |
H A D | snoop_socks.c | 48 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)); 367 struct in_addr ipaddr; local [all...] |
/illumos-gate/usr/src/uts/common/sys/ib/clients/rds/ |
H A D | rdsib_sc.h | 40 ipaddr_t ipaddr; member in struct:rds_path_endpoint_s
|
/illumos-gate/usr/src/uts/common/sys/ib/clients/rdsv3/ |
H A D | rdsv3_sc.h | 37 ipaddr_t ipaddr; member in struct:rds_path_endpoint_s
|
/illumos-gate/usr/src/boot/include/netinet/ |
H A D | if_ether.h | 44 #define ETHER_MAP_IP_MULTICAST(ipaddr, enaddr) \ 45 /* struct in_addr *ipaddr; */ \ 51 (enaddr)[3] = ((const u_char *)ipaddr)[1] & 0x7f; \ 52 (enaddr)[4] = ((const u_char *)ipaddr)[2]; \ 53 (enaddr)[5] = ((const u_char *)ipaddr)[3]; \
|
/illumos-gate/usr/src/lib/libipadm/common/ |
H A D | ipadm_addr.c | 128 * `ipadm_atype' fields of the given `ipaddr'. 131 i_ipadm_init_addr(ipadm_addrobj_t ipaddr, const char *ifname, argument 134 bzero(ipaddr, sizeof (struct ipadm_addrobj_s)); 135 (void) strlcpy(ipaddr->ipadm_ifname, ifname, 136 sizeof (ipaddr->ipadm_ifname)); 137 (void) strlcpy(ipaddr->ipadm_aobjname, aobjname, 138 sizeof (ipaddr->ipadm_aobjname)); 139 ipaddr->ipadm_atype = atype; 182 i_ipadm_get_addrobj(ipadm_handle_t iph, ipadm_addrobj_t ipaddr) argument 190 (void) strlcpy(larg.ia_aobjname, ipaddr 217 i_ipadm_get_static_addr_db(ipadm_handle_t iph, ipadm_addrobj_t ipaddr) argument 361 struct ipadm_addrobj_s ipaddr; local 911 ipadm_addrobj_t ipaddr = (ipadm_addrobj_t)arg; local 964 ipadm_addrobj_t ipaddr = (ipadm_addrobj_t)arg; local 1056 ipadm_addrobj_t ipaddr = (ipadm_addrobj_t)arg; local 1171 ipadm_addrobj_t ipaddr = (ipadm_addrobj_t)arg; local 1268 ipadm_addrobj_t ipaddr = (ipadm_addrobj_t)arg; local 1396 struct ipadm_addrobj_s ipaddr; local 1470 struct ipadm_addrobj_s ipaddr; local 1728 ipadm_set_addr(ipadm_addrobj_t ipaddr, const char *astr, sa_family_t af) argument 1768 ipadm_get_addr(const ipadm_addrobj_t ipaddr, struct sockaddr_storage *addr) argument 1786 ipadm_set_dst_addr(ipadm_addrobj_t ipaddr, const char *daddrstr, sa_family_t af) argument 1810 ipadm_set_interface_id(ipadm_addrobj_t ipaddr, const char *interface_id) argument 1843 ipadm_set_stateless(ipadm_addrobj_t ipaddr, boolean_t stateless) argument 1857 ipadm_set_stateful(ipadm_addrobj_t ipaddr, boolean_t stateful) argument 1874 ipadm_set_primary(ipadm_addrobj_t ipaddr, boolean_t primary) argument 1895 ipadm_set_wait_time(ipadm_addrobj_t ipaddr, int32_t wait) argument 1912 i_ipadm_lookupadd_addrobj(ipadm_handle_t iph, ipadm_addrobj_t ipaddr) argument 1946 i_ipadm_setlifnum_addrobj(ipadm_handle_t iph, ipadm_addrobj_t ipaddr) argument 1984 struct ipadm_addrobj_s ipaddr; local 2058 struct ipadm_addrobj_s ipaddr; local 2102 struct ipadm_addrobj_s ipaddr; local 2158 ipadm_create_addrobj(ipadm_addr_type_t type, const char *aobjname, ipadm_addrobj_t *ipaddr) argument 2245 ipadm_get_aobjname(const ipadm_addrobj_t ipaddr, char *aobjname, size_t len) argument 2259 ipadm_destroy_addrobj(ipadm_addrobj_t ipaddr) argument 2269 i_ipadm_addrobj2lifname(ipadm_addrobj_t ipaddr, char *lifname, int lifnamesize) argument 2445 struct ipadm_addrobj_s ipaddr; local 2626 i_ipadm_create_addr(ipadm_handle_t iph, ipadm_addrobj_t ipaddr, uint32_t flags) argument 2762 struct ipadm_addrobj_s ipaddr; local 3034 i_ipadm_addr_persist(ipadm_handle_t iph, const ipadm_addrobj_t ipaddr, boolean_t default_prefixlen, uint32_t flags) argument 3157 i_ipadm_delete_addrobj(ipadm_handle_t iph, const ipadm_addrobj_t ipaddr, uint32_t flags) argument 3183 i_ipadm_updown_common(ipadm_handle_t iph, const char *aobjname, ipadm_addrobj_t ipaddr, uint32_t ipadm_flags, uint64_t *ifflags) argument 3227 struct ipadm_addrobj_s ipaddr; local 3269 struct ipadm_addrobj_s ipaddr; local 3320 struct ipadm_addrobj_s ipaddr; local 3397 i_ipadm_validate_create_addr(ipadm_handle_t iph, ipadm_addrobj_t ipaddr, uint32_t flags) argument 3535 struct ipadm_addrobj_s ipaddr; local [all...] |
H A D | ipadm_persist.c | 344 * the address and hostnames from the address object `ipaddr' to it. 348 i_ipadm_add_ipaddr2nvl(nvlist_t *nvl, ipadm_addrobj_t ipaddr) argument 353 sa_family_t af = ipaddr->ipadm_af; 373 ipaddr->ipadm_static_aname)) != 0) 375 if (ipaddr->ipadm_static_dname[0] != '\0') { 377 ipaddr->ipadm_static_dname)) != 0) 388 * the interface id and its prefixlen from the address object `ipaddr' to it. 491 struct ipadm_addrobj_s ipaddr; local 495 bzero(&ipaddr, sizeof (ipaddr)); 524 struct ipadm_addrobj_s ipaddr; local 555 struct ipadm_addrobj_s ipaddr; local [all...] |
/illumos-gate/usr/src/common/smbsrv/ |
H A D | smb_inet.c | 86 smb_inet_iszero(smb_inaddr_t *ipaddr) argument 90 if ((ipaddr->a_family == AF_INET) && 91 (ipaddr->a_ipv4 == 0)) 94 if ((ipaddr->a_family == AF_INET6) && 95 !memcmp(&ipaddr->a_ipv6, ipsz, sizeof (in6_addr_t)))
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | iscsiboot_prop.c | 93 char ipaddr[50] = {0}; local 100 kinet_ntoa(ipaddr, &nicp->nic_ip_u, nicp->sin_family); 102 "Local IP addr : %s\n", ipaddr); 104 (void) memset(ipaddr, 0, 50); 105 kinet_ntoa(ipaddr, &nicp->nic_gw_u, nicp->sin_family); 107 "Local gateway : %s\n", ipaddr); 109 (void) memset(ipaddr, 0, 50); 110 kinet_ntoa(ipaddr, &nicp->nic_dhcp_u, nicp->sin_family); 112 "Local DHCP : %s\n", ipaddr); 130 char ipaddr[5 local [all...] |
/illumos-gate/usr/src/stand/lib/fs/nfs/ |
H A D | bootparams.c | 82 struct in_addr ipaddr; local 102 ipv4_getipaddr(&ipaddr); 103 ipaddr.s_addr = htonl(ipaddr.s_addr); 104 bcopy((caddr_t)&ipaddr, 106 sizeof (ipaddr)); 190 (caddr_t)&ipaddr, sizeof (ipaddr)); 191 if (ntohl(ipaddr.s_addr) != INADDR_ANY) { 193 inet_ntoa(ipaddr)); [all...] |
/illumos-gate/usr/src/uts/common/io/ib/clients/rdsv3/ |
H A D | ib_rdma.c | 95 rdsv3_ib_get_device(uint32_be_t ipaddr) argument 100 RDSV3_DPRINTF4("rdsv3_ib_get_device", "Enter: ipaddr: 0x%x", ipaddr); 106 if (i_ipaddr->ipaddr == ipaddr) { 114 RDSV3_DPRINTF4("rdsv3_ib_get_device", "Return: ipaddr: 0x%x", ipaddr); 120 rdsv3_ib_add_ipaddr(struct rdsv3_ib_device *rds_ibdev, uint32_be_t ipaddr) argument 124 RDSV3_DPRINTF4("rdsv3_ib_add_ipaddr", "rds_ibdev: %p ipaddr: %x", 125 rds_ibdev, ipaddr); 141 rdsv3_ib_remove_ipaddr(struct rdsv3_ib_device *rds_ibdev, uint32_be_t ipaddr) argument 169 rdsv3_ib_update_ipaddr(struct rdsv3_ib_device *rds_ibdev, uint32_be_t ipaddr) argument [all...] |
H A D | rdsv3_sc.c | 144 p1->libd_ip = path->local.ipaddr; 145 p1->ribd_ip = path->remote.ipaddr; 164 p1->libd_ip = path->local.ipaddr; 165 p1->ribd_ip = path->remote.ipaddr; 209 while ((p1) && ((p1->libd_ip != path->local.ipaddr) || 210 (p1->ribd_ip != path->remote.ipaddr))) { 217 "(0x%x <-> 0x%x)", path->local.ipaddr, path->remote.ipaddr);
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ |
H A D | ndp.c | 433 char ipaddr[INET6_ADDRSTRLEN]; local 459 ipaddr, sizeof (ipaddr)) == NULL) { 460 (void) snprintf(ipaddr, sizeof (ipaddr), 465 "interface", ipaddr); 651 char ipaddr[INET6_ADDRSTRLEN]; local 659 if (inet_ntop(AF_INET6, &lnr_addr->sin6_addr, ipaddr, 660 sizeof (ipaddr)) == NULL) { 677 warnx("Unable to lookup hostname for %s", ipaddr); 710 char ipaddr[INET6_ADDRSTRLEN]; local 733 ndp_lifr2ip(struct lifreq *lifrp, char *ipaddr, int buflen) argument 749 char ipaddr[INET6_ADDRSTRLEN]; local 783 char ipaddr[INET6_ADDRSTRLEN]; local 810 char ipaddr[INET6_ADDRSTRLEN]; local [all...] |
/illumos-gate/usr/src/lib/smbsrv/libsmbns/common/ |
H A D | smbns_netlogon.c | 477 uint32_t ipaddr; local 510 ipaddr = ntdomain_info.n_ipaddr; 512 ipaddr = 0; 514 if (smb_better_dc(ipaddr, src_ipaddr) || 530 smb_inaddr_t ipaddr; local 544 ipaddr.a_family = AF_INET; 545 ipaddr.a_ipv4 = cur_ip; 546 if (smb_nic_is_same_subnet(&ipaddr)) 549 ipaddr.a_family = AF_INET; 550 ipaddr [all...] |
H A D | smbns_netbios_datagram.c | 320 smb_inaddr_t ipaddr; local 378 ipaddr.a_ipv4 = addr->sin.sin_addr.s_addr; 379 ipaddr.a_family = AF_INET; 381 if (smb_nic_is_local(&ipaddr)) 384 sin.sin_addr.s_addr = ipaddr.a_ipv4; 400 smb_inaddr_t ipaddr; local 458 ipaddr.a_ipv4 = addr->sin.sin_addr.s_addr; 459 ipaddr.a_family = AF_INET; 460 if (smb_nic_is_local(&ipaddr)) 463 sin.sin_addr.s_addr = ipaddr 824 smb_inaddr_t ipaddr; local [all...] |
/illumos-gate/usr/src/uts/common/io/ib/clients/rds/ |
H A D | rdsib_sc.c | 148 p1->libd_ip = path->local.ipaddr; 149 p1->ribd_ip = path->remote.ipaddr; 168 p1->libd_ip = path->local.ipaddr; 169 p1->ribd_ip = path->remote.ipaddr; 213 while ((p1) && ((p1->libd_ip != path->local.ipaddr) || 214 (p1->ribd_ip != path->remote.ipaddr))) { 221 "(0x%x <-> 0x%x)", path->local.ipaddr, path->remote.ipaddr);
|
/illumos-gate/usr/src/grub/grub-0.97/netboot/ |
H A D | fsys_tftp.c | 74 if (arptable[ARP_CLIENT].ipaddr.s_addr != ip->dest.s_addr) 107 if (!udp_transmit(arptable[ARP_SERVER].ipaddr.s_addr, ++iport, 122 if (!udp_transmit(arptable[ARP_SERVER].ipaddr.s_addr, 133 udp_transmit(arptable[ARP_SERVER].ipaddr.s_addr, 186 udp_transmit(arptable[ARP_SERVER].ipaddr.s_addr, 213 udp_transmit(arptable[ARP_SERVER].ipaddr.s_addr, iport, 266 if (! udp_transmit (arptable[ARP_SERVER].ipaddr.s_addr, 280 udp_transmit (arptable[ARP_SERVER].ipaddr.s_addr, 356 udp_transmit (arptable[ARP_SERVER].ipaddr.s_addr, 410 udp_transmit (arptable[ARP_SERVER].ipaddr [all...] |
H A D | nic.c | 266 int net = ntohl(arptable[ARP_CLIENT].ipaddr.s_addr) >> 24; 323 (arptable[ARP_CLIENT].ipaddr.s_addr & netmask)) && 324 arptable[ARP_GATEWAY].ipaddr.s_addr) 325 destip = arptable[ARP_GATEWAY].ipaddr.s_addr; 327 if (arptable[arpentry].ipaddr.s_addr == destip) break; 342 memcpy(arpreq.sipaddr, &arptable[ARP_CLIENT].ipaddr, sizeof(in_addr)); 375 ip->src.s_addr = arptable[ARP_CLIENT].ipaddr.s_addr; 468 memcpy(&arptable[ARP_SERVER].ipaddr, arpreply->sipaddr, sizeof(in_addr)); 469 memcpy(&arptable[ARP_CLIENT].ipaddr, arpreply->tipaddr, sizeof(in_addr)); 470 memset(&arptable[ARP_GATEWAY].ipaddr, [all...] |
/illumos-gate/usr/src/uts/common/inet/ipf/netinet/ |
H A D | ip_h323_pxy.c | 57 static int find_port(ipaddr, data, datlen, off, port) 58 int ipaddr; 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) {
|
/illumos-gate/usr/src/lib/ncad_addr/common/ |
H A D | ncad_addr.c | 78 ipaddr_t ipaddr; /* IP address, in network byte order */ member in struct:nca_address_s 171 ncaaddrs[addrcount].ipaddr = addr; 238 (sin.sin_addr.s_addr == ncaaddrs[i].ipaddr || 239 ncaaddrs[i].ipaddr == INADDR_ANY)) {
|
/illumos-gate/usr/src/cmd/tsol/misc/ |
H A D | txzonemgr.sh | 475 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 [all...] |
/illumos-gate/usr/src/cmd/ypcmd/ |
H A D | rpc_bootstrap.c | 153 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) {
|
/illumos-gate/usr/src/uts/common/io/mac/plugins/ |
H A D | mac_ipv4.c | 100 const ipaddr_t *ipaddr = addr; local 101 return ((CLASSD(*ipaddr) || (*ipaddr == INADDR_BROADCAST)) ?
|
/illumos-gate/usr/src/cmd/cmd-inet/lib/nwamd/ |
H A D | ncu.c | 740 ipadm_addrobj_t ipaddr; local 783 ipadm_destroy_addrobj(nifai->ipaddr); 815 ncu_data->ncu_name, &ipaddr); 823 ipstatus = ipadm_set_wait_time(ipaddr, ncu_wait_time); 828 ipadm_destroy_addrobj(ipaddr); 834 (*nifa)->ipaddr = ipaddr; 841 ipadm_destroy_addrobj(ipaddr); 857 &ipaddr); 867 ipstatus = ipadm_set_addr(ipaddr, addrvalu [all...] |