Home
last modified time | relevance | path

Searched refs:v4addr (Results 1 – 25 of 37) sorted by relevance

12

/illumos-gate/usr/src/uts/common/inet/ip/
H A Dinet_ntop.c182 uchar_t *v4addr; in __inet_ntop() local
195 v4addr = (uchar_t *)addr; in __inet_ntop()
198 UC(v4addr[0]), UC(v4addr[1]), UC(v4addr[2]), UC(v4addr[3])); in __inet_ntop()
H A Dip_ire.c417 ipaddr_t v4addr; in ip_ire_delete() local
465 bcopy(addr_ucp, &v4addr, IP_ADDR_LEN); in ip_ire_delete()
467 ire = ire_ftable_lookup_v4(v4addr, 0, 0, 0, NULL, in ip_ire_delete()
3486 ipaddr_t v4addr; in ire_create_if_clone() local
3490 IN6_V4MAPPED_TO_IPADDR(addr, v4addr); in ire_create_if_clone()
3493 (uchar_t *)&v4addr, /* dest address */ in ire_create_if_clone()
/illumos-gate/usr/src/cmd/mdb/common/mdb/
H A Dmdb_string.c752 uchar_t *v4addr; in mdb_inet_ntop() local
759 v4addr = (uchar_t *)addr; in mdb_inet_ntop()
761 UC(v4addr[0]), UC(v4addr[1]), UC(v4addr[2]), UC(v4addr[3])); in mdb_inet_ntop()
/illumos-gate/usr/src/uts/common/inet/tcp/
H A Dtcp_bind.c528 ipaddr_t v4addr; in tcp_bind_check() local
571 v4addr = sin->sin_addr.s_addr; in tcp_bind_check()
572 IN6_IPADDR_TO_V4MAPPED(v4addr, &v6addr); in tcp_bind_check()
573 if (v4addr != INADDR_ANY) { in tcp_bind_check()
574 laddr_type = ip_laddr_verify_v4(v4addr, zoneid, ipst, in tcp_bind_check()
587 IN6_V4MAPPED_TO_IPADDR(&v6addr, v4addr); in tcp_bind_check()
588 if (v4addr != INADDR_ANY) { in tcp_bind_check()
589 laddr_type = ip_laddr_verify_v4(v4addr, in tcp_bind_check()
/illumos-gate/usr/src/lib/udapl/udapl_tavor/tavor/
H A Ddapl_tavor_ibtf_cm.c79 struct sockaddr_in *v4addr; in dapls_ib_connect() local
124 v4addr = (struct sockaddr_in *)s; in dapls_ib_connect()
128 sap->iad_v4 = v4addr->sin_addr; in dapls_ib_connect()
154 v4addr = (struct sockaddr_in *)s; in dapls_ib_connect()
155 prd_ptr->hello_msg.hi_port = v4addr->sin_port; in dapls_ib_connect()
156 prd_ptr->hello_msg.hi_v4ipaddr = v4addr->sin_addr; in dapls_ib_connect()
H A Ddapl_tavor_hca.c482 struct sockaddr_in *v4addr; in dapls_ib_open_hca() local
541 v4addr = (struct sockaddr_in *)s; in dapls_ib_open_hca()
542 sap->iad_v4 = v4addr->sin_addr; in dapls_ib_open_hca()
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/ilbd/ilb/
H A Dilb_probe.c173 struct in_addr v4addr; in parse_probe_param() local
196 if (inet_pton(AF_INET, argv[1], &v4addr) == 0) in parse_probe_param()
198 IN6_INADDR_TO_V4MAPPED(&v4addr, &param->vip); in parse_probe_param()
212 if (inet_pton(AF_INET, argv[2], &v4addr) == 0) in parse_probe_param()
214 IN6_INADDR_TO_V4MAPPED(&v4addr, &param->srv_addr); in parse_probe_param()
/illumos-gate/usr/src/uts/common/io/ib/clients/rds/
H A Drds_ioctl.c243 ipaddr_t v4addr; in rds_ioctl_copyin_done() local
253 v4addr = rds->rds_src; in rds_ioctl_copyin_done()
264 sin->sin_addr.s_addr = v4addr; in rds_ioctl_copyin_done()
/illumos-gate/usr/src/uts/common/inet/sctp/
H A Dsctp_shutdown.c276 ipaddr_t v4addr; in sctp_ootb_shutdown_ack() local
283 v4addr = ipha->ipha_src; in sctp_ootb_shutdown_ack()
285 ipha->ipha_dst = v4addr; in sctp_ootb_shutdown_ack()
H A Dsctp_error.c366 ipaddr_t v4addr; in sctp_ootb_send_abort() local
373 v4addr = ipha->ipha_src; in sctp_ootb_send_abort()
375 ipha->ipha_dst = v4addr; in sctp_ootb_send_abort()
/illumos-gate/usr/src/lib/libdladm/common/
H A Dflowattr.c86 struct in_addr v4addr; in do_check_ip_addr() local
97 if (inet_pton(AF_INET, addr_str, &v4addr.s_addr) == 1) { in do_check_ip_addr()
117 IN6_INADDR_TO_V4MAPPED(&v4addr, addr); in do_check_ip_addr()
/illumos-gate/usr/src/lib/libsocket/inet/
H A Dgetaddrinfo.c572 struct in_addr v4addr; in get_addr() local
646 IN6_V4MAPPED_TO_INADDR(v6addrp, &v4addr); in get_addr()
650 (void) memcpy(&v4addr, hp->h_addr_list[i], in get_addr()
716 &v4addr, sizeof (struct in_addr)); in get_addr()
/illumos-gate/usr/src/cmd/tsol/tnd/
H A Dtnd.h131 #define v4addr _addr_un._v4addr macro
/illumos-gate/usr/src/uts/common/io/scsi/adapters/iscsi/
H A Dpersistent.c81 uchar_t *v4addr = (uchar_t *)addr; in iscsi_inet_ntop() local
83 UC(v4addr[0]), UC(v4addr[1]), UC(v4addr[2]), UC(v4addr[3])); in iscsi_inet_ntop()
/illumos-gate/usr/src/uts/common/inet/
H A Dsadb.h386 #define OUTBOUND_HASH_V4(sadb, v4addr) ((v4addr) % ((sadb)->sdb_hashsize)) argument
396 #define OUTBOUND_BUCKET_V4(sadb, v4addr) \ argument
397 &(((sadb)->sdb_of)[OUTBOUND_HASH_V4(sadb, v4addr)])
H A Dipclassifier.h545 #define _IPCL_V4_MATCH(v6addr, v4addr) \ argument
546 (V4_PART_OF_V6((v6addr)) == (v4addr) && IN6_IS_ADDR_V4MAPPED(&(v6addr)))
/illumos-gate/usr/src/cmd/cmd-inet/sbin/dhcpagent/
H A Dinterface.c704 ipaddr_t v4addr; in checkaddr() local
706 IN6_V4MAPPED_TO_IPADDR(addr, v4addr); in checkaddr()
707 if (sinp->sin_addr.s_addr != v4addr) { in checkaddr()
710 inet_ntop(AF_INET, &v4addr, abuf1, sizeof (abuf1)), in checkaddr()
H A Dagent.c1263 ipaddr_t v4addr; in check_rtm_addr() local
1271 IN6_V4MAPPED_TO_IPADDR(addr, v4addr); in check_rtm_addr()
1272 return (sinp->sin_addr.s_addr == v4addr); in check_rtm_addr()
/illumos-gate/usr/src/cmd/krb5/slave/
H A Dkpropd.c588 ipaddr_t v4addr; local
602 ipaddr_t v4addr; local
606 v4addr);
608 inet_ntop(AF_INET, (const void *) &v4addr,
/illumos-gate/usr/src/cmd/fm/modules/common/ip-transport/
H A Dip.c316 struct in_addr v4addr; in ip_xprt_set_addr() local
324 IN6_V4MAPPED_TO_INADDR(&sin6->sin6_addr, &v4addr); in ip_xprt_set_addr()
325 (void) inet_ntop(AF_INET, &v4addr, buf, sizeof (buf)); in ip_xprt_set_addr()
/illumos-gate/usr/src/uts/common/inet/iptun/
H A Diptun.c2724 ipaddr_t v4addr; in iptun_in_6to4_ok() local
2738 IN6_6TO4_TO_V4ADDR(&inner6->ip6_dst, (struct in_addr *)&v4addr); in iptun_in_6to4_ok()
2739 if (outer4->ipha_dst != v4addr) in iptun_in_6to4_ok()
2750 IN6_6TO4_TO_V4ADDR(&inner6->ip6_src, (struct in_addr *)&v4addr); in iptun_in_6to4_ok()
2751 if (outer4->ipha_src != v4addr) in iptun_in_6to4_ok()
2846 ipaddr_t v4addr; in iptun_out_process_6to4() local
2863 IN6_6TO4_TO_V4ADDR(&inner6->ip6_src, (struct in_addr *)&v4addr); in iptun_out_process_6to4()
2864 if (outer4->ipha_src != v4addr) in iptun_out_process_6to4()
/illumos-gate/usr/src/uts/common/io/mac/
H A Dmac_protect.c1759 mac_ipaddr_t *v4addr = &protect->mp_ipaddrs[i]; in ipnospoof_check_v4() local
1761 if (v4addr->ip_version == IPV4_VERSION) { in ipnospoof_check_v4()
1765 ASSERT(v4addr->ip_netmask >= 0 && in ipnospoof_check_v4()
1766 v4addr->ip_netmask <= 32); in ipnospoof_check_v4()
1767 mask = 0xFFFFFFFFu << (32 - v4addr->ip_netmask); in ipnospoof_check_v4()
1773 if (htonl(V4_PART_OF_V6(v4addr->ip_addr)) == in ipnospoof_check_v4()
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/nwamadm/
H A Dnwamadm.c1114 struct sockaddr_in *v4addr; in eventhandler() local
1121 v4addr = (struct sockaddr_in *)address; in eventhandler()
1122 (void) inet_ntop(AF_INET, &v4addr->sin_addr, in eventhandler()
/illumos-gate/usr/src/cmd/mdb/common/modules/idm/
H A Didm.c3534 uchar_t *v4addr; in iscsi_inet_ntop() local
3560 v4addr = (uchar_t *)addr; in iscsi_inet_ntop()
3563 UC(v4addr[0]), UC(v4addr[1]), UC(v4addr[2]), UC(v4addr[3])); in iscsi_inet_ntop()
/illumos-gate/usr/src/lib/libinetsvc/common/
H A Dinetsvc.c1506 struct in_addr v4addr; in inet_ntop_native() local
1509 IN6_V4MAPPED_TO_INADDR((struct in6_addr *)addr, &v4addr); in inet_ntop_native()
1510 return (inet_ntop(AF_INET, &v4addr, dst, size)); in inet_ntop_native()

12