0

I'm building my own packets and sending them through a raw socket. The packet is apparently A-OK, but I'm not getting any replies.

Sequence block is generated with a for loop. Identifier block is generated randomly.

Simple icmp request

This is the information I get from Wireshark. This is true for every IP I try to ping to, even local.

0

You can check a couple of things. 1 check if the packet you have constructed is correct. I mean offsets, header length etc. Because if not, the recipient will simply discard it 2 check if the packet is actually reaching the destination. Try tcpdump on the recipient. 3 once you know the packet is correct. Check other troubleshoot at other layers. Like if the host is doing an arp for dmac or are you supplying it in the packet. If arp, then does the destination reply. If manual is it the correct value. Does the sender have a route to destination. Does the destination have a return route. There are many possibilities if you post the outcome of above scenerios someone here can help you

  • I just noticed I'm missing the identifier and the checksum on the IP header. I'll correct that and check back if there's any error. – Kolt Penny Jun 22 '17 at 8:53
  • Thank you. After several cups of coffee my brain slows down with time. It was those two things. – Kolt Penny Jun 22 '17 at 9:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.