p4lang / ptf

Packet Test Framework
Apache License 2.0
144 stars 99 forks source link

Fix uncatched RuntimeError throwed when socket error while receiving packet #134

Closed linarnan closed 3 years ago

linarnan commented 3 years ago

afpacket.recv will throw RuntimeError when sniffed interface had link flipped. (when raw socket failed) IfaceMgr doesn't catch the RuntimeError causing thread exit the main loop, thus can't receive packet anymore.

linarnan commented 3 years ago

@antoninbas @bocon13 can you help review ?