Home
last modified time | relevance | path

Searched refs:saddr (Results 1 – 25 of 85) sorted by relevance

1234

/titanic_50/usr/src/cmd/sendmail/src/
H A Dratectrl.c222 client_rate(now, saddr, update) in client_rate() argument
224 SOCKADDR *saddr;
256 switch (saddr->sa.sa_family)
260 p = (char *)&saddr->sin.sin_addr;
266 p = (char *)&saddr->sin6.sin6_addr;
309 if (saddr->sa.sa_family == AF_INET &&
311 (saddr->sin.sin_addr.s_addr == ch->ch_Addr4.s_addr ||
320 if (saddr->sa.sa_family == AF_INET6 &&
322 (IN6_ARE_ADDR_EQUAL(&saddr->sin6.sin6_addr,
371 if (saddr->sa.sa_family == AF_INET)
[all …]
/titanic_50/usr/src/lib/libdscp/
H A Dlibdscp.c176 dscpAuth(int domain_id, struct sockaddr *saddr, int len) in dscpAuth() argument
186 if (saddr == NULL) { in dscpAuth()
203 switch (saddr->sa_family) { in dscpAuth()
206 sin = (struct sockaddr_in *)saddr; in dscpAuth()
211 sin6 = (struct sockaddr_in6 *)saddr; in dscpAuth()
244 dscpAddr(int domain_id, int which, struct sockaddr *saddr, int *lenp) in dscpAddr() argument
253 if (((saddr == NULL) || (lenp == NULL)) || in dscpAddr()
309 (void) memset(saddr, 0, sizeof (struct sockaddr)); in dscpAddr()
310 (void) memcpy(saddr, &lifr.lifr_addr, sizeof (struct sockaddr_in)); in dscpAddr()
328 dscpIdent(struct sockaddr *saddr, int len, int *domainp) in dscpIdent() argument
[all …]
H A Dlibdscp.h65 int dscpAuth(int domain, struct sockaddr *saddr, int len);
66 int dscpAddr(int domain, int which, struct sockaddr *saddr, int *lenp);
67 int dscpIdent(struct sockaddr *saddr, int len, int *domainp);
/titanic_50/usr/src/uts/common/fs/proc/
H A Dprsubr.c1381 caddr_t saddr, naddr; in prnsegs() local
1384 for (saddr = seg->s_base; saddr < eaddr; saddr = naddr) { in prnsegs()
1386 &saddr, &naddr, eaddr); in prnsegs()
1387 if (saddr != naddr) in prnsegs()
1636 caddr_t saddr, naddr; in prgetmap() local
1639 for (saddr = seg->s_base; saddr < eaddr; saddr = naddr) { in prgetmap()
1641 &saddr, &naddr, eaddr); in prgetmap()
1642 if (saddr == naddr) in prgetmap()
1647 mp->pr_vaddr = (uintptr_t)saddr; in prgetmap()
1648 mp->pr_size = naddr - saddr; in prgetmap()
[all …]
H A Dprioctl.c3542 caddr_t saddr, naddr; in oprgetmap() local
3545 for (saddr = seg->s_base; saddr < eaddr; saddr = naddr) { in oprgetmap()
3546 prot = pr_getprot(seg, 0, &tmp, &saddr, &naddr, eaddr); in oprgetmap()
3547 if (saddr == naddr) in oprgetmap()
3552 mp->pr_vaddr = saddr; in oprgetmap()
3553 mp->pr_size = naddr - saddr; in oprgetmap()
3554 mp->pr_off = SEGOP_GETOFFSET(seg, saddr); in oprgetmap()
3562 if (SEGOP_GETTYPE(seg, saddr) & MAP_SHARED) in oprgetmap()
3602 caddr_t saddr, naddr; in oprgetmap32() local
3605 for (saddr = seg->s_base; saddr < eaddr; saddr = naddr) { in oprgetmap32()
[all …]
/titanic_50/usr/src/cmd/prtdscp/sparc/sun4u/
H A Dprtdscp.c60 char saddr[INET_ADDRSTRLEN]; in main() local
73 if (get_address(DSCP_ADDR_REMOTE, saddr) < 0) { in main()
91 (void) printf("%s\n", saddr); in main()
96 (void) printf(gettext("SP Address: %s\n"), saddr); in main()
199 struct sockaddr saddr; in get_address() local
201 error = dscpAddr(0, which, &saddr, &len); in get_address()
208 sin = (struct sockaddr_in *)&saddr; in get_address()
/titanic_50/usr/src/uts/common/inet/ilb/
H A Dilb_alg_hash.c55 #define HASH_IP_VIP_V4(hash, saddr, daddr, size) \ argument
57 uint32_t val = (saddr) ^ (daddr); \
61 #define HASH_IP_VIP_V6(hash, saddr, daddr, size) \ argument
62 HASH_IP_VIP_V4((hash), (saddr)->s6_addr32[3], (daddr)->s6_addr32[3], \
95 hash_lb(in6_addr_t *saddr, in_port_t sport, in6_addr_t *daddr, in hash_lb() argument
113 HASH_IP_V6(i, saddr, hash_alg->hash_servers); in hash_lb()
116 HASH_IP_PORT_V6(i, saddr, sport, hash_alg->hash_servers); in hash_lb()
119 HASH_IP_VIP_V6(i, saddr, daddr, hash_alg->hash_servers); in hash_lb()
138 HASH_IP_V6(i, saddr, hash_alg->hash_enabled_servers); in hash_lb()
141 HASH_IP_PORT_V6(i, saddr, sport, in hash_lb()
[all …]
/titanic_50/usr/src/uts/common/io/sata/impl/
H A Dsata.c206 sata_address_t *saddr);
9933 sata_address_t *saddr, struct scsi_inquiry *inq) in sata_get_atapi_inquiry_data() argument
9959 spkt->satapkt_device.satadev_addr = *saddr; in sata_get_atapi_inquiry_data()
9987 cport_mutex = &(SATA_CPORT_MUTEX(sata_hba, saddr->cport)); in sata_get_atapi_inquiry_data()
10667 sata_address_t *saddr = &sata_device->satadev_addr; in sata_add_device() local
10671 cport = saddr->cport; in sata_add_device()
10672 pmport = saddr->pmport; in sata_add_device()
10685 switch (saddr->qual) { in sata_add_device()
10690 saddr->qual = SATA_ADDR_DCPORT; in sata_add_device()
10734 cdip = sata_create_target_node(pdip, sata_hba_inst, saddr); in sata_add_device()
[all …]
/titanic_50/usr/src/uts/common/fs/smbsrv/
H A Dsmb_opipe.c105 struct sockaddr_un saddr; in smb_opipe_connect() local
119 bzero(&saddr, sizeof (saddr)); in smb_opipe_connect()
120 saddr.sun_family = AF_UNIX; in smb_opipe_connect()
121 (void) snprintf(saddr.sun_path, sizeof (saddr.sun_path), in smb_opipe_connect()
123 rc = ksocket_connect(opipe->p_socket, (struct sockaddr *)&saddr, in smb_opipe_connect()
124 sizeof (saddr), sr->user_cr); in smb_opipe_connect()
/titanic_50/usr/src/cmd/rpcbind/
H A Dcheck_bound.c327 mergeaddr(SVCXPRT *xprt, char *netid, char *uaddr, char *saddr) in mergeaddr() argument
346 if (saddr != NULL) { in mergeaddr()
347 ma.c_uaddr = saddr; in mergeaddr()
390 if (saddr == NULL) in mergeaddr()
402 if (saddr == NULL) { in mergeaddr()
H A Drpcb_svc_4.c235 char *saddr, *maddr = NULL; in rpcbproc_getaddrlist() local
263 saddr = regp->r_addr; in rpcbproc_getaddrlist()
265 saddr = NULL; in rpcbproc_getaddrlist()
285 rbl->rpcb_map.r_addr, saddr)) == NULL) { in rpcbproc_getaddrlist()
/titanic_50/usr/src/uts/common/ipp/flowacct/
H A Dflowacct.c71 (((FLOWACCT_ADDR_HASH(f->saddr)) + \
240 V6_SET_ZERO(header->saddr); in flowacct_extract_header()
247 V4_PART_OF_V6(header->saddr) = (int32_t)ipha->ipha_src; in flowacct_extract_header()
269 bcopy(ip6h->ip6_src.s6_addr32, header->saddr.s6_addr32, in flowacct_extract_header()
295 (IN6_ARE_ADDR_EQUAL(&flow->saddr, &header->saddr)) && in flowacct_flow_present()
470 bcopy(header->saddr.s6_addr32, flow->saddr.s6_addr32, in flowacct_update_flows_tbl()
471 sizeof (header->saddr.s6_addr32)); in flowacct_update_flows_tbl()
688 htonl(flow->saddr.s6_addr32[count]); in flowacct_create_record()
H A Dflowacct_impl.h132 in6_addr_t saddr; member
150 in6_addr_t saddr; member
/titanic_50/usr/src/uts/common/fs/nfs/
H A Dnfs4_vfsops.c1483 struct netbuf *saddr; in update_servinfo4() local
1502 saddr = &svp->sv_addr; in update_servinfo4()
1503 if (saddr->buf != NULL) in update_servinfo4()
1504 kmem_free(saddr->buf, saddr->maxlen); in update_servinfo4()
1505 saddr->buf = kmem_alloc(nfsfsloc->addr->maxlen, KM_SLEEP); in update_servinfo4()
1506 saddr->len = nfsfsloc->addr->len; in update_servinfo4()
1507 saddr->maxlen = nfsfsloc->addr->maxlen; in update_servinfo4()
1508 bcopy(nfsfsloc->addr->buf, saddr->buf, nfsfsloc->addr->len); in update_servinfo4()
2051 struct netbuf *saddr, *taddr; in copy_svp() local
2066 saddr = &nsvp->sv_addr; in copy_svp()
[all …]
/titanic_50/usr/src/uts/common/io/ib/clients/rdsv3/
H A Drds_recv.c52 uint32_be_t saddr) in rdsv3_inc_init() argument
58 inc->i_saddr = saddr; in rdsv3_inc_init()
191 rdsv3_recv_incoming(struct rdsv3_connection *conn, uint32_be_t saddr, in rdsv3_recv_incoming() argument
656 uint32_be_t saddr, uint32_be_t daddr, int flip) in rdsv3_inc_info_copy() argument
665 minfo.faddr = saddr; in rdsv3_inc_info_copy()
669 minfo.laddr = saddr; in rdsv3_inc_info_copy()
/titanic_50/usr/src/uts/common/io/mac/plugins/
H A Dmac_wifi.c184 mac_wifi_header(const void *saddr, const void *daddr, uint32_t sap, in mac_wifi_header() argument
210 IEEE80211_ADDR_COPY(wh->i_addr2, saddr); in mac_wifi_header()
218 IEEE80211_ADDR_COPY(wh->i_addr2, saddr); in mac_wifi_header()
226 IEEE80211_ADDR_COPY(wh->i_addr3, saddr); in mac_wifi_header()
H A Dmac_ipv4.c140 mac_ipv4_header(const void *saddr, const void *daddr, uint32_t sap, void *pdata, in mac_ipv4_header() argument
171 bcopy(saddr, &(iphp->ip_src), sizeof (struct in_addr)); in mac_ipv4_header()
/titanic_50/usr/src/uts/common/ipp/ipgpc/
H A Dclassifier.c266 V4_PART_OF_V6(packet->saddr), fid_table); in ipgpc_classify()
300 packet->saddr, fid_table); in ipgpc_classify()
614 V4_PART_OF_V6(packet->saddr) = (int32_t)ipha->ipha_src; in parse_packet()
640 bcopy(ip6h->ip6_src.s6_addr32, packet->saddr.s6_addr32, in parse_packet6()
676 (void) inet_ntop(af, &V4_PART_OF_V6(pkt->saddr), saddrbuf, in print_packet()
688 (void) inet_ntop(af, pkt->saddr.s6_addr32, saddrbuf, in print_packet()
/titanic_50/usr/src/cmd/sgs/libcrle/common/
H A Ddump.c211 uintptr_t laddr = 0, saddr; in filladdr() local
243 saddr = M_PROUND(prstatus.pr_brkbase + prstatus.pr_brksize); in filladdr()
307 ((_maps->pr_vaddr + _maps->pr_size) <= saddr)) in filladdr()
/titanic_50/usr/src/uts/common/exec/elf/
H A Delf.c1490 caddr_t saddr = seg->s_base; in process_scns() local
1523 eaddr = saddr + segsize; in process_scns()
1524 prot = pr_getprot(seg, 1, &tmp, &saddr, &naddr, eaddr); in process_scns()
1575 v[i].sh_addr = (Addr)(uintptr_t)saddr; in process_scns()
1660 (Addr)(uintptr_t)saddr; in process_scns()
1681 (Addr)(uintptr_t)saddr; in process_scns()
1918 caddr_t saddr, naddr; in elfcore() local
1922 for (saddr = seg->s_base; saddr < eaddr; saddr = naddr) { in elfcore()
1928 prot = pr_getprot(seg, 0, &tmp, &saddr, &naddr, eaddr); in elfcore()
1930 if ((size = (size_t)(naddr - saddr)) == 0) in elfcore()
[all …]
/titanic_50/usr/src/psm/stand/cpr/sparcv9/sun4u/
H A Dbitmap.c538 caddr_t virt, saddr, eaddr; in cb_relocate() local
546 saddr = (caddr_t)_start; in cb_relocate()
553 ppn = cpr_vatopfn(saddr); in cb_relocate()
555 for (virt = saddr; virt < eaddr; virt += MMU_PAGESIZE, ppn++) { in cb_relocate()
/titanic_50/usr/src/cmd/mdb/common/modules/sctp/
H A Dsctp.c620 sctp_saddr_ipif_t *saddr = (sctp_saddr_ipif_t *)addr; in print_saddr() local
625 if (mdb_vread(&ipif, sizeof (ipif), (uintptr_t)saddr->saddr_ipifp) == in print_saddr()
627 mdb_warn("cannot read ipif at %p", saddr->saddr_ipifp); in print_saddr()
648 mdb_printf("\t%p\t%N% (%s", saddr->saddr_ipifp, &ipif.sctp_ipif_saddr, in print_saddr()
650 if (saddr->saddr_ipif_dontsrc == 1) in print_saddr()
652 if (saddr->saddr_ipif_unconfirmed == 1) in print_saddr()
654 if (saddr->saddr_ipif_delete_pending == 1) in print_saddr()
1294 sctp_saddr_ipif_t saddr; in sctp_walk_saddr_step() local
1300 if (mdb_vread(&saddr, sizeof (sctp_saddr_ipif_t), saddr_ptr) == -1) { in sctp_walk_saddr_step()
1304 status = wsp->walk_callback(saddr_ptr, &saddr, wsp->walk_cbdata); in sctp_walk_saddr_step()
[all …]
/titanic_50/usr/src/cmd/svc/shell/
H A Dipf_include.sh771 saddr=`get_IP ${name}`
772 if [ $? -eq 0 -a -n "$saddr" ]; then
776 echo "${ecmd} in log quick proto ${proto} from ${saddr}" \
796 saddr=`get_IP ${name}`
797 if [ $? -eq 0 -a -n "$saddr" ]; then
801 echo "${acmd} in log quick proto ${proto} from ${saddr}" \
/titanic_50/usr/src/cmd/ipf/tools/
H A Dipfstat.c210 i6addr_t saddr, daddr; local
219 saddr.in4.s_addr = INADDR_ANY; /* default any v4 source addr */
222 saddr.in6 = in6addr_any; /* default any v6 source addr */
362 parse_ipportstr(optarg, &saddr, &sport);
418 topipstates(saddr, daddr, sport, dport, protocol,
1163 static void topipstates(saddr, daddr, sport, dport, protocol, ver, in topipstates() argument
1165 i6addr_t saddr; in topipstates()
1243 if ((saddr.in4.s_addr != INADDR_ANY &&
1244 saddr.in4.s_addr != ips.is_saddr) ||
1252 if ((IP6_NEQ(&saddr, &in6addr_any) &&
[all …]
/titanic_50/usr/src/uts/common/sys/nxge/
H A Dnxge_fflp_hw.h1343 struct in6_addr saddr; member
1350 struct in_addr saddr; member
1377 struct in6_addr saddr;
1384 struct in_addr saddr;
1407 #define ip4_saddr bits.ipaddr.ip4_addr.saddr.s_addr
1414 #define ip6_saddr bits.ipaddr.ip6_addr.saddr
1553 struct in6_addr saddr; member
1560 struct in_addr saddr; member
1564 struct in_addr saddr;

1234