fix: several error handling issues in send/recv
authorGiuseppe Lettieri <g.lettieri@iet.unipi.it>
Thu, 21 Jun 2012 10:50:09 +0000 (12:50 +0200)
committerGiuseppe Lettieri <g.lettieri@iet.unipi.it>
Thu, 21 Jun 2012 10:50:09 +0000 (12:50 +0200)
commitd137a832d8ec964e9c50c015b221bda82c7c660f
treee8268373dcf5ec6290b92a8298ee7bdf4ae251ff
parent03e7973c8bac680c113cbdc64266e7b19b9cf464
fix: several error handling issues in send/recv

- confusingly, send has to return positive error values
  on errori (netdev-linux's send seems to be confused as well)
- added rate limit for warnings
- fixed wrong paramether order in warn messages
- added check for EMSGSIZE error in send
lib/netdev-tunnel.c