Opened 8 years ago

Closed 8 years ago

#373 closed defect (fixed)

tcpbridge under OSX & older *BSD is broken

Reported by: aturner Owned by: aturner
Priority: medium Milestone: 3.4.1
Component: tcpbridge Version: 3.4.0
Keywords: Cc:
Operating System: OS X Add to FAQ?: yes
Hardware: All
Output of tcpreplay -V:

Description (last modified by aturner)

There is a bug in the Darwin/old *BSD kernels where poll() doesn't work properly on BPF devices. Hence poll() won't always show a fd as readable when it has data. The solution by Guy Harris is to turn on non-blocking on the fd's, select() with a timeout, and then process ALL fd's- regardless which are marked as ready for read.

See: http://article.gmane.org/gmane.network.tcpdump.devel/3581

for more details.

Change History (5)

comment:1 Changed 8 years ago by aturner

  • Description modified (diff)

comment:2 Changed 8 years ago by aturner

(In [2195]) code change to fix tcpbridge under BSD. refs #373

comment:3 Changed 8 years ago by aturner

(In [2196]) autotools changes to fix tcpbridge under BSD. refs #373

comment:4 Changed 8 years ago by aturner

  • Status changed from new to assigned

code complete. ready to test.

comment:5 Changed 8 years ago by aturner

  • Resolution set to fixed
  • Status changed from assigned to closed
Note: See TracTickets for help on using tickets.