Searched defs:udp (Results 1 - 25 of 47) sorted by relevance

12

/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_udp.c44 #include <netinet/udp.h>
50 interpret_udp(int flags, struct udphdr *udp, int iplen, int fraglen) argument
61 data = (char *)udp + sizeof (struct udphdr);
62 udplen = ntohs((ushort_t)udp->uh_ulen) - sizeof (struct udphdr);
70 ntohs(udp->uh_dport),
71 ntohs(udp->uh_sport),
72 ntohs((ushort_t)udp->uh_ulen));
75 sunrpc = !reservedport(IPPROTO_UDP, ntohs(udp->uh_dport)) &&
76 !reservedport(IPPROTO_UDP, ntohs(udp->uh_sport)) &&
82 (void) sprintf(get_line((char *)(uintptr_t)udp
[all...]
/illumos-gate/usr/src/lib/libc/port/gen/
H A Datfork.c53 uberdata_t *udp = self->ul_uberdata; local
58 (void) mutex_lock(&udp->atfork_lock);
70 if ((head = udp->atforklist) == NULL) {
71 udp->atforklist = atfp;
81 (void) mutex_unlock(&udp->atfork_lock);
92 uberdata_t *udp = curthread->ul_uberdata; local
96 ASSERT(MUTEX_OWNED(&udp->atfork_lock, curthread));
97 if ((atfork_q = udp->atforklist) != NULL) {
113 uberdata_t *udp = curthread->ul_uberdata; local
117 ASSERT(MUTEX_OWNED(&udp
134 uberdata_t *udp = curthread->ul_uberdata; local
[all...]
H A Derr.c55 uberdata_t *udp = curthread->ul_uberdata; local
63 if (udp->progname == NULL)
64 udp->progname = lmalloc(PROGNAMESIZE);
65 (void) strlcpy(udp->progname, progname, PROGNAMESIZE);
66 __progname = udp->progname;
H A Datexit.c200 uberdata_t *udp = curthread->ul_uberdata; local
208 sap = (struct sigaction *)&udp->siguaction[sig].sig_uaction;
213 rwlp = &udp->siguaction[sig].sig_lock;
241 uberdata_t *udp = self->ul_uberdata; local
248 (void) mutex_lock(&udp->atfork_lock);
249 if ((atfork_q = udp->atforklist) != NULL) {
275 udp->atforklist = atfork_q = next;
283 udp->atforklist = NULL;
289 (void) mutex_unlock(&udp->atfork_lock);
/illumos-gate/usr/src/uts/common/inet/ipf/netinet/
H A Dip_netbios_pxy.c103 udphdr_t *udp; local
111 dlen = fin->fin_dlen - sizeof(*udp);
119 udp = (udphdr_t *)fin->fin_dp;
120 off = (char *)udp - (char *)ip + sizeof(*udp) + fin->fin_ipoff;
125 * udp header;
138 dgmbuf[4] = (char)((udp->uh_sport )&0xFF);
139 dgmbuf[5] = (char)((udp->uh_sport >> 8)&0xFF);
H A Dip_h323_pxy.c294 struct udphdr udp; local
297 newip.ip_len = fin->fin_hlen + sizeof(udp);
301 bzero((char *)&udp, sizeof(udp));
302 udp.uh_sport = port;
308 fi.fin_dp = (char *)&udp;
H A Dip_rpcb_pxy.c16 * rdr <int> <e_ip>/32 port <e_p> -> <i_ip> port <i_p> udp proxy rpcbu
653 /* Decode r_netid. Must be "tcp" or "udp". */
803 udphdr_t *udp; local
848 udp = fin->fin_dp;
849 udp->uh_ulen = htons(ntohs(udp->uh_ulen) + diff);
1132 /* Must have 4 bytes for length & 4 bytes for "tcp" or "udp". */
1147 else if (!strncmp((char *)xp->xp_xsstr, "udp\0", 4))
1478 udphdr_t *udp; local
1480 udp
[all...]
/illumos-gate/usr/src/lib/libc/port/threads/
H A Dcancel.c39 uberdata_t *udp = self->ul_uberdata; local
50 ulwp_unlock(ulwp, udp);
55 ulwp_unlock(self, udp);
72 ulwp_unlock(ulwp, udp);
78 ulwp_unlock(ulwp, udp);
95 uberdata_t *udp = self->ul_uberdata; local
106 ulwp_lock(self, udp);
117 ulwp_unlock(self, udp);
128 ulwp_unlock(self, udp);
132 ulwp_unlock(self, udp);
[all...]
H A Dsema.c87 uberdata_t *udp = self->ul_uberdata; local
88 tdb_sema_stats_t *ssp = SEMA_STATS(sp, udp);
103 if (__td_event_report(self, TD_SLEEP, udp)) {
106 tdb_event(TD_SLEEP, udp);
125 } else if (!udp->uberflags.uf_mt && /* single threaded */
234 uberdata_t *udp = self->ul_uberdata; local
235 tdb_sema_stats_t *ssp = SEMA_STATS(sp, udp);
246 } else if (!udp->uberflags.uf_mt) { /* single threaded */
286 if (__td_event_report(self, TD_LOCK_TRY, udp)) {
288 tdb_event(TD_LOCK_TRY, udp);
301 uberdata_t *udp = self->ul_uberdata; local
[all...]
H A Dalloc.c185 uberdata_t *udp; local
209 udp = &__uberdata;
211 udp = self->ul_uberdata;
213 if (udp->bucket_init == 0) {
214 ASSERT(udp->nthreads == 0);
215 initial_allocation(udp->bucket);
216 udp->bucket_init = 1;
219 bp = &udp->bucket[bucketnum];
H A Dtdb_agent.c127 uberdata_t *udp = curthread->ul_uberdata; local
128 tdb_t *tdbp = &udp->tdb;
131 ASSERT(MUTEX_OWNED(&udp->tdb_hash_lock, curthread));
171 uberdata_t *udp = curthread->ul_uberdata; local
172 tdb_t *tdbp = &udp->tdb;
180 lmutex_lock(&udp->tdb_hash_lock);
181 if (udp->uberflags.uf_tdb_register_sync == REGISTER_SYNC_DISABLE) {
186 udp->uberflags.uf_tdb_register_sync = REGISTER_SYNC_OFF;
187 lmutex_unlock(&udp->tdb_hash_lock);
191 lmutex_unlock(&udp
230 uberdata_t *udp = self->ul_uberdata; local
354 uberdata_t *udp = curthread->ul_uberdata; local
[all...]
H A Dassfail.c177 uberdata_t *udp; local
196 udp = self->ul_uberdata;
197 pid = udp->pid;
202 udp = &__uberdata;
248 if (udp->uberflags.uf_thread_error_detection >= 2)
268 uberdata_t *udp; local
288 udp = self->ul_uberdata;
289 pid = udp->pid;
294 udp = &__uberdata;
337 if (udp
355 uberdata_t *udp; local
[all...]
H A Dsigaction.c74 uberdata_t *udp = self->ul_uberdata; local
88 if (__td_event_report(self, TD_CATCHSIG, udp)) {
91 tdb_event(TD_CATCHSIG, udp);
114 sap = &udp->siguaction[sig].sig_uaction;
122 rwlock_t *rwlp = &udp->siguaction[sig].sig_lock;
366 uberdata_t *udp = self->ul_uberdata; local
378 lrw_wrlock(&udp->siguaction[sig].sig_lock);
380 oaction = udp->siguaction[sig].sig_uaction;
418 udp->siguaction[sig].sig_uaction = tact;
427 tact.sa_sigaction = udp
468 uberdata_t *udp = self->ul_uberdata; local
688 uberdata_t *udp = curthread->ul_uberdata; local
748 uberdata_t *udp = curthread->ul_uberdata; local
[all...]
H A Dpthr_attr.c503 uberdata_t *udp = self->ul_uberdata; local
513 ulwp_lock(self, udp);
557 ulwp_unlock(target, udp);
H A Drwlock.c710 uberdata_t *udp = self->ul_uberdata; local
712 tdb_rwlock_stats_t *rwsp = RWLOCK_STATS(rwlp, udp);
815 uberdata_t *udp = self->ul_uberdata; local
816 tdb_rwlock_stats_t *rwsp = RWLOCK_STATS(rwlp, udp);
852 rwlp->rwlock_ownerpid = udp->pid;
913 uberdata_t *udp = self->ul_uberdata; local
914 tdb_rwlock_stats_t *rwsp = RWLOCK_STATS(rwlp, udp);
971 uberdata_t *udp = self->ul_uberdata; local
972 tdb_rwlock_stats_t *rwsp = RWLOCK_STATS(rwlp, udp);
990 rwlp->rwlock_ownerpid = udp
1013 uberdata_t *udp = self->ul_uberdata; local
[all...]
/illumos-gate/usr/src/grub/grub-0.97/netboot/
H A Dnfs.h39 struct udphdr udp; member in struct:rpc_t
H A Dtftp.h6 #include "udp.h"
37 struct udphdr udp; member in struct:tftp_t
62 struct udphdr udp; member in struct:tftpreq_t
H A Dfsys_tftp.c67 struct udphdr *udp)
71 if (!udp) {
76 if (ntohs(udp->dest) != ival)
104 len = sizeof(tp.ip) + sizeof(tp.udp) + sizeof(tp.opcode) +
155 len = ntohs(tr->udp.len) - sizeof(struct udphdr) - 2;
178 len = sizeof(tp.ip) + sizeof(tp.udp) + sizeof(tp.opcode) + sizeof(tp.u.err.errcode) +
187 iport, ntohs(tr->udp.src),
199 len = ntohs(tr->udp.len) - sizeof(struct udphdr) - 4;
212 oport = ntohs(tr->udp.src);
315 len = ntohs (tr->udp
65 await_tftp(int ival, void *ptr __unused, unsigned short ptype __unused, struct iphdr *ip, struct udphdr *udp) argument
[all...]
/illumos-gate/usr/src/uts/common/inet/ipf/
H A Dip_proxy.c85 #include <netinet/udp.h>
479 udphdr_t *udp = NULL; local
551 udp = (udphdr_t *)fin->fin_dp;
614 } else if (udp != NULL) {
615 tcpudp = udp;
616 csump = &udp->uh_sum;
H A Dip_nat6.c92 #include <netinet/udp.h>
1218 udphdr_t *udp; local
1238 udp = (udphdr_t *)(((char *)oip6) + sizeof (*oip6));
1239 tcp = (tcphdr_t *)udp;
1240 dlen = fin->fin_plen - ((char *)udp - (char *)fin->fin_ip);
1360 (dlen >= 8) && (udp->uh_sum != 0)) {
1369 sum1 = ntohs(udp->uh_sum);
1370 fix_datacksum(&udp->uh_sum, sumd);
1371 sum2 = ntohs(udp->uh_sum);
1382 fix_datacksum(&udp
[all...]
/illumos-gate/usr/src/uts/common/inet/udp/
H A Dudp_stats.c74 udp_t *udp; local
146 udp = connp->conn_udp;
155 if (udp->udp_state == TS_UNBND)
157 else if (udp->udp_state == TS_IDLE)
159 else if (udp->udp_state == TS_DATA_XFER)
192 if (udp->udp_state == TS_DATA_XFER &&
210 (udp->udp_state <= TS_IDLE &&
219 if (udp->udp_state == TS_DATA_XFER) {
243 ude.udpInstance = (uint32_t)(uintptr_t)udp;
271 if (udp
[all...]
/illumos-gate/usr/src/uts/intel/fs/proc/
H A Dprmachdep.c527 user_desc_t *udp; local
545 for (i = LDT_UDBASE, udp = &p->p_ldt[i]; i <= limit; i++, udp++)
546 if (udp->usd_type != 0 || udp->usd_dpl != 0 || udp->usd_p != 0)
558 user_desc_t *udp; local
571 for (i = LDT_UDBASE, udp = &p->p_ldt[i]; i <= limit; i++, udp++)
572 if (udp
[all...]
/illumos-gate/usr/src/uts/intel/ia32/os/
H A Ddesctbls.c370 gdt_update_usegd(uint_t sidx, user_desc_t *udp) argument
374 uint64_t dpa = CPU->cpu_m.mcpu_gdtpa + sizeof (*udp) * sidx;
376 if (HYPERVISOR_update_descriptor(pa_to_ma(dpa), *(uint64_t *)udp))
381 CPU->cpu_gdt[sidx] = *udp;
387 * Writes single descriptor pointed to by udp into a processes
391 ldt_update_segd(user_desc_t *ldp, user_desc_t *udp) argument
404 if (HYPERVISOR_update_descriptor(pa_to_ma(dpa), *(uint64_t *)udp) != 0)
409 *ldp = *udp;
/illumos-gate/usr/src/common/fs/
H A Dhsfs.c237 struct direct *udp; local
256 udp = &hsdep->hs_ufs_dir;
257 if (udp->d_namlen == 1 &&
258 udp->d_name[0] == '.' &&
259 udp->d_name[1] == '\0')
261 if (udp->d_namlen == 2 &&
262 udp->d_name[0] == '.' &&
263 udp->d_name[1] == '.' &&
264 udp->d_name[2] == '\0')
266 if (udp
289 struct direct *udp = &hsdep.hs_ufs_dir; local
644 struct direct *udp = &hsdep->hs_ufs_dir; /* ufs-style dir info */ local
763 struct direct *udp = &hsdep->hs_ufs_dir; /* ufs-style info */ local
[all...]
/illumos-gate/usr/src/uts/common/io/ib/clients/of/sol_uverbs/
H A Dsol_uverbs_qp.c962 ibt_qp_ud_attr_t *udp; local
968 udp = &(qp_infop->qp_transport.ud);
1068 udp->ud_pkey_ix = cmd->pkey_index;
1093 udp->ud_port = cmd->port_num;
1102 udp->ud_qkey = cmd->qkey;
1172 udp->ud_sq_psn = cmd->sq_psn;

Completed in 86 milliseconds

12