- Timestamp:
- Feb 23, 2007 4:53:21 PM (18 years ago)
- Location:
- trunk/src/VBox/Devices/Network/slirp
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/slirp/if.c
r1033 r1048 197 197 */ 198 198 if (ifm->m_flags & M_USEDLIST) { 199 remque( ifm);199 remque(pData, ifm); 200 200 ifm->m_flags &= ~M_USEDLIST; 201 201 } … … 236 236 ifm->ifq_so = so; 237 237 ifs_init(ifm); 238 insque( ifm, ifq);238 insque(pData, ifm, ifq); 239 239 240 240 diddit: … … 256 256 257 257 /* Remove from current queue... */ 258 remque( ifm->ifs_next);258 remque(pData, ifm->ifs_next); 259 259 260 260 /* ...And insert in the new. That'll teach ya! */ 261 insque( ifm->ifs_next, &if_batchq);261 insque(pData, ifm->ifs_next, &if_batchq); 262 262 } 263 263 } … … 331 331 /* Remove it from the queue */ 332 332 ifqt = ifm->ifq_prev; 333 remque( ifm);333 remque(pData, ifm); 334 334 --if_queued; 335 335 336 336 /* If there are more packets for this session, re-queue them */ 337 337 if (ifm->ifs_next != /* ifm->ifs_prev != */ ifm) { 338 insque( ifm->ifs_next, ifqt);338 insque(pData, ifm->ifs_next, ifqt); 339 339 ifs_remque(ifm); 340 340 } -
trunk/src/VBox/Devices/Network/slirp/ip_input.c
r1039 r1048 332 332 #endif /* !VBOX */ 333 333 fp = mtod(t, struct ipq_t *); 334 insque_32( fp, &ipq);334 insque_32(pData, fp, &ipq); 335 335 fp->ipq_ttl = IPFRAGTTL; 336 336 fp->ipq_p = ip->ip_p; … … 463 463 ((struct ip *)ip)->ip_src = fp->ipq_src; 464 464 ((struct ip *)ip)->ip_dst = fp->ipq_dst; 465 remque_32( fp);465 remque_32(pData, fp); 466 466 #ifdef VBOX 467 467 (void) m_free(pData, dtom(pData, fp)); … … 510 510 #endif /* !VBOX */ 511 511 } 512 remque_32( fp);512 remque_32(pData, fp); 513 513 #ifdef VBOX 514 514 (void) m_free(pData, dtom(pData, fp)); -
trunk/src/VBox/Devices/Network/slirp/mbuf.c
r1039 r1048 90 90 } else { 91 91 m = m_freelist.m_next; 92 remque( m);92 remque(pData, m); 93 93 } 94 94 95 95 /* Insert it in the used list */ 96 insque( m,&m_usedlist);96 insque(pData, m,&m_usedlist); 97 97 m->m_flags = (flags | M_USEDLIST); 98 98 … … 123 123 /* Remove from m_usedlist */ 124 124 if (m->m_flags & M_USEDLIST) 125 remque( m);125 remque(pData, m); 126 126 127 127 /* If it's M_EXT, free() it */ … … 137 137 mbuf_alloced--; 138 138 } else if ((m->m_flags & M_FREELIST) == 0) { 139 insque( m,&m_freelist);139 insque(pData, m,&m_freelist); 140 140 m->m_flags = M_FREELIST; /* Clobber other flags */ 141 141 } -
trunk/src/VBox/Devices/Network/slirp/misc.c
r1039 r1048 156 156 inline void 157 157 #endif 158 insque(a, b) 159 void *a, *b; 158 insque(PNATState pData, void *a, void *b) 160 159 { 161 160 register struct quehead *element = (struct quehead *) a; … … 173 172 inline void 174 173 #endif 175 remque(a) 176 void *a; 174 remque(PNATState pData, void *a) 177 175 { 178 176 register struct quehead *element = (struct quehead *) a; -
trunk/src/VBox/Devices/Network/slirp/misc.h
r1033 r1048 79 79 void getouraddr _P((void)); 80 80 #endif /* !VBOX */ 81 inline void slirp_insque _P(( void *, void *));82 inline void slirp_remque _P(( void *));81 inline void slirp_insque _P((PNATState, void *, void *)); 82 inline void slirp_remque _P((PNATState, void *)); 83 83 int add_exec _P((struct ex_list **, int, char *, int, int)); 84 84 int slirp_openpty _P((int *, int *)); -
trunk/src/VBox/Devices/Network/slirp/socket.c
r1039 r1048 95 95 96 96 if(so->so_next && so->so_prev) 97 remque( so); /* crashes if so is not in a queue */97 remque(pData, so); /* crashes if so is not in a queue */ 98 98 99 99 free(so); … … 646 646 return NULL; 647 647 } 648 insque( so,&tcb);648 insque(pData, so,&tcb); 649 649 650 650 /* -
trunk/src/VBox/Devices/Network/slirp/tcp_input.c
r1039 r1048 245 245 q = u32_to_ptr(pData, q->ti_next, struct tcpiphdr *); 246 246 m = REASS_MBUF_GET(u32_to_ptr(pData, q->ti_prev, struct tcpiphdr *)); 247 remque_32( u32_to_ptr(pData, q->ti_prev, struct tcpiphdr *));247 remque_32(pData, u32_to_ptr(pData, q->ti_prev, struct tcpiphdr *)); 248 248 #ifdef VBOX 249 249 m_freem(pData, m); … … 256 256 * Stick new segment in its place. 257 257 */ 258 insque_32( ti, u32_to_ptr(pData, q->ti_prev, struct tcpiphdr *));258 insque_32(pData, ti, u32_to_ptr(pData, q->ti_prev, struct tcpiphdr *)); 259 259 260 260 present: … … 273 273 tp->rcv_nxt += ti->ti_len; 274 274 flags = ti->ti_flags & TH_FIN; 275 remque_32( ti);275 remque_32(pData, ti); 276 276 m = REASS_MBUF_GET(ti); /* XXX */ 277 277 ti = u32_to_ptr(pData, ti->ti_next, struct tcpiphdr *); -
trunk/src/VBox/Devices/Network/slirp/tcp_subr.c
r1039 r1048 326 326 t = u32_to_ptr(pData, t->ti_next, struct tcpiphdr *); 327 327 m = REASS_MBUF_GET(u32_to_ptr(pData, t->ti_prev, struct tcpiphdr *)); 328 remque_32( u32_to_ptr(pData, t->ti_prev, struct tcpiphdr *));328 remque_32(pData, u32_to_ptr(pData, t->ti_prev, struct tcpiphdr *)); 329 329 #ifdef VBOX 330 330 m_freem(pData, m); … … 640 640 return -1; 641 641 642 insque( so, &tcb);642 insque(pData, so, &tcb); 643 643 644 644 return 0; -
trunk/src/VBox/Devices/Network/slirp/udp.c
r1033 r1048 432 432 so->so_expire = curtime + SO_EXPIRE; 433 433 so->so_expire = curtime + SO_EXPIRE; 434 insque( so,&udb);434 insque(pData, so,&udb); 435 435 } 436 436 } … … 759 759 so->s = socket(AF_INET,SOCK_DGRAM,0); 760 760 so->so_expire = curtime + SO_EXPIRE; 761 insque( so,&udb);761 insque(pData, so,&udb); 762 762 763 763 addr.sin_family = AF_INET;
Note:
See TracChangeset
for help on using the changeset viewer.