Home
last modified time | relevance | path

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

1234

/illumos-gate/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 …]
/illumos-gate/usr/src/lib/libdscp/
H A Dlibdscp.c174 dscpAuth(int domain_id, struct sockaddr *saddr, int len) in dscpAuth() argument
184 if (saddr == NULL) { in dscpAuth()
201 switch (saddr->sa_family) { in dscpAuth()
204 sin = (struct sockaddr_in *)saddr; in dscpAuth()
209 sin6 = (struct sockaddr_in6 *)saddr; in dscpAuth()
242 dscpAddr(int domain_id, int which, struct sockaddr *saddr, int *lenp) in dscpAddr() argument
251 if (((saddr == NULL) || (lenp == NULL)) || in dscpAddr()
307 (void) memset(saddr, 0, sizeof (struct sockaddr)); in dscpAddr()
308 (void) memcpy(saddr, &lifr.lifr_addr, sizeof (struct sockaddr_in)); in dscpAddr()
326 dscpIdent(struct sockaddr *saddr, int len, int *domainp) in dscpIdent() argument
[all …]
H A Dlibdscp.h63 int dscpAuth(int domain, struct sockaddr *saddr, int len);
64 int dscpAddr(int domain, int which, struct sockaddr *saddr, int *lenp);
65 int dscpIdent(struct sockaddr *saddr, int len, int *domainp);
/illumos-gate/usr/src/cmd/prtdscp/sparc/sun4u/
H A Dprtdscp.c58 char saddr[INET_ADDRSTRLEN]; in main() local
71 if (get_address(DSCP_ADDR_REMOTE, saddr) < 0) { in main()
89 (void) printf("%s\n", saddr); in main()
94 (void) printf(gettext("SP Address: %s\n"), saddr); in main()
197 struct sockaddr saddr; in get_address() local
199 error = dscpAddr(0, which, &saddr, &len); in get_address()
206 sin = (struct sockaddr_in *)&saddr; in get_address()
/illumos-gate/usr/src/uts/common/fs/proc/
H A Dprsubr.c1425 caddr_t saddr, naddr; in prnsegs() local
1432 for (saddr = seg->s_base; saddr < eaddr; saddr = naddr) { in prnsegs()
1434 &saddr, &naddr, eaddr); in prnsegs()
1435 if (saddr != naddr) { in prnsegs()
1866 caddr_t saddr, naddr; in prgetmap() local
1873 for (saddr = seg->s_base; saddr < eaddr; saddr = naddr) { in prgetmap()
1875 &saddr, &naddr, eaddr); in prgetmap()
1876 if (saddr == naddr) in prgetmap()
1881 mp->pr_vaddr = (uintptr_t)saddr; in prgetmap()
1882 mp->pr_size = naddr - saddr; in prgetmap()
[all …]
H A Dprioctl.c3486 caddr_t saddr, naddr; in oprgetmap() local
3493 for (saddr = seg->s_base; saddr < eaddr; saddr = naddr) { in oprgetmap()
3494 prot = pr_getprot(seg, 0, &tmp, &saddr, &naddr, eaddr); in oprgetmap()
3495 if (saddr == naddr) in oprgetmap()
3500 mp->pr_vaddr = saddr; in oprgetmap()
3501 mp->pr_size = naddr - saddr; in oprgetmap()
3502 mp->pr_off = SEGOP_GETOFFSET(seg, saddr); in oprgetmap()
3510 if (SEGOP_GETTYPE(seg, saddr) & MAP_SHARED) in oprgetmap()
3550 caddr_t saddr, naddr; in oprgetmap32() local
3557 for (saddr = seg->s_base; saddr < eaddr; saddr = naddr) { in oprgetmap32()
[all …]
/illumos-gate/usr/src/uts/common/fs/smbsrv/
H A Dsmb_opipe.c130 struct sockaddr_un saddr; in smb_opipe_connect() local
144 bzero(&saddr, sizeof (saddr)); in smb_opipe_connect()
145 saddr.sun_family = AF_UNIX; in smb_opipe_connect()
146 (void) snprintf(saddr.sun_path, sizeof (saddr.sun_path), in smb_opipe_connect()
148 rc = ksocket_connect(opipe->p_socket, (struct sockaddr *)&saddr, in smb_opipe_connect()
149 sizeof (saddr), sr->user_cr); in smb_opipe_connect()
157 struct sockaddr_un saddr; in smb_opipe_exists() local
161 bzero(&saddr, sizeof (saddr)); in smb_opipe_exists()
162 saddr.sun_family = AF_UNIX; in smb_opipe_exists()
163 (void) snprintf(saddr.sun_path, sizeof (saddr.sun_path), in smb_opipe_exists()
[all …]
/illumos-gate/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 …]
/illumos-gate/usr/src/uts/common/io/sata/impl/
H A Dsata.c209 sata_address_t *saddr);
10435 sata_address_t *saddr, struct scsi_inquiry *inq) in sata_get_atapi_inquiry_data() argument
10461 spkt->satapkt_device.satadev_addr = *saddr; in sata_get_atapi_inquiry_data()
10489 cport_mutex = &(SATA_CPORT_MUTEX(sata_hba, saddr->cport)); in sata_get_atapi_inquiry_data()
11169 sata_address_t *saddr = &sata_device->satadev_addr; in sata_add_device() local
11173 cport = saddr->cport; in sata_add_device()
11174 pmport = saddr->pmport; in sata_add_device()
11187 switch (saddr->qual) { in sata_add_device()
11192 saddr->qual = SATA_ADDR_DCPORT; in sata_add_device()
11236 cdip = sata_create_target_node(pdip, sata_hba_inst, saddr); in sata_add_device()
[all …]
/illumos-gate/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()
/illumos-gate/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.h130 in6_addr_t saddr; member
148 in6_addr_t saddr; member
/illumos-gate/usr/src/uts/common/fs/nfs/
H A Dnfs4_vfsops.c1484 struct netbuf *saddr; in update_servinfo4() local
1503 saddr = &svp->sv_addr; in update_servinfo4()
1504 if (saddr->buf != NULL) in update_servinfo4()
1505 kmem_free(saddr->buf, saddr->maxlen); in update_servinfo4()
1506 saddr->buf = kmem_alloc(nfsfsloc->addr->maxlen, KM_SLEEP); in update_servinfo4()
1507 saddr->len = nfsfsloc->addr->len; in update_servinfo4()
1508 saddr->maxlen = nfsfsloc->addr->maxlen; in update_servinfo4()
1509 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 …]
/illumos-gate/usr/src/uts/common/io/ib/clients/rdsv3/
H A Drds_recv.c53 uint32_be_t saddr) in rdsv3_inc_init() argument
59 inc->i_saddr = saddr; in rdsv3_inc_init()
192 rdsv3_recv_incoming(struct rdsv3_connection *conn, uint32_be_t saddr, in rdsv3_recv_incoming() argument
653 uint32_be_t saddr, uint32_be_t daddr, int flip) in rdsv3_inc_info_copy() argument
662 minfo.faddr = saddr; in rdsv3_inc_info_copy()
666 minfo.laddr = saddr; in rdsv3_inc_info_copy()
/illumos-gate/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()
/illumos-gate/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()
/illumos-gate/usr/src/test/net-tests/tests/ipv6/
H A Ddup_bind.py227 (saddr, ifindex) = get_addr(addrstr, args.port, family, test_proto)
229 test_addr = test_proto(name=addrstr, family=family, addr=saddr)
237 (saddr, ifindex) = get_addr(addr, args.port, family, test_proto)
239 test_addr = test_proto(name=addr, family=family, addr=saddr)
/illumos-gate/usr/src/uts/common/exec/elf/
H A Delf.c1683 elf_process_obj_scns(elf_core_ctx_t *ctx, vnode_t *mvp, caddr_t saddr, in elf_process_obj_scns() argument
1780 v[idx].sh_addr = (Addr)(uintptr_t)saddr; in elf_process_obj_scns()
1845 v[idx].sh_addr = (Addr)(uintptr_t)saddr; in elf_process_obj_scns()
1898 v[idx].sh_addr += (Addr)(uintptr_t)saddr; in elf_process_obj_scns()
1915 v[idx].sh_addr += (Addr)(uintptr_t)saddr; in elf_process_obj_scns()
1980 caddr_t saddr = seg->s_base, naddr, eaddr; in elf_process_scns() local
1998 eaddr = saddr + segsize; in elf_process_scns()
1999 prot = pr_getprot(seg, 1, &tmp, &saddr, &naddr, eaddr); in elf_process_scns()
2009 error = elf_process_obj_scns(ctx, mvp, saddr, v, idx, remain, in elf_process_scns()
2255 caddr_t saddr, naddr; in elfcore() local
[all …]
/illumos-gate/usr/src/cmd/sgs/libcrle/common/
H A Ddump.c208 uintptr_t laddr = 0, saddr; in filladdr() local
241 saddr = M_PROUND(prstatus.pr_brkbase + prstatus.pr_brksize); in filladdr()
305 ((_maps->pr_vaddr + _maps->pr_size) <= saddr)) in filladdr()
/illumos-gate/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()
/illumos-gate/usr/src/cmd/mdb/common/modules/sctp/
H A Dsctp.c621 sctp_saddr_ipif_t *saddr = (sctp_saddr_ipif_t *)addr; in print_saddr() local
626 if (mdb_vread(&ipif, sizeof (ipif), (uintptr_t)saddr->saddr_ipifp) == in print_saddr()
628 mdb_warn("cannot read ipif at %p", saddr->saddr_ipifp); in print_saddr()
649 mdb_printf("\t%p\t%N% (%s", saddr->saddr_ipifp, &ipif.sctp_ipif_saddr, in print_saddr()
651 if (saddr->saddr_ipif_dontsrc == 1) in print_saddr()
653 if (saddr->saddr_ipif_unconfirmed == 1) in print_saddr()
655 if (saddr->saddr_ipif_delete_pending == 1) in print_saddr()
1296 sctp_saddr_ipif_t saddr; in sctp_walk_saddr_step() local
1302 if (mdb_vread(&saddr, sizeof (sctp_saddr_ipif_t), saddr_ptr) == -1) { in sctp_walk_saddr_step()
1306 status = wsp->walk_callback(saddr_ptr, &saddr, wsp->walk_cbdata); in sctp_walk_saddr_step()
[all …]
/illumos-gate/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,
1162 static void topipstates(saddr, daddr, sport, dport, protocol, ver, in topipstates() argument
1164 i6addr_t saddr; in topipstates()
1242 if ((saddr.in4.s_addr != INADDR_ANY &&
1243 saddr.in4.s_addr != ips.is_saddr) ||
1251 if ((IP6_NEQ(&saddr, &in6addr_any) &&
[all …]
/illumos-gate/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}" \

1234