Skip to content

Commit

Permalink
[NETFILTER] ctnetlink: ICMP_ID is u_int16_t not u_int8_t.
Browse files Browse the repository at this point in the history
Signed-off-by: Krzysztof Piotr Oledzki <ole@ans.pl>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Harald Welte <laforge@netfilter.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Krzysztof Piotr Oledzki authored and David S. Miller committed Nov 9, 2005
1 parent 439a999 commit 5fd52fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/ipv4/netfilter/ip_conntrack_proto_icmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ static int icmp_nfattr_to_tuple(struct nfattr *tb[],
tuple->dst.u.icmp.code =
*(u_int8_t *)NFA_DATA(tb[CTA_PROTO_ICMP_CODE-1]);
tuple->src.u.icmp.id =
*(u_int8_t *)NFA_DATA(tb[CTA_PROTO_ICMP_ID-1]);
*(u_int16_t *)NFA_DATA(tb[CTA_PROTO_ICMP_ID-1]);

return 0;
}
Expand Down

0 comments on commit 5fd52fe

Please sign in to comment.