diff options
| author | Mark McLoughlin <markmc@redhat.com> | 2009-05-18 13:40:55 +0100 |
|---|---|---|
| committer | Mark McLoughlin <markmc@redhat.com> | 2009-06-09 11:38:49 +0100 |
| commit | 4f1c942b7fb29864ad86cb3af9076da38f38f74e (patch) | |
| tree | 2f51a121e715476c3986c0ae0b4513be555d8ee8 /net.h | |
| parent | e3f5ec2b5e92706e3b807059f79b1fb5d936e567 (diff) | |
| download | focaccia-qemu-4f1c942b7fb29864ad86cb3af9076da38f38f74e.tar.gz focaccia-qemu-4f1c942b7fb29864ad86cb3af9076da38f38f74e.zip | |
net: add return value to packet receive handler
This allows us to handle queue full conditions rather than dropping the packet on the floor. Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Diffstat (limited to 'net.h')
| -rw-r--r-- | net.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net.h b/net.h index a28827c4a7..f1cedf4d17 100644 --- a/net.h +++ b/net.h @@ -8,7 +8,7 @@ typedef struct VLANClientState VLANClientState; typedef int (NetCanReceive)(VLANClientState *); -typedef void (NetReceive)(VLANClientState *, const uint8_t *, size_t); +typedef ssize_t (NetReceive)(VLANClientState *, const uint8_t *, size_t); typedef ssize_t (NetReceiveIOV)(VLANClientState *, const struct iovec *, int); typedef void (NetCleanup) (VLANClientState *); typedef void (LinkStatusChanged)(VLANClientState *); |