mirror of
https://github.com/nmap/nmap.git
synced 2026-09-21 07:38:39 +00:00
Avoid copying link-layer header; point instead
This commit is contained in:
parent
67ba648595
commit
f4f5cba43d
2 changed files with 2 additions and 3 deletions
|
|
@ -237,7 +237,7 @@ typedef enum { devt_ethernet, devt_loopback, devt_p2p, devt_other } devtype;
|
|||
struct link_header {
|
||||
int datalinktype; /* pcap_datalink(), such as DLT_EN10MB */
|
||||
int headerlen; /* 0 if header was too big or unavailaable */
|
||||
u8 header[MAX_LINK_HEADERSZ];
|
||||
const u8 *header;
|
||||
};
|
||||
|
||||
/* Relevant (to Nmap) information about an interface */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue