C Board  

Go Back   C Board > General Programming Boards > Networking/Device Communication

Reply
 
LinkBack Thread Tools Display Modes
Old 03-31-2009, 08:52 AM   #1
Registered User
 
Join Date: Feb 2009
Posts: 21
Need Help in Unix commands

Hello - I have to do these two tasks - could someon help me in Commands or guide me the process to achieve these things.

1 - Find out the generic format for TCP header options from Request for Comments 793

2 - Find out how TCP is supposed to respond if a FIN or an RST arrives with a sequence number other than NextByteExpected.

Earlier I thought with the help of netstat I can figure it out but netstat only shows connection status as Esatblished or connected.

Please advice.
namasteall2000 is offline   Reply With Quote
Old 03-31-2009, 10:30 AM   #2
Registered User
 
Join Date: Sep 2004
Location: California
Posts: 3,020
Why are you asking us? The answers you are looking for are in the RFC.
bithub is offline   Reply With Quote
Old 03-31-2009, 03:19 PM   #3
Registered User
 
Join Date: Feb 2009
Posts: 21
I am asking these question here because I have to do the same on the Linux machine. I don't kknow which commands we need to use in Linux to see the generic format of TCP header options.

Please suggest.
namasteall2000 is offline   Reply With Quote
Old 03-31-2009, 04:38 PM   #4
Kernel hacker
 
Join Date: Jul 2007
Location: Farncombe, Surrey, England
Posts: 15,686
Download firefox (use wget, for example), then run firefox and enter Google, then enter RFC 793 in the search for box. Look for a document describing the TCP IP header format.

The format is not any different for different machines or OS's.

--
Mats
__________________
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.
matsp is offline   Reply With Quote
Old 04-01-2009, 09:09 AM   #5
Registered User
 
Join Date: Feb 2009
Posts: 21
Mat - thanks for the reply. Is there is any command which can be used in Linux as we have to solve this on Linux machine.

As I understand Firefox is web browser Windows utility.

Once again thanks for the reply.
namasteall2000 is offline   Reply With Quote
Old 04-01-2009, 09:14 AM   #6
Kernel hacker
 
Join Date: Jul 2007
Location: Farncombe, Surrey, England
Posts: 15,686
You mean to describe the RFC 793? As far as I know, it's a document, and it is the same for Linux as for everything else. Firefox is indeed a web-browser, and that's at least how I would find that sort of information if I needed it. Whether you use firefox or some other web-browser is up to you.

If you really want to make your own life more difficult and not use a web-browser, then perhaps you can write down the link posted above that answers the question, and then use wget to download the document in the link and view the HTML in some text editor. But I don't see the point of it.

And I certainly do not see the point of discussing "Unix" or "Linux" commands here.

--
Mats
__________________
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.
matsp is offline   Reply With Quote
Old 04-01-2009, 09:26 AM   #7
Registered User
 
Join Date: Feb 2009
Posts: 21
Mat - I understood your point. Thanks

How about "Find out how TCP is supposed to respond if a FIN or an RST arrives with a sequence number other than NextByteExpected."

Do you have any helpful link or any suggestion for this?

thanks
namasteall2000 is offline   Reply With Quote
Old 04-01-2009, 09:49 AM   #8
Crazy Fool
 
Perspective's Avatar
 
Join Date: Jan 2003
Location: Canada
Posts: 2,596
The answer to that question will be in the RFC as well.
Perspective is offline   Reply With Quote
Old 04-01-2009, 10:36 AM   #9
Registered User
 
Join Date: Feb 2009
Posts: 21
I read in the RFC dcument RFC 793 (rfc793) - Transmission Control Protocol - but its not mentioned any where.

Any thoughts.
namasteall2000 is offline   Reply With Quote
Old 04-02-2009, 02:40 AM   #10
Kernel hacker
 
Join Date: Jul 2007
Location: Farncombe, Surrey, England
Posts: 15,686
Try reading page 23 again.

--
Mats
__________________
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.
matsp is offline   Reply With Quote
Old 04-02-2009, 03:34 PM   #11
Registered User
 
Join Date: Feb 2009
Posts: 21
Thanks Mats - I got it.
namasteall2000 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
System Commands for UNIX cjohnman C Programming 5 04-07-2008 01:39 PM
How to program in unix Cpro Linux Programming 21 02-12-2008 10:54 AM
Setting up a Unix box @nthony Tech Board 6 07-22-2007 10:22 PM
how to simulate Unix commands in C++? silent_eyes C++ Programming 4 03-31-2006 12:41 AM
About Unix Programming - Making a career desision null C Programming 0 10-14-2001 07:37 AM


All times are GMT -6. The time now is 12:13 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22