misc.c revision 20bc99aa3ad84a338b7a9c1edc14682bce25d761
0N/A * Copyright (C) 2006-2010 Sun Microsystems, Inc. 4764N/A * This file is part of VirtualBox Open Source Edition (OSE), as 0N/A * you can redistribute it and/or modify it under the terms of the GNU 0N/A * General Public License (GPL) as published by the Free Software 0N/A * Foundation, in version 2 as it comes in the "COPYING" file of the 0N/A * VirtualBox OSE distribution. VirtualBox OSE is distributed in the 0N/A * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. 0N/A * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa 0N/A * additional information or have any questions. 0N/A * This code is based on: 0N/A * Copyright (c) 1995 Danny Gasparovski. 0N/A * Please read the file COPYRIGHT for the 0N/A * terms and conditions of the copyright. 2490N/A * Get our IP address and put it in our_addr 0N/A /* element->qh_link = NULL; TCP FIN1 crashes if you do this. Why ? */ 0N/A * Set fd blocking and non-blocking /* We're on master zone and we cant allocate more */ /* we're on sub-zone we need get chunk of master zone and split * it for sub-zone conforming chunks. /* it's chunk descriptor of master zone we should remove it * from the master list first /* @todo should we alter count of master counters? */ /* @todo '+ zone->size' should be depend on flag */ /* check bourder magic */ /*@todo (vvl) this function supposed to work with special zone storing /* for returning pointer to counter we need get 0 elemnt */ Log((
"NAT:UMA: %p seems to be allocated on heap ... freeing\n",
mem));
/*@todo (r=vvl) make it wiser*/ /*@todo do finalize here.*/ #
endif /* VBOX_WITH_SLIRP_BSD_MBUF */