mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 06:40:48 +00:00
Copy link header from beginning of frame, not beginning of IP header.
This commit is contained in:
parent
38023d1346
commit
5b6645e09d
1 changed files with 1 additions and 1 deletions
2
tcpip.cc
2
tcpip.cc
|
|
@ -1612,7 +1612,7 @@ const u8 *readip_pcap(pcap_t *pd, unsigned int *len, long to_usec,
|
|||
linknfo->datalinktype = datalink;
|
||||
linknfo->headerlen = offset;
|
||||
assert(offset <= MAX_LINK_HEADERSZ);
|
||||
memcpy(linknfo->header, p, MIN(sizeof(linknfo->header), offset));
|
||||
memcpy(linknfo->header, p - offset, MIN(sizeof(linknfo->header), offset));
|
||||
}
|
||||
if (rcvdtime)
|
||||
PacketTrace::trace(PacketTrace::RCVD, (u8 *) p, *len,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue