Quote:
# if you want to use external interfaces with inet, you should install
# winpcap (on windows) or libpcap-dev (on linux) and re-run ./configure in
# the omnetpp root directory and comment out the following line:
#HAVE_PCAP=no
Meaning winpcap is still not working ... :(
So I think I have to comment out the HAVE_PCAP=no and find out why
isnt he finding the winpcap lib for linking.
2011/4/18 Henrique António Evaristo <haeva...@gmail.com>:
Thnx,
Henrique
PS.: Why are the defaults soo messed up in windows?
Anyone knows How to fix this in windows ?
Anyway ... thanks allot Wenchun, without your tip I couldnt have made it.
Mirkamol:
You need to follow the instructions provided by OMNET and INET
regarding the installation with winpcap and then as Wenchun pointed
out you need to copy the file libpcap.a from "msys\lib\" to
"mingw\lib\" otherwise the linker will not find it when building INET.
After that you should be ok, let me know if you still having problems,
I will gladly help you.
Henrique
2011/5/2 Henrique António Evaristo <haeva...@gmail.com>:
Don't forget to update also the finalize function.
Also something to be aware of that I ran into also is the fact that,
at least on my machine, Win XP, the sendto function reports an error
code 10049 (if im not mistaken) that I believe it has to do with some
error in the windows socket library ... because when using ICMP
protocol or ARP, there is no such think as a port ... and even though
you are supposed to leave it at 0 it will not work and report it as a
wrong address.
The solution I've implemented makes total use of the Libpcap library
to send and receive packets overriding the sockets.
This has the added advantage that you take control of everything ( I
ended up reimplementing my own versions of the Real Time Scheduler and
the Real Time Interface) but also the disadvantage that you need to
build the Ethernet frame yourself, and also the IP header checksum
calculation ... among other small details.
Its not soo difficult to do but it takes some time, but since I
already lost soo much time trying to get omnet working on windows that
I ended giving up. Not many people here is willing to help who uses
windows ...
I've also detected some problems on the eclipse IDE, at least on
windows... Im trying to avoid using it now.
Best of luck,
Henrique
On Tue, May 17, 2011 at 5:04 PM, Rafael <rafael7...@gmail.com> wrote:
>
> Hello, Henrique.
> Yes, I am using Win 7.
>