Need Help in Unix commands

This is a discussion on Need Help in Unix commands within the Networking/Device Communication forums, part of the General Programming Boards category; Hello - I have to do these two tasks - could someon help me in Commands or guide me the ...

  1. #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.

  2. #2
    Registered User
    Join Date
    Sep 2004
    Location
    California
    Posts
    3,246
    Why are you asking us? The answers you are looking for are in the RFC.

  3. #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.

  4. #4
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    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.

  5. #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.

  6. #6
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    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.

  7. #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

  8. #8
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640
    The answer to that question will be in the RFC as well.

  9. #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.

  10. #10
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    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.

  11. #11
    Registered User
    Join Date
    Feb 2009
    Posts
    21
    Thanks Mats - I got it.

Popular pages Recent additions subscribe to a feed

Similar Threads

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

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