OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Mar 28, 2024 9:18 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: [solved] - tcp/ip stack problem.
PostPosted: Wed Dec 20, 2017 7:06 pm 
Offline
Member
Member

Joined: Sun Jun 05, 2005 11:00 pm
Posts: 233
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:
File comment: Odd messages
Sem título.jpg
Sem título.jpg [ 125.53 KiB | Viewed 1706 times ]


Last edited by digo_rp on Fri Dec 22, 2017 10:49 am, edited 1 time in total.
Top
 Profile  
 
 Post subject: Re: tcp/ip stack problem.
PostPosted: Wed Dec 20, 2017 10:36 pm 
Offline
Member
Member
User avatar

Joined: Sat Dec 27, 2014 9:11 am
Posts: 901
Location: Maadi, Cairo, Egypt
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.


Top
 Profile  
 
 Post subject: Re: tcp/ip stack problem.
PostPosted: Thu Dec 21, 2017 5:51 am 
Offline
Member
Member

Joined: Sun Jun 05, 2005 11:00 pm
Posts: 233
Man, I really don't know how to do that, could you explain to me, please?


Top
 Profile  
 
 Post subject: Re: tcp/ip stack problem.
PostPosted: Thu Dec 21, 2017 9:52 am 
Offline
Member
Member
User avatar

Joined: Thu Aug 06, 2015 6:41 am
Posts: 97
Location: Netherlands
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.


Top
 Profile  
 
 Post subject: Re: tcp/ip stack problem.
PostPosted: Thu Dec 21, 2017 11:04 am 
Offline
Member
Member

Joined: Thu Jul 05, 2007 8:58 am
Posts: 223
Also, are you properly converting to and from network byte order?


Top
 Profile  
 
 Post subject: Re: tcp/ip stack problem.
PostPosted: Thu Dec 21, 2017 3:15 pm 
Offline
Member
Member

Joined: Sun Jun 05, 2005 11:00 pm
Posts: 233
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.


Top
 Profile  
 
 Post subject: Re: tcp/ip stack problem.
PostPosted: Thu Dec 21, 2017 3:17 pm 
Offline
Member
Member

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


Top
 Profile  
 
 Post subject: Re: tcp/ip stack problem.
PostPosted: Thu Dec 21, 2017 3:47 pm 
Offline
Member
Member

Joined: Sun Jun 05, 2005 11:00 pm
Posts: 233
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...


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 54 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group