All of lore.kernel.org
 help / color / mirror / Atom feed
* CTA_PROTO_NUM u_int8_t or u_int16_t
@ 2005-11-21 14:40 Krzysztof Oledzki
  2005-11-21 14:53 ` Pablo Neira
  0 siblings, 1 reply; 39+ messages in thread
From: Krzysztof Oledzki @ 2005-11-21 14:40 UTC (permalink / raw)
  To: Netfilter Development Mailinglist

[-- Attachment #1: Type: TEXT/PLAIN, Size: 588 bytes --]

Hello,

AFAIK ip proto is u8 but I found that it is represented as u16 and used 
both as u_int16_t and u_int8_t:

include/linux/netfilter_ipv4/ipt_conntrack.h:           u16 protonum;

net/ipv4/netfilter/ip_conntrack_netlink.c:      NFA_PUT(skb, CTA_PROTO_NUM, sizeof(u_int8_t), &tuple->dst.protonum);
net/ipv4/netfilter/ip_conntrack_netlink.c:      [CTA_PROTO_NUM-1]       = sizeof(u_int16_t),
net/ipv4/netfilter/ip_conntrack_netlink.c:      tuple->dst.protonum = *(u_int16_t *)NFA_DATA(tb[CTA_PROTO_NUM-1]);

Was this intentionally?

Best regards,

 				Krzysztof Olędzki

^ permalink raw reply	[flat|nested] 39+ messages in thread

end of thread, other threads:[~2005-12-13 11:32 UTC | newest]

Thread overview: 39+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-21 14:40 CTA_PROTO_NUM u_int8_t or u_int16_t Krzysztof Oledzki
2005-11-21 14:53 ` Pablo Neira
2005-11-21 17:03   ` Patrick McHardy
2005-11-21 17:48     ` Pablo Neira
2005-11-21 21:26       ` Krzysztof Oledzki
2005-11-22  4:42       ` Patrick McHardy
2005-11-22 19:04         ` [PATCH] CTA_PROTO_NUM is u_int8_t not u_int16_t (was Re: CTA_PROTO_NUM u_int8_t or u_int16_t) Pablo Neira
2005-11-22 20:29           ` Krzysztof Oledzki
2005-11-22 22:06             ` Harald Welte
2005-11-23  1:06               ` Patrick McHardy
2005-11-23  1:15               ` Pablo Neira
2005-11-23  9:47                 ` Patrick McHardy
2005-11-23 10:31                   ` Krzysztof Oledzki
2005-11-24 20:07                     ` Harald Welte
2005-11-24 20:21                       ` Harald Welte
2005-11-24 23:24                         ` Krzysztof Oledzki
2005-11-24 23:33                         ` Patrick McHardy
2005-11-24 23:54                           ` Krzysztof Oledzki
2005-11-25  0:11                             ` Patrick McHardy
2005-11-25  0:22                               ` Pablo Neira
2005-11-25  0:26                                 ` Krzysztof Oledzki
2005-11-25  0:28                               ` Krzysztof Oledzki
2005-11-25  8:44                             ` Harald Welte
2005-11-25  9:23                               ` Krzysztof Oledzki
2005-11-25 11:09                                 ` Harald Welte
2005-11-25 13:25                                 ` Patrick McHardy
2005-11-26  0:16                                   ` Pablo Neira Ayuso
2005-11-27 22:28                                     ` Krzysztof Oledzki
2005-11-29  4:09                                       ` Harald Welte
2005-11-29 23:07                                         ` Patrick McHardy
2005-12-04  3:31                                           ` Pablo Neira Ayuso
2005-12-04 16:05                                             ` Patrick McHardy
2005-12-04 16:35                                               ` Patrick McHardy
2005-12-04 19:48                                               ` [PATCH] CTA_PROTO_NUM is u_int8_t not u_int16_t David S. Miller
2005-12-04 20:02                                                 ` Patrick McHardy
2005-12-04 20:20                                                   ` David S. Miller
2005-12-13  9:56                                           ` [PATCH] CTA_PROTO_NUM is u_int8_t not u_int16_t (was Re: CTA_PROTO_NUM u_int8_t or u_int16_t) Krzysztof Oledzki
2005-12-13 11:22                                             ` Patrick McHardy
2005-12-13 11:32                                               ` Pablo Neira Ayuso

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.