Set errno when refusing to send packet in interface_send_packet
authorRafał Miłecki <rafal@milecki.pl>
Wed, 15 Feb 2017 10:37:57 +0000 (11:37 +0100)
committerRafał Miłecki <rafal@milecki.pl>
Wed, 15 Feb 2017 10:39:15 +0000 (11:39 +0100)
commit0d545ed7287026584722a3f9aa855c29bd24d59f
tree3752c4e7b644a632c97d08a846dcb25fe8081003
parent61f6854cea03e9e170720134713a7c18165ac6df
Set errno when refusing to send packet in interface_send_packet

Callers of interface_send_packet use perror and so expect errno to be
set in case of fail.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
interface.c