[solved] - tcp/ip stack problem.

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
digo_rp
Member
Member
Posts: 233
Joined: Sun Jun 05, 2005 11:00 pm

[solved] - tcp/ip stack problem.

Post by digo_rp »

Hi, all, I have a small problem with my OS trying to make icmp reply
I have a virtualbox box on my linux deepin running my OS.

then I go to the terminal from linux and type ex. ip of my OS from DHCP is 192.168.1.134.

I type 192.168.1.134.

I have a reply from my os, but with odd time messages. below I'll send a picture of it...

please could anyone help me please?

tnx so much.
Attachments
Odd messages
Odd messages
Last edited by digo_rp on Fri Dec 22, 2017 10:49 am, edited 1 time in total.
User avatar
BrightLight
Member
Member
Posts: 901
Joined: Sat Dec 27, 2014 9:11 am
Location: Maadi, Cairo, Egypt
Contact:

Re: tcp/ip stack problem.

Post by BrightLight »

Post a Wireshark capture dump of the network packets.
You know your OS is advanced when you stop using the Intel programming guide as a reference.
digo_rp
Member
Member
Posts: 233
Joined: Sun Jun 05, 2005 11:00 pm

Re: tcp/ip stack problem.

Post by digo_rp »

Man, I really don't know how to do that, could you explain to me, please?
User avatar
sleephacker
Member
Member
Posts: 97
Joined: Thu Aug 06, 2015 6:41 am
Location: Netherlands

Re: tcp/ip stack problem.

Post by sleephacker »

digo_rp wrote:Man, I really don't know how to do that, could you explain to me, please?
Open wireshark and select the same network/device to capture on as your VM is using, and maybe also set your filter in wireshark to only show ICMP packets for readability.
davidv1992
Member
Member
Posts: 223
Joined: Thu Jul 05, 2007 8:58 am

Re: tcp/ip stack problem.

Post by davidv1992 »

Also, are you properly converting to and from network byte order?
digo_rp
Member
Member
Posts: 233
Joined: Sun Jun 05, 2005 11:00 pm

Re: tcp/ip stack problem.

Post by digo_rp »

tnx so much for your help...
Here is the file to download: https://expirebox.com/download/b325c855 ... 447bc.html
please could anyone help me again...

thx a lot.
digo_rp
Member
Member
Posts: 233
Joined: Sun Jun 05, 2005 11:00 pm

Re: tcp/ip stack problem.

Post by digo_rp »

davidv1992, I'll check that out. tnx so much
digo_rp
Member
Member
Posts: 233
Joined: Sun Jun 05, 2005 11:00 pm

Re: tcp/ip stack problem.

Post by digo_rp »

now I got icmp working ... thx so much guys.

The problem was in icmp_reply function, I'was'nt send back the data correctly.

thx so much...
Post Reply