mirror of
https://github.com/mirage/qubes-mirage-firewall.git
synced 2025-02-06 18:35:28 -05: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
|
match Client_eth.ARP.input fixed_arp arp with
|
||||||
| None -> Lwt.return_unit
|
| None -> Lwt.return_unit
|
||||||
| Some response ->
|
| Some response ->
|
||||||
iface#writev `ARP (fun b ->
|
Lwt.catch
|
||||||
Arp_packet.encode_into response b;
|
(fun () ->
|
||||||
Arp_packet.size))
|
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. *)
|
(** Handle an IPv4 packet from the client. *)
|
||||||
let client_handle_ipv4 get_ts cache ~iface ~router dns_client dns_servers
|
let client_handle_ipv4 get_ts cache ~iface ~router dns_client dns_servers
|
||||||
|
Loading…
x
Reference in New Issue
Block a user