host-sflow icon indicating copy to clipboard operation
host-sflow copied to clipboard

pcap: fix race condition when add bpf socket

Open cw-Guo opened this issue 5 months ago • 0 comments

This pull requests fixed two issues:

  1. "check-then-act" race condition in addBPFSocket which may cause multiple bpf sockets added for a single device.
  2. tap_close mark the fd wrongly, which causes EVSocketClose fails to locate the socket

cw-Guo avatar Aug 01 '25 20:08 cw-Guo