diff options
Diffstat (limited to 'net/ipv4/inet_diag.c')
-rw-r--r-- | net/ipv4/inet_diag.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/net/ipv4/inet_diag.c b/net/ipv4/inet_diag.c index 492858e6faf0..77761ac4f7bb 100644 --- a/net/ipv4/inet_diag.c +++ b/net/ipv4/inet_diag.c | |||
@@ -36,8 +36,8 @@ | |||
36 | static const struct inet_diag_handler **inet_diag_table; | 36 | static const struct inet_diag_handler **inet_diag_table; |
37 | 37 | ||
38 | struct inet_diag_entry { | 38 | struct inet_diag_entry { |
39 | u32 *saddr; | 39 | __be32 *saddr; |
40 | u32 *daddr; | 40 | __be32 *daddr; |
41 | u16 sport; | 41 | u16 sport; |
42 | u16 dport; | 42 | u16 dport; |
43 | u16 family; | 43 | u16 family; |
@@ -294,7 +294,7 @@ out: | |||
294 | return err; | 294 | return err; |
295 | } | 295 | } |
296 | 296 | ||
297 | static int bitstring_match(const u32 *a1, const u32 *a2, int bits) | 297 | static int bitstring_match(const __be32 *a1, const __be32 *a2, int bits) |
298 | { | 298 | { |
299 | int words = bits >> 5; | 299 | int words = bits >> 5; |
300 | 300 | ||
@@ -305,8 +305,8 @@ static int bitstring_match(const u32 *a1, const u32 *a2, int bits) | |||
305 | return 0; | 305 | return 0; |
306 | } | 306 | } |
307 | if (bits) { | 307 | if (bits) { |
308 | __u32 w1, w2; | 308 | __be32 w1, w2; |
309 | __u32 mask; | 309 | __be32 mask; |
310 | 310 | ||
311 | w1 = a1[words]; | 311 | w1 = a1[words]; |
312 | w2 = a2[words]; | 312 | w2 = a2[words]; |
@@ -352,7 +352,7 @@ static int inet_diag_bc_run(const void *bc, int len, | |||
352 | case INET_DIAG_BC_S_COND: | 352 | case INET_DIAG_BC_S_COND: |
353 | case INET_DIAG_BC_D_COND: { | 353 | case INET_DIAG_BC_D_COND: { |
354 | struct inet_diag_hostcond *cond; | 354 | struct inet_diag_hostcond *cond; |
355 | u32 *addr; | 355 | __be32 *addr; |
356 | 356 | ||
357 | cond = (struct inet_diag_hostcond *)(op + 1); | 357 | cond = (struct inet_diag_hostcond *)(op + 1); |
358 | if (cond->port != -1 && | 358 | if (cond->port != -1 && |