Nmap Development mailing list archives
Proposal for a small change in the packet.Packet:raw() function
From: Gorjan Petrovski <mogi57 () gmail com>
Date: Tue, 12 Jul 2011 17:59:33 +0200
Hi, At a first glance of the packet library, it seems that Packet:raw() is the main function for getting the contents of the Packet object. And since not all users look at the code they wouldn't know to look for Packet.buf to get the entire length of the packet. This is why I propose that we make the index and length arguments optional. If a user does not specify the index argument, it is supposed that index = 0. If the user doesn't supply the length argument, the default would be the entire length of the packet. Do I have permission to make these changes? Diff file included. Thanks, Gorjan
Attachment:
packet.function.raw.patch
Description:
_______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://seclists.org/nmap-dev/
Current thread:
- Proposal for a small change in the packet.Packet:raw() function Gorjan Petrovski (Jul 12)
- Re: Proposal for a small change in the packet.Packet:raw() function Patrick Donnelly (Jul 12)
- Re: Proposal for a small change in the packet.Packet:raw() function Gorjan Petrovski (Jul 13)
- Re: Proposal for a small change in the packet.Packet:raw() function Patrick Donnelly (Jul 12)