Re: 6lowpan raw socket problems

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Simon,

On Fri, Sep 19, 2014 at 01:44:38PM +0100, Simon Vincent wrote:
...
> >mhh, take a look on skb_unshare - make a copy of a shared buffe [0].
> >
> >Seems that we could use that to have a copy of the buffer. Don't know if
> >this can work, because we are inside of callback and the caller lost the
> >reference then.
> I tried that earlier! Didn't work as we lost the reference as you say.
> I think if we do it inside lowpan_xmit like you do in your rework we might
> be ok. I will have a go.
> 

Yea, with combination of lowpan_xmit and do a:

skb = skb_unshare(skb, GFP_ATOMIC);

it's woooorrkkinnnnggg.

Output now is:

send_raw_icmp[fe80::2->ff02::1] (on if: 4): Success
recv_raw_icmp[fe80::2%lowpan0->?]
send_raw_icmp[fe80::2->ff02::1] (on if: 4): Success
recv_raw_icmp[fe80::2%lowpan0->?]
send_raw_icmp[fe80::2->ff02::1] (on if: 4): Success
recv_raw_icmp[fe80::2%lowpan0->?]
send_raw_icmp[fe80::2->ff02::1] (on if: 4): Success
recv_raw_icmp[fe80::2%lowpan0->?]
send_raw_icmp[fe80::2->ff02::1] (on if: 4): Success
recv_raw_icmp[fe80::2%lowpan0->?]
send_raw_icmp[fe80::2->ff02::1] (on if: 4): Success
recv_raw_icmp[fe80::2%lowpan0->?]
send_raw_icmp[fe80::2->ff02::1] (on if: 4): Success
recv_raw_icmp[fe80::2%lowpan0->?]
send_raw_icmp[fe80::2->ff02::1] (on if: 4): Success
recv_raw_icmp[fe80::2%lowpan0->?]


Thanks! If you like you can create a patch for the rework branch, then I will
send it when the rework is finished.


So combination what we always talked about solved this issue, crazy...

- Alex

--
To unsubscribe from this list: send the line "unsubscribe linux-wpan" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux