Changeset 22894 in vbox
- Timestamp:
- Sep 10, 2009 3:33:08 AM (15 years ago)
- Location:
- trunk/src/VBox/Devices/Network/slirp
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/slirp/slirp.h
r22878 r22894 264 264 265 265 /* cksum.c */ 266 #ifndef VBOX_WITH_SLIRP_BSD_MBUF 266 267 int cksum(struct mbuf *m, int len); 268 #else 269 typedef uint16_t u_short; 270 typedef unsigned int u_int; 271 #include "in_cksum.h" 272 #endif 267 273 268 274 /* if.c */ … … 358 364 359 365 # ifdef alias_addr 360 # error alias_addr has already defined!!! 366 # ifndef VBOX_SLIRP_BSD 367 # error alias_addr has already defined!!! 368 # else 369 # undef alias_addr 370 # endif 361 371 # endif 362 372 … … 390 400 # define fprintf vbox_slirp_fprintf 391 401 # define printf vbox_slirp_printf 392 static void vbox_slirp_printV(char *format, va_list args) 402 # include "ext.h" 403 #endif /*VBOX_SLIRP_ALIAS*/ 404 405 #ifdef VBOX_WITH_SLIRP_BSD_MBUF 406 /* @todo might be useful to make it configurable, 407 * especially in terms of Intnet behind NAT 408 */ 409 # define maxusers 32 410 # define max_protohdr 0 411 /* @todo (r=vvl) for now ignore value, 412 * latter here should be fetching of tuning parameters entered 413 */ 414 # define TUNABLE_INT_FETCH(name, pval) do { } while (0) 415 # define SYSCTL_PROC(a0, a1, a2, a3, a4, a5, a6, a7, a8) 416 # define SYSCTL_STRUCT(a0, a1, a2, a3, a4, a5, a6) 417 # define SYSINIT(a0, a1, a2, a3, a4) 418 # define sysctl_handle_int(a0, a1, a2, a3) 0 419 # define EVENTHANDLER_INVOKE(a) do{}while(0) 420 # define EVENTHANDLER_REGISTER(a0, a1, a2, a3) do{}while(0) 421 # define KASSERT AssertMsg 422 423 struct dummy_req 393 424 { 394 char buffer[1024]; 395 memset(buffer, 0, 1024); 396 RTStrPrintfV(buffer, 1024, format, args); 397 398 # if defined(DEBUG_vvl) 399 LogRel(("NAT:ALIAS: %s\n", buffer)); 400 # else 401 Log2(("NAT:ALIAS: %s\n", buffer)); 402 # endif 403 } 404 static void vbox_slirp_printf(char *format, ...) 405 { 406 va_list args; 407 va_start(args, format); 408 vbox_slirp_printV(format, args); 409 va_end(args); 410 } 411 static void vbox_slirp_fprintf(void *ignored, char *format, ...) 412 { 413 va_list args; 414 va_start(args, format); 415 vbox_slirp_printV(format, args); 416 va_end(args); 417 } 418 #endif /*VBOX_SLIRP_ALIAS*/ 425 void *newptr; 426 }; 427 428 #define SYSCTL_HANDLER_ARGS PNATState pData, void *oidp, struct dummy_req *req 429 430 void mbuf_init(void *); 431 # define cksum(m, len) in_cksum_skip((m), (len), 0) 432 #endif 419 433 420 434 int ftp_alias_load(PNATState);
Note:
See TracChangeset
for help on using the changeset viewer.