aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/ip_options.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4/ip_options.c')
-rw-r--r--net/ipv4/ip_options.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/ip_options.c b/net/ipv4/ip_options.c
index 87f25486fd64..3245bec23f4d 100644
--- a/net/ipv4/ip_options.c
+++ b/net/ipv4/ip_options.c
@@ -148,7 +148,7 @@ int ip_options_echo(struct ip_options * dopt, struct sk_buff * skb)
148 dopt->ts_needtime = 0; 148 dopt->ts_needtime = 0;
149 149
150 if (soffset + 8 <= optlen) { 150 if (soffset + 8 <= optlen) {
151 __u32 addr; 151 __be32 addr;
152 152
153 memcpy(&addr, sptr+soffset-1, 4); 153 memcpy(&addr, sptr+soffset-1, 4);
154 if (inet_addr_type(addr) != RTN_LOCAL) { 154 if (inet_addr_type(addr) != RTN_LOCAL) {
@@ -396,7 +396,7 @@ int ip_options_compile(struct ip_options * opt, struct sk_buff * skb)
396 } 396 }
397 opt->ts = optptr - iph; 397 opt->ts = optptr - iph;
398 { 398 {
399 u32 addr; 399 __be32 addr;
400 memcpy(&addr, &optptr[optptr[2]-1], 4); 400 memcpy(&addr, &optptr[optptr[2]-1], 4);
401 if (inet_addr_type(addr) == RTN_UNICAST) 401 if (inet_addr_type(addr) == RTN_UNICAST)
402 break; 402 break;