mirror of
https://github.com/nmap/nmap.git
synced 2026-05-13 08:46:45 +00:00
readip_pcap: link-layer header, not IP header, in linknfo
This commit is contained in:
parent
407dd3d928
commit
367890df09
1 changed files with 1 additions and 1 deletions
2
tcpip.cc
2
tcpip.cc
|
|
@ -1529,7 +1529,7 @@ const u8 *readip_pcap(pcap_t *pd, unsigned int *len, long to_usec,
|
|||
if (offset && linknfo) {
|
||||
linknfo->datalinktype = datalink;
|
||||
linknfo->headerlen = offset;
|
||||
linknfo->header = p;
|
||||
linknfo->header = p - offset;
|
||||
}
|
||||
if (rcvdtime)
|
||||
PacketTrace::trace(PacketTrace::RCVD, (u8 *) p, *len,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue