ICMP_Redirect_Message ICMP_Redirect_Message

ICMP Redirect Message - Definition and Overview

The Redirect Message is an ICMP message which informs a host to redirect its routing information (to send packets on an alternate route). If the host tries to send data through a router (R1) and then another router (R2) to reach the host, and a direct path from the host to R2 is available, the redirect will inform the host of such a route. The router will still send the original datagram to the intended destination. However, if the datagram contains routing information, this message will not be sent even if a better route is available. Please note that redirects are only sent by gateways.

00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
Type = 5 Code Header Checksum
</table>

IP Address

</table> Type must be set to 5. The code, which specifies the reason for the redirection, include the following:

IP Header + First 8 Bytes of Original Datagram's Data

Code Description
0 Redirect for Network Error.
1 Redirect for Host Error.
2 Redirect for Type of Service and Network Error.
3 Redirect for Type of Service and Host Error.

The IP address is the 32-bit address of the gateway for which the redirection should go to. The additional data is included to allow the host to match the reply with the request the caused the redirection reply.

Sources: RFC 792 (http://www.ietf.org/rfc/rfc792.txt)

Example Usage of Redirect

fuckcpc: RT @amoiist: RT @Valerie_Guo: 全家都是地产商 杭州书记王国平家产80亿 http://bbs.cnpz.com.cn/Redirect.php?tid=35768&goto=lastpost
simurl: Latest Simple: ZeNfA.net Gaming Forums: White Nintendo DS Lite Event @ http://simurl.us/jbs8X #simurl #Redirect
startupuk: Redirect http://digg.com/u1HYPV
Copyright 2009 WordIQ.com - Privacy Policy  :: Terms of Use  :: Contact Us  :: About Us
This article is licensed under the GNU Free Documentation License. It uses material from the this Wikipedia article.