mirror of
https://github.com/nmap/nmap.git
synced 2026-10-20 19:01:56 +00:00
Added Packet:ip_set_id(id).
This commit is contained in:
parent
31b628f994
commit
6ea3969357
1 changed files with 6 additions and 0 deletions
|
|
@ -743,6 +743,12 @@ function Packet:ip_set_len(len)
|
|||
self:set_u16(self.ip_offset + 2, len)
|
||||
self.ip_len = len
|
||||
end
|
||||
--- Set the packet identification field.
|
||||
-- @param id packet ID.
|
||||
function Packet:ip_set_id(id)
|
||||
self:set_u16(self.ip_offset + 4, id)
|
||||
self.ip_id = id
|
||||
end
|
||||
--- Set the TTL.
|
||||
-- @param ttl TTL.
|
||||
function Packet:ip_set_ttl(ttl)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue