Home
last modified time | relevance | path

Searched refs:sip (Results 1 – 25 of 69) sorted by relevance

123

/freebsd/sys/kern/
H A Dinit_main.c259 struct sysinit *sip; in mi_startup() local
288 while ((sip = STAILQ_FIRST(&sysinit_list)) != NULL) { in mi_startup()
290 STAILQ_INSERT_TAIL(&sysinit_done_list, sip, next); in mi_startup()
292 if (sip->subsystem == SI_SUB_DUMMY) in mi_startup()
295 if (sip->subsystem > last) in mi_startup()
296 BOOTTRACE_INIT("sysinit 0x%7x", sip->subsystem); in mi_startup()
299 if (sip->subsystem > last && verbose_sysinit != 0) { in mi_startup()
307 func = symbol_name((vm_offset_t)sip->func, in mi_startup()
309 data = symbol_name((vm_offset_t)sip->udata, in mi_startup()
314 printf(" %s(%p)... ", func, sip->udata); in mi_startup()
[all …]
H A Dsys_generic.c1852 seldrain(struct selinfo *sip) in seldrain() argument
1863 doselwakeup(sip, -1); in seldrain()
1870 selrecord(struct thread *selector, struct selinfo *sip) in selrecord() argument
1892 mtxp = sip->si_mtx; in selrecord()
1894 mtxp = mtx_pool_find(mtxpool_select, sip); in selrecord()
1898 sfp->sf_si = sip; in selrecord()
1902 * Now that we've locked the sip, check for initialization. in selrecord()
1905 if (sip->si_mtx == NULL) { in selrecord()
1906 sip->si_mtx = mtxp; in selrecord()
1907 TAILQ_INIT(&sip in selrecord()
1918 selwakeup(struct selinfo * sip) selwakeup() argument
1925 selwakeuppri(struct selinfo * sip,int pri) selwakeuppri() argument
1934 doselwakeup(struct selinfo * sip,int pri) doselwakeup() argument
[all...]
/freebsd/contrib/smbfs/smbutil/
H A Ddumptree.c91 print_shareinfo(struct smb_share_info *sip) in print_shareinfo() argument
95 iprintf(4, "Share: %s", sip->sname); in print_shareinfo()
96 printf("(%s:%s) %o", user_from_uid(sip->uid, 0), in print_shareinfo()
97 group_from_gid(sip->gid, 0), sip->mode); in print_shareinfo()
101 iprintf(8, "flags: 0x%04x %s\n", sip->flags, in print_shareinfo()
102 smb_printb(buf, sip->flags, ss_flags)); in print_shareinfo()
103 iprintf(8, "usecount: %d\n", sip->usecount); in print_shareinfo()
/freebsd/sys/contrib/openzfs/module/zfs/
H A Dspa_misc.c2267 spa_import_progress_t *sip = (spa_import_progress_t *)data; in spa_import_progress_show() local
2270 (u_longlong_t)sip->pool_guid, (u_longlong_t)sip->spa_load_state, in spa_import_progress_show()
2271 (u_longlong_t)sip->mmp_sec_remaining, in spa_import_progress_show()
2272 (u_longlong_t)sip->spa_load_max_txg, in spa_import_progress_show()
2273 (sip->pool_name ? sip->pool_name : "-"), in spa_import_progress_show()
2274 (sip->spa_load_notes ? sip->spa_load_notes : "-")); in spa_import_progress_show()
2283 spa_import_progress_t *sip; in spa_import_progress_truncate() local
2285 sip = list_remove_head(&shl->procfs_list.pl_list); in spa_import_progress_truncate()
2286 if (sip->pool_name) in spa_import_progress_truncate()
2287 spa_strfree(sip->pool_name); in spa_import_progress_truncate()
[all …]
/freebsd/sys/sys/
H A Dselinfo.h53 void seldrain(struct selinfo *sip);
54 void selrecord(struct thread *selector, struct selinfo *sip);
55 void selwakeup(struct selinfo *sip);
56 void selwakeuppri(struct selinfo *sip, int pri);
/freebsd/lib/libc/rpc/
H A Drpc_generic.c454 __rpc_fd2sockinfo(int fd, struct __rpc_sockinfo *sip) in __rpc_fd2sockinfo() argument
463 sip->si_alen = len; in __rpc_fd2sockinfo()
480 sip->si_af = ss.ss_family; in __rpc_fd2sockinfo()
481 sip->si_proto = proto; in __rpc_fd2sockinfo()
482 sip->si_socktype = type; in __rpc_fd2sockinfo()
491 __rpc_nconf2sockinfo(const struct netconfig *nconf, struct __rpc_sockinfo *sip) in __rpc_nconf2sockinfo() argument
499 sip->si_af = na_cvt[i].af; in __rpc_nconf2sockinfo()
500 sip->si_proto = na_cvt[i].protocol; in __rpc_nconf2sockinfo()
501 sip->si_socktype = in __rpc_nconf2sockinfo()
503 if (sip->si_socktype == -1) in __rpc_nconf2sockinfo()
[all …]
/freebsd/tests/sys/netinet/
H A Dredirect.py59 def construct_icmp_redirect(smac, dmac, sip, dip, route_dst, route_gw): argument
61 l3 = sc.IP(src=sip, dst=dip)
63 orig_ip = sc.IP(src=sip, dst=route_dst)
80 pkt = construct_icmp_redirect(args.smac, args.dmac, args.sip, args.dip,
H A Dforward.sh76 --sip ${src_ip} --dip ${ip4a} \
136 --sip ${src_ip} --dip ${dst_ip} \
190 --sip ${src_ip} --dip ${ip4a} \
250 --sip ${src_ip} --dip ${dst_ip} \
/freebsd/tools/tools/net80211/wesside/dics/
H A Ddics.c184 unsigned int udp_checksum(unsigned char *stuff0, int len, struct in_addr *sip, in udp_checksum() argument
197 memcpy(&ph->ippseudo_src, sip, 4); in udp_checksum()
208 void send_stuff(int s, char* sip, char* ip, unsigned short port, int dlen) { in send_stuff() argument
246 inet_aton(sip, &iph->ip_src); in send_stuff()
318 unsigned char* sip = 0; in main() local
331 sip = argv[1]; in main()
430 send_stuff(s, sip, ip, port, 69 + (TTLSENT-ttl)); in main()
437 send_stuff(s, sip, ip, port, PRGA_LEN); in main()
/freebsd/libexec/bootpd/
H A Dtrygetif.c35 struct sockaddr_in *sip; /* Interface address */ local
68 sip = (struct sockaddr_in *) &(ifr->ifr_addr);
69 printf("Intf-addr:%s\n", inet_ntoa(sip->sin_addr));
H A Dgetif.c46 struct sockaddr_in *sip; in getif() local
84 sip = (struct sockaddr_in *) &ifrq->ifr_addr; in getif()
85 m = nmatch((u_char *)addrp, (u_char *)&(sip->sin_addr)); in getif()
/freebsd/tests/sys/common/
H A Dnet_receiver.py62 s.bind((args.sip, port))
63 print('binding on {}:{}'.format(args.sip, port))
92 s.bind((args.sip, port))
93 print('binding on {}:{}'.format(args.sip, port))
H A Dsender.py95 ip = sc.IP(src=args.sip, dst=args.dip)
130 ip = sc.IP(src=args.sip, dst=args.dip,
174 ip = sc.IPv6(src=args.sip, dst=args.dip)
/freebsd/sys/rpc/
H A Drpc_generic.c185 __rpc_socket2sockinfo(struct socket *so, struct __rpc_sockinfo *sip) in __rpc_socket2sockinfo() argument
197 sip->si_alen = ss.ss_len; in __rpc_socket2sockinfo()
221 sip->si_af = family; in __rpc_socket2sockinfo()
222 sip->si_proto = proto; in __rpc_socket2sockinfo()
223 sip->si_socktype = type; in __rpc_socket2sockinfo()
232 __rpc_nconf2sockinfo(const struct netconfig *nconf, struct __rpc_sockinfo *sip) in __rpc_nconf2sockinfo() argument
240 sip->si_af = na_cvt[i].af; in __rpc_nconf2sockinfo()
241 sip->si_proto = na_cvt[i].protocol; in __rpc_nconf2sockinfo()
242 sip->si_socktype = in __rpc_nconf2sockinfo()
244 if (sip->si_socktype == -1) in __rpc_nconf2sockinfo()
[all …]
/freebsd/cddl/contrib/opensolaris/lib/libdtrace/common/
H A Ddt_module.c1047 dtrace_syminfo_t *sip; in dt_module_extern() local
1062 if ((sip = malloc(sizeof (dtrace_syminfo_t))) == NULL) { in dt_module_extern()
1072 free(sip); in dt_module_extern()
1076 sip->dts_object = dmp->dm_name; in dt_module_extern()
1077 sip->dts_name = idp->di_name; in dt_module_extern()
1078 sip->dts_id = idp->di_id; in dt_module_extern()
1080 idp->di_data = sip; in dt_module_extern()
1429 GElf_Sym *symp, dtrace_syminfo_t *sip) in dtrace_lookup_by_name()
1470 if (sip != NULL) { in dtrace_lookup_by_name()
1471 sip in dtrace_lookup_by_name()
1427 dtrace_lookup_by_name(dtrace_hdl_t * dtp,const char * object,const char * name,GElf_Sym * symp,dtrace_syminfo_t * sip) dtrace_lookup_by_name() argument
1509 dtrace_lookup_by_addr(dtrace_hdl_t * dtp,GElf_Addr addr,GElf_Sym * symp,dtrace_syminfo_t * sip) dtrace_lookup_by_addr() argument
1660 dtrace_symbol_type(dtrace_hdl_t * dtp,const GElf_Sym * symp,const dtrace_syminfo_t * sip,dtrace_typeinfo_t * tip) dtrace_symbol_type() argument
[all...]
/freebsd/libexec/bootpd/bootpgw/
H A Dbootpgw.c545 struct sockaddr_in *sip; in handle_request()
559 sip = (struct sockaddr_in *) &(ifr->ifr_addr); in handle_request()
560 bp->bp_giaddr = sip->sin_addr; in handle_request()
605 struct sockaddr_in *sip; in handle_reply() local
628 sip = (struct sockaddr_in *) &(ifr->ifr_addr); in handle_reply()
629 bp->bp_giaddr = sip->sin_addr; in handle_reply()
/freebsd/tests/sys/netinet6/
H A Dredirect.py59 def construct_icmp6_redirect(smac, dmac, sip, dip, route_dst, route_gw): argument
61 l3 = sc.IPv6(src=sip, dst=dip)
79 pkt = construct_icmp6_redirect(args.smac, args.dmac, args.sip, args.dip,
H A Dforward6.sh90 --sip ${src_ip} --dip ${ip6a} \
164 --sip ${src_ip} --dip ${dst_ip} \
239 --sip ${src_ip} --dip ${dst_ip} \
308 --sip ${src_ip} --dip ${ip6a} \
382 --sip ${src_ip} --dip ${dst_ip} \
457 --sip ${src_ip} --dip ${dst_ip} \
/freebsd/sys/netsmb/
H A Dsmb_conn.c902 smb_share_getinfo(struct smb_share *ssp, struct smb_share_info *sip) in smb_share_getinfo() argument
904 bzero(sip, sizeof(struct smb_share_info)); in smb_share_getinfo()
905 sip->itype = SMB_INFO_SHARE; in smb_share_getinfo()
906 sip->usecount = ssp->obj.co_usecount; in smb_share_getinfo()
907 sip->tid = ssp->ss_tid; in smb_share_getinfo()
908 sip->type= ssp->ss_type; in smb_share_getinfo()
909 sip->uid = ssp->ss_uid; in smb_share_getinfo()
910 sip->gid = ssp->ss_grp; in smb_share_getinfo()
911 sip->mode= ssp->ss_mode; in smb_share_getinfo()
912 sip->flags = ssp->obj.co_flags; in smb_share_getinfo()
[all …]
/freebsd/sys/fs/nfs/
H A Dnfs_commonport.c292 nfsvno_getfs(struct nfsfsinfo *sip, int isdgram) in nfsvno_getfs() argument
305 sip->fs_rtmax = nfs_srvmaxio; in nfsvno_getfs()
306 sip->fs_rtpref = pref; in nfsvno_getfs()
307 sip->fs_rtmult = NFS_FABLKSIZE; in nfsvno_getfs()
308 sip->fs_wtmax = nfs_srvmaxio; in nfsvno_getfs()
309 sip->fs_wtpref = pref; in nfsvno_getfs()
310 sip->fs_wtmult = NFS_FABLKSIZE; in nfsvno_getfs()
311 sip->fs_dtpref = pref; in nfsvno_getfs()
312 sip->fs_maxfilesize = 0xffffffffffffffffull; in nfsvno_getfs()
313 sip->fs_timedelta.tv_sec = 0; in nfsvno_getfs()
[all …]
/freebsd/sys/contrib/openzfs/config/
H A Dkernel-rename.m410 static int rename_fn(struct inode *sip, struct dentry *sdp,
28 static int rename_fn(struct user_namespace *user_ns, struct inode *sip,
43 static int rename_fn(struct mnt_idmap *idmap, struct inode *sip,
/freebsd/sys/netinet/
H A Dif_ether.c345 arprequest_internal(struct ifnet *ifp, const struct in_addr *sip, in arprequest_internal() argument
359 if (sip == NULL) { in arprequest_internal()
373 sip = &IA_SIN(ifa)->sin_addr; in arprequest_internal()
376 sip = &IA_SIN(ifa)->sin_addr; in arprequest_internal()
379 if (0 == ((sip->s_addr ^ tip->s_addr) & in arprequest_internal()
383 if (sip == NULL) { in arprequest_internal()
407 bcopy(sip, ar_spa(ah), ah->ar_pln); in arprequest_internal()
440 arprequest(struct ifnet *ifp, const struct in_addr *sip, in arprequest() argument
444 (void) arprequest_internal(ifp, sip, tip, enaddr); in arprequest()
/freebsd/sbin/ipf/ipftest/
H A Dipftest.c65 struct in_addr sip; in main() local
80 sip.s_addr = 0; in main()
160 sip.s_addr = inet_addr(optarg); in main()
207 if (sip.s_addr) in main()
208 dir = !(sip.s_addr == ip->ip_src.s_addr); in main()
/freebsd/sys/dev/cxgbe/
H A Dt4_filter.c91 hash = fnv_32_buf(&ft->sip[0], 16, FNV1_32_INIT); in hf_hashfn_4t()
94 hash = fnv_32_buf(&ft->sip[0], 4, FNV1_32_INIT); in hf_hashfn_4t()
225 if (bcmp(&fs1->val.sip[0], &fs2->val.sip[0], n) || in filter_eq()
767 bcopy(f->fs.val.sip, fwr->fip, sizeof (fwr->fip)); in set_tcamfilter()
768 bcopy(f->fs.mask.sip, fwr->fipm, sizeof (fwr->fipm)); in set_tcamfilter()
897 if (fs->mask.sip[i] != 0xff) in is_4tuple_specified()
1531 cpl->peer_ip_hi = *(uint64_t *)(&f->fs.val.sip); in mk_act_open_req6()
1532 cpl->peer_ip_lo = *(((uint64_t *)&f->fs.val.sip) + 1); in mk_act_open_req6()
1575 cpl->peer_ip = f->fs.val.sip[ in mk_act_open_req()
1892 set_nat_params(struct adapter * sc,struct filter_entry * f,const bool dip,const bool sip,const bool dp,const bool sp) set_nat_params() argument
[all...]
/freebsd/sys/dev/cxgb/
H A Dcxgb_ioctl.h152 uint32_t sip; member
221 uint32_t sip; member

123