Thread: Can TCP sockets also receive ICMP...?

  1. #1
    Registered User
    Join Date
    May 2004
    Posts
    21

    Can TCP sockets also receive ICMP...?

    hi
    I know some ICMP errors are only returned if datagram that caused it is of UDP type(ICMP port unreachable).
    But what ICMP errors do get returned to TPC sockets?
    When TCP socket in an already established connection specifies SSRR and one of routers can't forward datagram to the next hop,does it return ICMP source route error to this socket?If so,is this ICMP packet silently discarded by the kernel and not returned to socket?

    thank you

  2. #2
    S Sang-drax's Avatar
    Join Date
    May 2002
    Location
    Göteborg, Sweden
    Posts
    2,072
    Here's an answer (you've probably read it, though).
    http://www.computing.net/networking/...rum/20856.html

    But ICMP errors like port unreachable aren't used by TCP. TCP has it's own way to say 'port unreachable'.
    Last edited by Sang-drax : Tomorrow at 02:21 AM. Reason: Time travelling

  3. #3
    Registered User
    Join Date
    May 2004
    Posts
    21
    Quote Originally Posted by Sang-drax
    Here's an answer (you've probably read it, though).
    http://www.computing.net/networking/...rum/20856.html
    Stalker.There's a reason I asked in two forums;and that'scos each answer gives birth to more questions and I doubt any person would be willing to answer them all.And besides,if I have a question it usually means I need an answer as soon as possible(are you any different?)and while some question may take days to get answered on some forums,you may get lucky on others.

    But ICMP errors like port unreachable aren't used by TCP. TCP has it's own way to say 'port unreachable'.
    I know,it sends RST

  4. #4
    S Sang-drax's Avatar
    Join Date
    May 2002
    Location
    Göteborg, Sweden
    Posts
    2,072
    The reason I posted the link wasn't for you, as I knew you'd read it, but for the other people on the forum that might read this thread.
    Last edited by Sang-drax : Tomorrow at 02:21 AM. Reason: Time travelling

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. TCP Sockets: multiple clients - one server
    By Printisor in forum C Programming
    Replies: 4
    Last Post: 11-01-2007, 10:34 AM
  2. TCP sockets classes
    By Camel in forum Linux Programming
    Replies: 5
    Last Post: 12-17-2006, 07:29 PM
  3. Obtaining source & destination IP,details of ICMP Header & each of field of it ???
    By cromologic in forum Networking/Device Communication
    Replies: 1
    Last Post: 04-29-2006, 02:49 PM
  4. Tcp and icmp Question
    By invisibleghost in forum Networking/Device Communication
    Replies: 9
    Last Post: 08-12-2005, 05:23 AM