[Ns-bugs] [Bug 932] Support IP_HDRINCL option for Ipv4RawSocket
code@nsnam.ece.gatech.edu
code at nsnam.ece.gatech.edu
Wed Jun 2 22:51:27 PDT 2010
http://www.nsnam.org/bugzilla/show_bug.cgi?id=932
Tom Henderson <tomh at tomh.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |tomh at tomh.org
--- Comment #1 from Tom Henderson <tomh at tomh.org> 2010-06-03 01:51:27 EDT ---
>
> void
> Ipv4L3Protocol::Send (Ptr<Packet> packet,
> + Ipv4Header ipHeader,
> + Ptr<Ipv4Route> route)
> +{
> + NS_LOG_FUNCTION (this << packet << ipHeader << route);
> + Ipv4Header hdr;
> + packet->RemoveHeader (hdr);
> + SendRealOut (route, packet, hdr);
^^^^
ipHeader?
> +}
> +
> +void
> +Ipv4L3Protocol::Send (Ptr<Packet> packet,
> Ipv4Address source,
> Ipv4Address destination,
> uint8_t protocol,
> diff -r 74fab02c0751 src/internet-stack/ipv4-l3-protocol.h
> --- a/src/internet-stack/ipv4-l3-protocol.h Tue Jun 01 10:45:08 2010 +0900
> +++ b/src/internet-stack/ipv4-l3-protocol.h Tue Jun 01 13:27:37 2010 +0900
> @@ -162,6 +162,15 @@
> */
> void Send (Ptr<Packet> packet, Ipv4Address source,
> Ipv4Address destination, uint8_t protocol, Ptr<Ipv4Route> route);
> + /**
> + * \param packet packet to send
> + * \param ipHeader IP Heeader
^^^^^^
Header (typo)
Otherwise, I am fine with the patch.
--
Configure bugmail: http://www.nsnam.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Ns-bugs
mailing list