coLinux
Explore
Main Page
All Pages
Community
Interactive Maps
Recent Blog Posts
Top Content
most_popular
most_visited
ExpandingRoot
highest_ratings
newly_changed
UserConfigs
Network
Getting Started with coLinux
Packages and Tools
Dashboard for developing a 64 bit coLinux
Cellphone Internet connection
Step by step in XP
Community
top_users
Community portal
forum
Recent blog posts
FANDOM
Fan Central
BETA
Games
Anime
Movies
TV
Video
Wikis
Explore Wikis
Community Central
Start a Wiki
Don't have an account?
Register
Sign In
Sign In
Register
coLinux
235
pages
Explore
Main Page
All Pages
Community
Interactive Maps
Recent Blog Posts
Top Content
most_popular
most_visited
ExpandingRoot
highest_ratings
newly_changed
UserConfigs
Network
Getting Started with coLinux
Packages and Tools
Dashboard for developing a 64 bit coLinux
Cellphone Internet connection
Step by step in XP
Community
top_users
Community portal
forum
Recent blog posts
Editing
WinPcap
Back to page
Edit
Edit source
View history
Talk (0)
Edit Page
WinPcap
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
The edit appears to have already been undone.
Anti-spam check. Do
not
fill this in!
<!-- '''WinPcap''' --> = [[WinPcap]] = [[WinPcap]] is required by one of several ways to bring up networking in [[coLinux]], see [[coLinuxNetworking]] for details about the different [[coLinux]] networking modes. == What is it? == [[WinPcap]] is essentially a set of a Windows driver and two DLL's, which enables applications to send and receive raw network packets to/from network cards. Receiving raw network packets is also known as packet capturing, therefore the name "'''Win'''dows '''P'''acket '''cap'''ture library". [[WinPcap]] is the windows version of it's unixoid counterpart libpcap. Unlike libpcap, [[WinPcap]] is also able to send raw packets to the network card. On unixoid systems you would use libnet to send raw packets. [[WinPcap]] will run on all recent Windows platforms (9x,ME,NT,2000,XP,2003) except for WinCE/PocketPC and is licensed under a [http://winpcap.polito.it/misc/copyright.htm BSD style license]. == How does it work? == Using common Windows methods, a usual application (e.g. the Firefox browser) won't even see the network card below it. The TCP/IP stack hides the network card and "only" provides high level TCP/IP services. The [[WinPcap]] driver is required by [[coLinux]], as [[coLinux]] requires "direct" access to the network card for native network support, see [[coLinuxNetworking]] for details about the [[coLinux]] networking modes. A simplified example diagram of the network stack in this case could look like this: {|cellspacing="1" border="0" cellpadding="2" |colspan="2"| |style="background:#FF8080"|Linux application (e.g. Mozilla) |- |style="background:#E0E0FF"|Windows application (e.g. Firefox)|| ||style="background:#FF8080"|TCP/IP |- |style="background:#E0E0FF"|Winsock (TCP/IP)|| ||style="background:#80FF80"|coLinux |- |style="background:#E0E0FF"|Windows network driver(s) |style="background:#80FF80"| |style="background:#80FF80"|WinPcap |- |style="background:#E0E0FF"|Network card(s) |} The blue part shows the "usual" Windows TCP/IP network access (with the Firefox running in the host Windows system). The green part shows [[coLinux]]'s network access using [[WinPcap]] "attached" to the Windows network driver. The red part shows the guest linux with an application (e.g. the linux version of Mozilla) running on top of it. Please note: a network build this way is transparent in both ways, e.g. you could set up a DHCP server as a linux application to serve the Winsock TCP/IP with IP addresses. Of course this is also true the other way round, you could run an FTP server in windows and use it from the linux system :-) == Where to get it? == From [http://www.winpcap.org/install/default.htm download] page of http://www.winpcap.org == How to install it? == If you had installed a previous [[WinPcap]] version before, uninstall it (Control Panel -> Software) and reboot. Then simply install the new version by executing the downloaded exe file. A(nother) reboot might be a good idea here. == Troubleshooting == On vista, colinux must be run in Administrator mode to function correctly. Starting colinux from the command line with "runas" doesn't work. However it's possible to start a command shell first, and start colinux from this shell. Common "cable based" Ethernet cards should usually work without problems. '''There are known problems with a lot of Wireless-LAN network drivers (e.g. most of the Intel Centrino (trademark?) drivers are known to fail capturing packets).''' So what to do, if you have problems with your [[WinPcap]] based [[coLinux]] network? First of all, the vast majority of problems occur with '''receiving''' of network packets. Sending of packets will usually work without problems. If you have problems, you might try if you can get packets from the network card. This can be easily done using one of the Windows tools, [[WinPcap]] is often used with: * [http://windump.polito.it/ WinDump]: open source command line packet capture tool * [http://www.wireshark.org/ Wireshark]: open source GUI packet capture and analysing tool * ... there are a lot more out there! So get one of these (I would suggest Wireshark) and install it. You should try to capture data (consult the documentation of the program you use how) from the interface (network card) you would like to work with. If you see packets captured from the network card, it's looking good for you ;-) * If you '''do see''' captured network packets: it's most likely that [[WinPcap]] works on this network card for [[coLinux]] as well :-), double check your [[Configuration XML format| coLinux XML configuration]] and the network settings of your guest linux. * If you '''don't see''' captured network packets: it's most likely that [[WinPcap]] won't work with this network card for co Linux :-(, you may try a different [[coLinux]] networking mode or a different network card. ---- [[MassTranslated]] on Sun Apr 23 17:37:03 UTC 2006 [[Category:Networking]]
Summary:
Please note that all contributions to the coLinux are considered to be released under the CC-BY-SA
Cancel
Editing help
(opens in new window)
Follow on IG
TikTok
Join Fan Lab