| To: | yoshfuji@xxxxxxxxxxxxxx |
|---|---|
| Subject: | Re: [XFRM]: Fix ICMP tempsel |
| From: | Patrick McHardy <kaber@xxxxxxxxx> |
| Date: | Sun, 20 Feb 2005 08:13:28 +0100 |
| Cc: | herbert@xxxxxxxxxxxxxxxxxxx, davem@xxxxxxxxxxxxx, netdev@xxxxxxxxxxx |
| In-reply-to: | <20050220.155527.54695259.yoshfuji@xxxxxxxxxxxxxx> |
| References: | <4217266F.6090700@xxxxxxxxx> <20050219184351.GB10773@xxxxxxxxxxxxxxxxxxx> <42182082.9060301@xxxxxxxxx> <20050220.155527.54695259.yoshfuji@xxxxxxxxxxxxxx> |
| Sender: | netdev-bounce@xxxxxxxxxxx |
| User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.7.5) Gecko/20050106 Debian/1.7.5-1 |
YOSHIFUJI Hideaki / $B5HF#1QL@ wrote: I didn't this because there are several places which depend on u8. If we go this way, we need to fix other places as well. e.g. net/ipv4/raw.c:raw_probe_proto_opt()
get_user(fl->fl_icmp_type, type);
__get_user(fl->fl_icmp_code, code);
On x86_64 both care only about the pointer type, not the target type.
net/ipv4/xfrm4_policy.c:_decode_session4()
u8 *icmp = xprth;
fl->fl_icmp_type = icmp[0];
fl->fl_icmp_code = icmp[1];
No problem here.
net/ipv6/raw.c:rawv6_probe_proto_opt() Same as IPv4. net/ipv6/netfilter/ip6t_REJECT.c:send_unreach() Not in mainline :) net/ipv6/xfrm6_policy.c:_decode_session6() Same as IPv4. net/ipv6/ndisc.c:ndisc_flow_init()
fl->fl_icmp_type = type;
fl->fl_icmp_code = 0;
No problem.
net/ipv6/icmp.c:icmpv6_send()
fl.fl_icmp_type = type;
fl.fl_icmp_code = code;
Also ok.
net/ipv6/icmp.c:icmpv6_echo_reply()
fl.fl_icmp_type = ICMPV6_ECHO_REPLY;
Same here.
(Note that type and code are stored in network-byte order.) Both are u8 so there is no byte order. Regards Patrick |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: IPsec xfrm resolution, Herbert Xu |
|---|---|
| Next by Date: | Re: [XFRM]: Fix ICMP tempsel, Herbert Xu |
| Previous by Thread: | Re: [XFRM]: Fix ICMP tempsel, YOSHIFUJI Hideaki / 吉藤英明 |
| Next by Thread: | Re: [XFRM]: Fix ICMP tempsel, Herbert Xu |
| Indexes: | [Date] [Thread] [Top] [All Lists] |