From 176046784b37949f3fd0cbaf7837a09e92668043 Mon Sep 17 00:00:00 2001 From: kris Date: Tue, 30 Jan 2007 00:35:44 +0000 Subject: [PATCH] Use ipid parameter for build_icmp_raw() and build_igmp_raw() instead of get_random_u16() when calling build_ip_raw(). --- tcpip.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tcpip.cc b/tcpip.cc index 1c938dc0d..b2f8e2544 100644 --- a/tcpip.cc +++ b/tcpip.cc @@ -1441,7 +1441,7 @@ if ( o.badsum ) return build_ip_raw(source, victim, IPPROTO_ICMP, - ttl, get_random_u16(), tos, df, + ttl, ipid, tos, df, ipopt, ipoptlen, ping, icmplen, packetlen); @@ -1501,7 +1501,7 @@ u8 *build_igmp_raw(const struct in_addr *source, const struct in_addr *victim, return build_ip_raw(source, victim, IPPROTO_IGMP, - ttl, get_random_u16(), tos, df, + ttl, ipid, tos, df, ipopt, ipoptlen, pkt, igmplen, packetlen);