Re: Transforming code to using ICMP packet accessors

2007-04-26 Thread David Howells
Arnaldo Carvalho de Melo <[EMAIL PROTECTED]> wrote: > Yes, as this is the only use in this function. Thanks! David - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: Transforming code to using ICMP packet accessors

2007-04-26 Thread Arnaldo Carvalho de Melo
On 4/26/07, David Howells <[EMAIL PROTECTED]> wrote: How do I convert: addr = *(__be32 *)(skb->nh.raw + serr->addr_offset); to use the ICMP accessor macros now that skb->nh is no longer available? I was using this to pluck an address out of the ICMP packet payload, but void r

Transforming code to using ICMP packet accessors

2007-04-26 Thread David Howells
How do I convert: addr = *(__be32 *)(skb->nh.raw + serr->addr_offset); to use the ICMP accessor macros now that skb->nh is no longer available? I was using this to pluck an address out of the ICMP packet payload, but void rxrpc_UDP_error_report(struct sock *sk) {