Changeset 20306 in vbox for trunk/src/VBox/Devices
- Timestamp:
- Jun 5, 2009 9:16:10 AM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 48201
- Location:
- trunk/src/VBox/Devices/Network/slirp
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/src/VBox/Devices/Network/slirp/debug.h ¶
r15074 r20306 60 60 #endif /* !LOG_ENABLED */ 61 61 62 int debug_init _P((void));63 void ipstats _P((PNATState));64 void tcpstats _P((PNATState));65 void udpstats _P((PNATState));66 void icmpstats _P((PNATState));67 void mbufstats _P((PNATState));68 void sockstats _P((PNATState));62 int debug_init (void); 63 void ipstats (PNATState); 64 void tcpstats (PNATState); 65 void udpstats (PNATState); 66 void icmpstats (PNATState); 67 void mbufstats (PNATState); 68 void sockstats (PNATState); 69 69 -
TabularUnified trunk/src/VBox/Devices/Network/slirp/ip_icmp.h ¶
r16511 r20306 167 167 (type) == ICMP_MASKREQ || (type) == ICMP_MASKREPLY) 168 168 169 void icmp_input _P((PNATState, struct mbuf *, int));170 void icmp_error _P((PNATState, struct mbuf *, u_char, u_char, int, const char *));171 void icmp_reflect _P((PNATState, struct mbuf *));169 void icmp_input (PNATState, struct mbuf *, int); 170 void icmp_error (PNATState, struct mbuf *, u_char, u_char, int, const char *); 171 void icmp_reflect (PNATState, struct mbuf *); 172 172 173 173 struct icmp_msg … … 180 180 LIST_HEAD(icmp_storage, icmp_msg); 181 181 182 int icmp_init _P((PNATState ));183 struct icmp_msg * icmp_find_original_mbuf _P((PNATState , struct ip *));182 int icmp_init (PNATState ); 183 struct icmp_msg * icmp_find_original_mbuf (PNATState , struct ip *); 184 184 185 185 #endif -
TabularUnified trunk/src/VBox/Devices/Network/slirp/mbuf.h ¶
r20164 r20306 137 137 extern int mbuf_max; 138 138 139 void m_init _P((PNATState));140 void msize_init _P((PNATState));141 struct mbuf * m_get _P((PNATState));142 void m_free _P((PNATState, struct mbuf *));143 void m_cat _P((PNATState, register struct mbuf *, register struct mbuf *));144 void m_inc _P((struct mbuf *, int));145 void m_adj _P((struct mbuf *, int));146 int m_copy _P((struct mbuf *, struct mbuf *, int, int));147 struct mbuf * dtom _P((PNATState, void *));139 void m_init (PNATState); 140 void msize_init (PNATState); 141 struct mbuf * m_get (PNATState); 142 void m_free (PNATState, struct mbuf *); 143 void m_cat (PNATState, register struct mbuf *, register struct mbuf *); 144 void m_inc (struct mbuf *, int); 145 void m_adj (struct mbuf *, int); 146 int m_copy (struct mbuf *, struct mbuf *, int, int); 147 struct mbuf * dtom (PNATState, void *); 148 148 149 149 /* -
TabularUnified trunk/src/VBox/Devices/Network/slirp/misc.h ¶
r15093 r20306 60 60 extern int x_port, x_server, x_display; 61 61 62 int show_x _P((char *, struct socket *));63 void redir_x _P((u_int32_t, int, int, int));64 void getouraddr _P((PNATState));65 void slirp_insque _P((PNATState, void *, void *));66 void slirp_remque _P((PNATState, void *));67 int add_exec _P((struct ex_list **, int, char *, int, int));68 int slirp_openpty _P((int *, int *));69 int fork_exec _P((PNATState, struct socket *, char *, int));70 void snooze_hup _P((int));71 void snooze _P((void));72 void relay _P((int));73 void add_emu _P((char *));74 void fd_nonblock _P((int));75 void fd_block _P((int));62 int show_x (char *, struct socket *); 63 void redir_x (u_int32_t, int, int, int); 64 void getouraddr (PNATState); 65 void slirp_insque (PNATState, void *, void *); 66 void slirp_remque (PNATState, void *); 67 int add_exec (struct ex_list **, int, char *, int, int); 68 int slirp_openpty (int *, int *); 69 int fork_exec (PNATState, struct socket *, char *, int); 70 void snooze_hup (int); 71 void snooze (void); 72 void relay (int); 73 void add_emu (char *); 74 void fd_nonblock (int); 75 void fd_block (int); 76 76 77 77 #endif -
TabularUnified trunk/src/VBox/Devices/Network/slirp/sbuf.h ¶
r14964 r20306 23 23 }; 24 24 25 void sbfree _P((struct sbuf *));26 void sbdrop _P((struct sbuf *, int));27 void sbreserve _P((struct sbuf *, int));28 void sbappend _P((PNATState, struct socket *, struct mbuf *));29 void sbappendsb _P((struct sbuf *, struct mbuf *));30 void sbcopy _P((struct sbuf *, int, int, char *));25 void sbfree (struct sbuf *); 26 void sbdrop (struct sbuf *, int); 27 void sbreserve (struct sbuf *, int); 28 void sbappend (PNATState, struct socket *, struct mbuf *); 29 void sbappendsb (struct sbuf *, struct mbuf *); 30 void sbcopy (struct sbuf *, int, int, char *); 31 31 32 32 #endif -
TabularUnified trunk/src/VBox/Devices/Network/slirp/slirp.h ¶
r20301 r20306 156 156 #endif 157 157 158 #ifndef _P159 #ifndef NO_PROTOTYPES160 # define _P(x) x161 #else162 # define _P(x) ()163 #endif164 #endif165 166 158 #ifndef RT_OS_WINDOWS 167 159 # include <netinet/in.h> … … 174 166 175 167 #ifndef HAVE_INET_ATON 176 int inet_aton _P((const char *cp, struct in_addr *ia));168 int inet_aton (const char *cp, struct in_addr *ia); 177 169 #endif 178 170 … … 251 243 #endif 252 244 253 void if_start _P((PNATState));245 void if_start (PNATState); 254 246 255 247 #ifndef HAVE_INDEX 256 char *index _P((const char *, int));248 char *index (const char *, int); 257 249 #endif 258 250 259 251 #ifndef HAVE_GETHOSTID 260 long gethostid _P((void));252 long gethostid (void); 261 253 #endif 262 254 … … 265 257 # define remque_32 remque 266 258 #else 267 extern void insque_32 _P((PNATState, void *, void *));268 extern void remque_32 _P((PNATState, void *));259 extern void insque_32 (PNATState, void *, void *); 260 extern void remque_32 (PNATState, void *); 269 261 #endif 270 262 … … 285 277 286 278 /* if.c */ 287 void if_init _P((PNATState));288 void if_output _P((PNATState, struct socket *, struct mbuf *));279 void if_init (PNATState); 280 void if_output (PNATState, struct socket *, struct mbuf *); 289 281 290 282 /* ip_input.c */ 291 void ip_init _P((PNATState));292 void ip_input _P((PNATState, struct mbuf *));293 struct mbuf * ip_reass _P((PNATState, register struct mbuf *));294 void ip_freef _P((PNATState, struct ipqhead *, struct ipq_t *));295 void ip_slowtimo _P((PNATState));296 void ip_stripoptions _P((register struct mbuf *, struct mbuf *));283 void ip_init (PNATState); 284 void ip_input (PNATState, struct mbuf *); 285 struct mbuf * ip_reass (PNATState, register struct mbuf *); 286 void ip_freef (PNATState, struct ipqhead *, struct ipq_t *); 287 void ip_slowtimo (PNATState); 288 void ip_stripoptions (register struct mbuf *, struct mbuf *); 297 289 298 290 /* ip_output.c */ 299 int ip_output _P((PNATState, struct socket *, struct mbuf *));291 int ip_output (PNATState, struct socket *, struct mbuf *); 300 292 301 293 /* tcp_input.c */ 302 int tcp_reass _P((PNATState, struct tcpcb *, struct tcphdr *, int *, struct mbuf *));303 void tcp_input _P((PNATState, register struct mbuf *, int, struct socket *));304 void tcp_dooptions _P((PNATState, struct tcpcb *, u_char *, int, struct tcpiphdr *));305 void tcp_xmit_timer _P((PNATState, register struct tcpcb *, int));306 int tcp_mss _P((PNATState, register struct tcpcb *, u_int));294 int tcp_reass (PNATState, struct tcpcb *, struct tcphdr *, int *, struct mbuf *); 295 void tcp_input (PNATState, register struct mbuf *, int, struct socket *); 296 void tcp_dooptions (PNATState, struct tcpcb *, u_char *, int, struct tcpiphdr *); 297 void tcp_xmit_timer (PNATState, register struct tcpcb *, int); 298 int tcp_mss (PNATState, register struct tcpcb *, u_int); 307 299 308 300 /* tcp_output.c */ 309 int tcp_output _P((PNATState, register struct tcpcb *));310 void tcp_setpersist _P((register struct tcpcb *));301 int tcp_output (PNATState, register struct tcpcb *); 302 void tcp_setpersist (register struct tcpcb *); 311 303 312 304 /* tcp_subr.c */ 313 void tcp_init _P((PNATState));314 void tcp_template _P((struct tcpcb *));315 void tcp_respond _P((PNATState, struct tcpcb *, register struct tcpiphdr *, register struct mbuf *, tcp_seq, tcp_seq, int));316 struct tcpcb * tcp_newtcpcb _P((PNATState, struct socket *));317 struct tcpcb * tcp_close _P((PNATState, register struct tcpcb *));318 void tcp_drain _P((void));319 void tcp_sockclosed _P((PNATState, struct tcpcb *));320 int tcp_fconnect _P((PNATState, struct socket *));321 void tcp_connect _P((PNATState, struct socket *));322 int tcp_attach _P((PNATState, struct socket *));323 u_int8_t tcp_tos _P((struct socket *));324 int tcp_emu _P((PNATState, struct socket *, struct mbuf *));325 int tcp_ctl _P((PNATState, struct socket *));305 void tcp_init (PNATState); 306 void tcp_template (struct tcpcb *); 307 void tcp_respond (PNATState, struct tcpcb *, register struct tcpiphdr *, register struct mbuf *, tcp_seq, tcp_seq, int); 308 struct tcpcb * tcp_newtcpcb (PNATState, struct socket *); 309 struct tcpcb * tcp_close (PNATState, register struct tcpcb *); 310 void tcp_drain (void); 311 void tcp_sockclosed (PNATState, struct tcpcb *); 312 int tcp_fconnect (PNATState, struct socket *); 313 void tcp_connect (PNATState, struct socket *); 314 int tcp_attach (PNATState, struct socket *); 315 u_int8_t tcp_tos (struct socket *); 316 int tcp_emu (PNATState, struct socket *, struct mbuf *); 317 int tcp_ctl (PNATState, struct socket *); 326 318 struct tcpcb *tcp_drop(PNATState, struct tcpcb *tp, int err); 327 319 -
TabularUnified trunk/src/VBox/Devices/Network/slirp/slirp_config.h ¶
r15791 r20306 40 40 */ 41 41 #undef USE_LOWCPU 42 43 /* Define this if your compiler doesn't like prototypes */44 #ifndef __STDC__45 #define NO_PROTOTYPES46 #endif47 42 48 43 /*********************************************************/ … … 127 122 #define const const 128 123 129 /* Define if your compiler doesn't like prototypes */130 #undef NO_PROTOTYPES131 132 124 /* Define if you don't have u_int32_t etc. typedef'd */ 133 125 #undef NEED_TYPEDEFS -
TabularUnified trunk/src/VBox/Devices/Network/slirp/socket.h ¶
r20164 r20306 154 154 #endif 155 155 156 void so_init _P((void));157 struct socket * solookup _P((struct socket *, struct in_addr, u_int, struct in_addr, u_int));158 struct socket * socreate _P((void));159 void sofree _P((PNATState, struct socket *));156 void so_init (void); 157 struct socket * solookup (struct socket *, struct in_addr, u_int, struct in_addr, u_int); 158 struct socket * socreate (void); 159 void sofree (PNATState, struct socket *); 160 160 #ifdef VBOX_WITH_SLIRP_MT 161 161 void soread_queue (PNATState, struct socket *, int *); 162 162 #endif 163 int soread _P((PNATState, struct socket *));164 void sorecvoob _P((PNATState, struct socket *));165 int sosendoob _P((struct socket *));166 int sowrite _P((PNATState, struct socket *));167 void sorecvfrom _P((PNATState, struct socket *));168 int sosendto _P((PNATState, struct socket *, struct mbuf *));169 struct socket * solisten _P((PNATState, u_int, u_int32_t, u_int, int));170 void sorwakeup _P((struct socket *));171 void sowwakeup _P((struct socket *));172 void soisfconnecting _P((register struct socket *));173 void soisfconnected _P((register struct socket *));174 void sofcantrcvmore _P((struct socket *));175 void sofcantsendmore _P((struct socket *));176 void soisfdisconnected _P((struct socket *));177 void sofwdrain _P((struct socket *));163 int soread (PNATState, struct socket *); 164 void sorecvoob (PNATState, struct socket *); 165 int sosendoob (struct socket *); 166 int sowrite (PNATState, struct socket *); 167 void sorecvfrom (PNATState, struct socket *); 168 int sosendto (PNATState, struct socket *, struct mbuf *); 169 struct socket * solisten (PNATState, u_int, u_int32_t, u_int, int); 170 void sorwakeup (struct socket *); 171 void sowwakeup (struct socket *); 172 void soisfconnecting (register struct socket *); 173 void soisfconnected (register struct socket *); 174 void sofcantrcvmore (struct socket *); 175 void sofcantsendmore (struct socket *); 176 void soisfdisconnected (struct socket *); 177 void sofwdrain (struct socket *); 178 178 179 179 #endif /* _SOCKET_H_ */ -
TabularUnified trunk/src/VBox/Devices/Network/slirp/tcp_timer.h ¶
r14964 r20306 130 130 struct tcpcb; 131 131 132 void tcp_fasttimo _P((PNATState));133 void tcp_slowtimo _P((PNATState));134 void tcp_canceltimers _P((struct tcpcb *));135 struct tcpcb * tcp_timers _P((PNATState, register struct tcpcb *, int));132 void tcp_fasttimo (PNATState); 133 void tcp_slowtimo (PNATState); 134 void tcp_canceltimers (struct tcpcb *); 135 struct tcpcb * tcp_timers (PNATState, register struct tcpcb *, int); 136 136 137 137 #endif -
TabularUnified trunk/src/VBox/Devices/Network/slirp/udp.h ¶
r17056 r20306 102 102 struct mbuf; 103 103 104 void udp_init _P((PNATState));105 void udp_input _P((PNATState, register struct mbuf *, int));106 int udp_output _P((PNATState, struct socket *, struct mbuf *, struct sockaddr_in *));107 int udp_attach _P((PNATState, struct socket *, int service_port));108 void udp_detach _P((PNATState, struct socket *));109 u_int8_t udp_tos _P((struct socket *));110 void udp_emu _P((PNATState, struct socket *, struct mbuf *));111 struct socket * udp_listen _P((PNATState, u_int, u_int32_t, u_int, int));104 void udp_init (PNATState); 105 void udp_input (PNATState, register struct mbuf *, int); 106 int udp_output (PNATState, struct socket *, struct mbuf *, struct sockaddr_in *); 107 int udp_attach (PNATState, struct socket *, int service_port); 108 void udp_detach (PNATState, struct socket *); 109 u_int8_t udp_tos (struct socket *); 110 void udp_emu (PNATState, struct socket *, struct mbuf *); 111 struct socket * udp_listen (PNATState, u_int, u_int32_t, u_int, int); 112 112 int udp_output2(PNATState pData, struct socket *so, struct mbuf *m, 113 113 struct sockaddr_in *saddr, struct sockaddr_in *daddr,
Note:
See TracChangeset
for help on using the changeset viewer.