Results 1 to 5 of 5
Recently I've been trying to look for libnet documentation and found it. But it didn't work as written,
at least I couldn't compile it
and it's very frustrating. I figured ...
- 10-31-2007 #1Just Joined!
- Join Date
- Apr 2007
- Posts
- 12
GCC : is there anything but libnet?
Recently I've been trying to look for libnet documentation and found it. But it didn't work as written,
at least I couldn't compile it
and it's very frustrating. I figured that because the libnet was in different version.
Is there anything other than libnet to build network packet? Or is there anyone here has good libnet documentation?
- 10-31-2007 #2
Please be as detailed as possible in the answers to these questions.
- Where did you get libnet? From what URL? (Among other things, this will help determine what you're talking about. There are at least two libnet packages out there, completely different from each other, sharing the same name.)
- When you tried to compile it, what happened? Don't paraphrase the error messages; copy and paste them into your response.
- 11-08-2007 #3Just Joined!
- Join Date
- Apr 2007
- Posts
- 12
things and questions 'bout libnet
I'm not sure which one is it, I only installed it from my institute local repository. when I did apt-cache showpkg libnet1-dev, it showed the version :
package: libnet1-dev
Versions:
1.1.2.1-2build1
.... (blah blah)
I got some tutorials, not all of it has been read though (heh heh, looks like I give in too fast).these are the URLs where I found those:
-http://www.packetfactory.net/Projects/libnet/dist/deprecated/manual/lrm.html
(I'm sure this one is deprecated,but I couldn't find the undeprecated one)
-http://www.securityfocus.com/...
(this isn't a tutorial,just reference,I was still directed to URL above)
-Old tutorial about libnet (the copyright said it was 1999), I don't remember where I got this one but the functions written here are completely different from the one in first URL.
-libnet HowTo (Psyk Software: libnet-HOWTO), it just didn't explain how to compile the source
-libnet man page (Linux Documentation - linux.die.net), I haven't tried this one yet, but I think it's similar with the first URL
-and some useless stuffs
I tried to compile it this way :
gcc -Wall `libnet-config --defines` libnet-example-y.c -o foo `libnet-config --libs`
and yield errors like this :
libnet-example-y.c: In function 'main':
libnet-example-y.c:70: warning: pointer targets in assignment differ in signedness
libnet-example-y.c:75: warning: pointer targets in passing argument 1 of 'atoi' differ in signedness
libnet-example-y.c:76: warning: implicit declaration of function 'libnet_name_resolve'
libnet-example-y.c:78: warning: implicit declaration of function 'libnet_error'
libnet-example-y.c:78: error: 'LIBNET_ERR_FATAL' undeclared (first use in this function)
libnet-example-y.c:78: error: (Each undeclared identifier is reported only once
libnet-example-y.c:78: error: for each function it appears in.)
libnet-example-y.c:82: warning: pointer targets in assignment differ in signedness
libnet-example-y.c:87: warning: pointer targets in passing argument 1 of 'atoi' differ in signedness
libnet-example-y.c:106: error: 'LIBNET_IP_H' undeclared (first use in this function)
libnet-example-y.c:111: warning: implicit declaration of function 'libnet_init_packet'
....... (there's still more)
So,that's all,can you help me?
- 11-08-2007 #4
First of all, I don't know anything about libnet, but I've compiled a few packages in my day. So:
If there's anyone out there who's had experience installing libnet, please jump in at any time and take over. Thank you.
Ok. For me to try to figure out what's going on at your end, please start out by doing this:
I'm assuming that when you exploded the package, you got a directory structure of sorts, and you found libnet-example-y.c somewhere in there. (I'm assuming that you didn't copy that file somewhere else to compile it, but tried to compile it right there in the directory in which you originally found it.)
So please position yourself in that directory. After that, do this command at the shell prompt:
Post the result in a reply to this thread.Code:pwd
- 03-05-2009 #5Just Joined!
- Join Date
- Mar 2009
- Posts
- 3
Can any one help me with IP Fragmentation? Which value should i sue so my packet get fragmneted?
Regards
Aamir


Reply With Quote