mirror of
https://github.com/mfontanini/libtins
synced 2026-01-23 02:35:57 +01:00
Link layer PDUs no longer contain a NetworkInterface.
This commit is contained in:
@@ -97,8 +97,8 @@ void send_syns(const NetworkInterface &iface, IPv4Address dest_ip, const vector<
|
||||
// Pretend we're the scanned host...
|
||||
ip.src_addr(dest_ip);
|
||||
// We use an ethernet pdu, otherwise the kernel will drop it.
|
||||
EthernetII eth(iface, info.hw_addr, info.hw_addr, ip.clone());
|
||||
sender.send(eth);
|
||||
EthernetII eth(info.hw_addr, info.hw_addr, ip.clone());
|
||||
sender.send(eth, iface);
|
||||
}
|
||||
|
||||
void *thread_proc(void *param) {
|
||||
|
||||
Reference in New Issue
Block a user