From: Adrian Bondrescu Date: Sun, 20 May 2012 17:33:32 +0000 (+0300) Subject: Set the local_df flag to 1, in order to perform fragmentation. Also print the error... X-Git-Url: http://p2p-next.cs.pub.ro/gitweb/?a=commitdiff_plain;h=d89e73a4d10e260b268d065cc2caf5458dea2557;hp=e9be450a4196310b4a28a5edc07356bcbe25212a;p=swifty.git Set the local_df flag to 1, in order to perform fragmentation. Also print the error code when ip_queue_rcv_skb fails. --- diff --git a/src/kernel/swift.c b/src/kernel/swift.c index 1df2d58..ac2ba87 100644 --- 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_queue_rcv_skb failed with %d\n", err); consume_skb(skb); } return NET_RX_SUCCESS;