fix compile for win32

git-svn-id: http://btstack.googlecode.com/svn/trunk@2983 1a0a8af8-31b5-11de-8e0c-53a27eea117e
don't use ntohl

git-svn-id: http://btstack.googlecode.com/svn/trunk@2984 1a0a8af8-31b5-11de-8e0c-53a27eea117e
add winsock2 for gethostname on win32

git-svn-id: http://btstack.googlecode.com/svn/trunk@2985 1a0a8af8-31b5-11de-8e0c-53a27eea117e
Allways call bnep_run() in bnep_hci_event_handler(). Even if the incomming event
if unknown. Otherwise package handling could stop

git-svn-id: http://btstack.googlecode.com/svn/trunk@2986 1a0a8af8-31b5-11de-8e0c-53a27eea117e
set usb configuration 1, don't try to detach kernel on WIN32 either

git-svn-id: http://btstack.googlecode.com/svn/trunk@2987 1a0a8af8-31b5-11de-8e0c-53a27eea117e
don't handle SIGPIPE on windows yet

git-svn-id: http://btstack.googlecode.com/svn/trunk@2988 1a0a8af8-31b5-11de-8e0c-53a27eea117e
drop non-usb examples

git-svn-id: http://btstack.googlecode.com/svn/trunk@2989 1a0a8af8-31b5-11de-8e0c-53a27eea117e
use $^ where possible

git-svn-id: http://btstack.googlecode.com/svn/trunk@2990 1a0a8af8-31b5-11de-8e0c-53a27eea117e
drop h4, link against winsock2 on win32

git-svn-id: http://btstack.googlecode.com/svn/trunk@2991 1a0a8af8-31b5-11de-8e0c-53a27eea117e
Fixed not freed packet buffer bug, when packet size exceeds MTU in bnep_send()
Fixed max frame size calculation

git-svn-id: http://btstack.googlecode.com/svn/trunk@2992 1a0a8af8-31b5-11de-8e0c-53a27eea117e
Set HCI_ACL_PAYLOAD_SIZE to 1695 (1691 + 4). This is at least enough to support
the minimum l2cap mtu of 1691 bytes, required by bnep

git-svn-id: http://btstack.googlecode.com/svn/trunk@2993 1a0a8af8-31b5-11de-8e0c-53a27eea117e
Defined HCI_INCOMING_PRE_BUFFER_SIZE
(14 Bytes = 2 * sizeof(bd_addr_t) + sizeof(uint16_t))
This avoids extra copying of the ethernet frame into a static buffer

bnep.c implements two solutions with and without HCI_INCOMING_PRE_BUFFER_SIZE
defined

git-svn-id: http://btstack.googlecode.com/svn/trunk@2994 1a0a8af8-31b5-11de-8e0c-53a27eea117e
Removed unused variable from bnep_packet_handler()

git-svn-id: http://btstack.googlecode.com/svn/trunk@2995 1a0a8af8-31b5-11de-8e0c-53a27eea117e
Removed unused variables

git-svn-id: http://btstack.googlecode.com/svn/trunk@2996 1a0a8af8-31b5-11de-8e0c-53a27eea117e