libnet: bugfix when using interrupts