提交 d7a769ff 编写于 作者: F Florent Fourcot 提交者: Pablo Neira Ayuso

netfilter: nf_conntrack_ipv6: fix comment for packets without data

Remove ambiguity of double negation.
Signed-off-by: NFlorent Fourcot <florent.fourcot@enst-bretagne.fr>
Acked-by: NRick Jones <rick.jones2@hp.com>
Signed-off-by: NPablo Neira Ayuso <pablo@netfilter.org>
上级 c65ef8dc
...@@ -81,8 +81,8 @@ static int ipv6_get_l4proto(const struct sk_buff *skb, unsigned int nhoff, ...@@ -81,8 +81,8 @@ static int ipv6_get_l4proto(const struct sk_buff *skb, unsigned int nhoff,
} }
protoff = ipv6_skip_exthdr(skb, extoff, &nexthdr, &frag_off); protoff = ipv6_skip_exthdr(skb, extoff, &nexthdr, &frag_off);
/* /*
* (protoff == skb->len) mean that the packet doesn't have no data * (protoff == skb->len) means the packet has not data, just
* except of IPv6 & ext headers. but it's tracked anyway. - YK * IPv6 and possibly extensions headers, but it is tracked anyway
*/ */
if (protoff < 0 || (frag_off & htons(~0x7)) != 0) { if (protoff < 0 || (frag_off & htons(~0x7)) != 0) {
pr_debug("ip6_conntrack_core: can't find proto in pkt\n"); pr_debug("ip6_conntrack_core: can't find proto in pkt\n");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册