projects
/
swifty.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e9be450
)
Set the local_df flag to 1, in order to perform fragmentation. Also print the error...
author
Adrian Bondrescu
<adi.bondrescu@gmail.com>
Sun, 20 May 2012 17:33:32 +0000
(20:33 +0300)
committer
Adrian Bondrescu
<adi.bondrescu@gmail.com>
Sun, 20 May 2012 17:33:32 +0000
(20:33 +0300)
src/kernel/swift.c
patch
|
blob
|
history
diff --git
a/src/kernel/swift.c
b/src/kernel/swift.c
index
1df2d58
..
ac2ba87
100644
(file)
--- a/
src/kernel/swift.c
+++ b/
src/kernel/swift.c
@@
-330,6
+330,7
@@
static int swift_sendmsg(struct kiocb *iocb, struct socket *sock, struct msghdr
#endif
}
+ skb->local_df = 1;
err = ip_queue_xmit(skb);
if (likely(!err))
log_debug("Sent %u bytes on wire\n", len);
@@
-449,7
+450,7
@@
static int swift_rcv(struct sk_buff *skb)
err = ip_queue_rcv_skb((struct sock *) &ssk->sock, skb);
if (unlikely(err)) {
- log_error("ip_queu
_rcv_skb\n"
);
+ log_error("ip_queu
e_rcv_skb failed with %d\n", err
);
consume_skb(skb);
}
return NET_RX_SUCCESS;