Re: [PATCH libnetfilter_queue] src: Make sure pktb_alloc() works for IPv6 over AF_BRIDGE

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

 



On Thu, Nov 14, 2019 at 10:05:32AM +1100, Duncan Roe wrote:
> At least on the local interface, the MAC header of an IPv6 packet specifies
> IPv6 protocol (rather than IP). This surprised me, since the first octet of
> the IP datagram is the IP version, but I guess it's an efficiency thing.
> 
> Without this patch, pktb_alloc() returns NULL when an IPv6 packet is
> encountered.

Applied, thanks.

> Updated:
> 
>  src/extra/pktbuff.c: - Treat ETH_P_IPV6 the same as ETH_P_IP.
>                       - Fix indenting around the affected code.

I have left indentation as is, so this becomes a oneliner.

This double closing curly brace on the same column is bizarre indeed,
but not convinced this double indentation looks better. And I like
this patch became just a oneliner. Thanks.



[Index of Archives]     [Netfitler Users]     [Berkeley Packet Filter]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux