projects
/
swifty.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f414cd9
)
Set the bytes value in the mptp_dest structure when sending message.
author
Adrian Bondrescu
<adi.bondrescu@gmail.com>
Sun, 15 Jul 2012 11:44:54 +0000
(14:44 +0300)
committer
Razvan Deaconescu
<razvan.deaconescu@cs.pub.ro>
Mon, 18 Mar 2013 16:26:52 +0000
(18:26 +0200)
src/kernel/mptp.c
patch
|
blob
|
history
diff --git
a/src/kernel/mptp.c
b/src/kernel/mptp.c
index
1ee2441
..
c4f5644
100644
(file)
--- a/
src/kernel/mptp.c
+++ b/
src/kernel/mptp.c
@@
-341,8
+341,11
@@
static int mptp_sendmsg(struct kiocb *iocb, struct socket *sock, struct msghdr *
if (likely(!err)) {
log_debug("Sent %u bytes on wire\n", len);
ret += len;
- } else
+ dest->bytes = len;
+ } else {
log_error("ip_queue_xmit failed\n");
+ dest->bytes = -1;
+ }
}
return ret;