mirror of
https://github.com/mirage/qubes-mirage-firewall.git
synced 2024-10-01 01:05:39 -04:00
catch arp packet failure: potential packets created before an uplink change and pending to be sent
This commit is contained in:
parent
2d822302d8
commit
82d5a239fc
@ -290,9 +290,17 @@ struct
|
||||
match Client_eth.ARP.input fixed_arp arp with
|
||||
| None -> Lwt.return_unit
|
||||
| Some response ->
|
||||
iface#writev `ARP (fun b ->
|
||||
Arp_packet.encode_into response b;
|
||||
Arp_packet.size))
|
||||
Lwt.catch
|
||||
(fun () ->
|
||||
iface#writev `ARP (fun b ->
|
||||
Arp_packet.encode_into response b;
|
||||
Arp_packet.size))
|
||||
(fun ex ->
|
||||
Log.warn (fun f ->
|
||||
f "Failed to write APR to %a: %s" Ipaddr.V4.pp iface#other_ip
|
||||
(Printexc.to_string ex));
|
||||
Lwt.return_unit)
|
||||
)
|
||||
|
||||
(** Handle an IPv4 packet from the client. *)
|
||||
let client_handle_ipv4 get_ts cache ~iface ~router dns_client dns_servers
|
||||
|
Loading…
Reference in New Issue
Block a user