root/trunk/inst/externallibs/pyip-0.7.all.patch02

Revision 12163, 0.6 KB (checked in by kkearney, 6 years ago)
* Fixes #4469: mispelling of ICMP_ROUTER_ADVERTISE -- the other spelling. Reviewed by Glenn.
Line 
1--- icmp.py.orig        2008-03-31 16:39:02.000000000 -0400
2+++ icmp.py     2008-03-31 16:39:08.000000000 -0400
3@@ -30,6 +30,7 @@
4 ICMP_REDIRECT_HOST = 1
5 ICMP_REDIRECT_TOSNET = 2
6 ICMP_REDIRECT_TOSHOST = 3
7+ICMP_ROUTER_ADVERTISE = 9
8 ICMP_ECHO = 8
9 ICMP_TIMXCEED = 11
10 ICMP_TIMXCEED_INTRANS = 0
11@@ -248,6 +249,8 @@
12         packet = TimeExceeded(code = code)
13     elif type == ICMP_UNREACH:
14         packet = Unreachable(code = code)
15+    elif type == ICMP_ROUTER_ADVERTISE:
16+        packet = Packet(type, code)
17     else:
18         raise ValueError, "Unrecognized type: %d" % type
19     
Note: See TracBrowser for help on using the browser.