Questions tagged [libnet]

Libnet is a generic networking API that provides access to some protocols.

Libnet is a generic networking API that provides access to some protocols.

Homepage: http://libnet.sourceforge.net/

61 questions
6
votes
1 answer

using libnet to send ARP request, but arp cache won't update after getting the ARP reply

I need to look up MAC address in the local network and I'm using Linux. What I do is send a ARP request with libnet, but after I send 3 requests, the cache still won't update. I use wireshark to catch the packets. From wireshark, I did get 3 ARP…
Aitjcize
  • 187
  • 1
  • 8
4
votes
1 answer

Function return type is unsigned while it returns -1 for error

I've been using libnet for a while and I've noticed there are some functions which return value is uint32_t which, from my understanding, is a unsigned type. However, in the documentation, it says to return -1 if an error occurred(which is a signed…
DrNoob
  • 75
  • 1
  • 7
4
votes
1 answer

problem with libnet install

when i install libnet by sudo apt-get install libnet1, the program can not find libnet.h and I also can not find it at /usr/local/include or /usr/include. so i download the libnet and make it, but I get the errors make -C lib/ lib make[1]: Entering…
why
  • 23,923
  • 29
  • 97
  • 142
2
votes
1 answer

Libnet TCP checksum error

I am trying to build a TCP packet using libnet library. I use '0' for autocomputation of checksum value in the libnet_build_tcp function. However, it seems the checksum ignores the pseudo-header when being computed resulting in a useless packet…
Keeto
  • 4,074
  • 9
  • 35
  • 58
2
votes
1 answer

libnet sending RST packets

I was just trying out the code snippet here for fun and learning. I did a wireshark capture on the interface and noticed something strange. The SYN packets were sent out as expected and I seem to be receiving SYN ACKs in response. I have a sleep of…
user277465
2
votes
1 answer

Why doesn't passing an array reference for the Host parameter in Net::FTP->new work?

I'm building an FTP client using Net::FTP. The documentation states that the new constructor has a Host option which can be a reference to an array with hosts to try in turn. I don't seem to be able to get this to work. I'm using ActivePerl under…
Larry
1
vote
1 answer

Decoding ICMPv4 packets with libpcap and libnet

My program captures packets from the wireless interface and I can view all human-readable bytes using a function similar to hexdump -C. For one, I can't crack the right syntax for the BPF string so all packets addressed to my machine are flooding in…
lwoivresbo
  • 13
  • 1
  • 4
1
vote
1 answer

Rst packets sent with libnet do not reset the connection

I am trying to do 'rst hijacking' by using a c script with libcap and libnet included. I use libcap to sniff all packets coming from and going to a host given as input to the program via the commandline. Then libnet sends rst packets to the host…
ht332932
  • 85
  • 1
  • 5
1
vote
1 answer

How to supply the Libnet header to Nemesis during installation?

I'm trying to install Nemesis on Fedora 31, but it throws the error below. How can I supply the Libnet header during installation? root@dk:/usr/nembuild/nemesis-1.4$ ./configure --with-libnet-includes=/usr/nembuild/Libnet-1.0.2a/include …
Dave
  • 13
  • 3
1
vote
1 answer

libnet.h no such file or directory

So, I'm trying to compile my C code using the command "gcc -o file file.c", but I get "error: libnet.h: No such file or directory" I included libnet.h (#include ) and I also installed libnet. I'm running CentOS 7.
Davidoff7776
  • 23
  • 1
  • 7
1
vote
0 answers

Error compiling honeyd in Debian

I am trying to install honeyd. the configuration was successfull but the $ make gives me these errors. I have added /etc/ld.config.so to the /usr/local/lib, I have tried everything but the error still exists. collect2: error: ld returned 1 exit…
1
vote
2 answers

Trouble installing libnet-0.10.11 on Ubuntu-9.10

Here's what I did... #tar -xzvf libnet-0.10.11.tar.gz #cd libnet Then I copied the linux.mak file to the port.mak file in the parent directory. Then, as the documentation says, I used make in the present…
pflz
  • 1,891
  • 4
  • 26
  • 32
1
vote
2 answers

libnet error : success

i am trying to create a ping flood program which takes as argument the target ip address and the broadcast ip address. the program will send icmp echo packets to the broadcast address and with the victms ip address as the source. all the hosts on…
Udi-Flp
  • 71
  • 2
  • 6
1
vote
0 answers

libnl-3 neighbor cache - rtnl_neigh_alloc_cache called for multicast address

I am running OSPF protocol on the linux box and "ip neighbor show " lists the below hosts connected to it. 10.11.15.185 dev eth0 lladdr 52:54:00:48:d1:89 STALE 172.31.2.100 dev veth5 lladdr 00:02:00:00:00:01 STALE 10.11.0.1 dev eth0 lladdr…
dd76
  • 37
  • 1
  • 3
1
vote
2 answers

libnet fails to write ip packets

I'm using a program using libnet, and every time I use it, libnet fails to send any packets. Specifically, the function that fails is : libnet_write_ip. It returns -1 on every call. Any ideas what may cause that ? I'm on Mac OS X 10.6.4 Thanks so…
otibom
  • 11
  • 1
1
2 3 4 5