projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
22eb410
)
route: fix for 64-bit BE machines by Seonghun Lim (wariua AT gmail.com)
author
Denis Vlasenko
<vda.linux@googlemail.com>
Sun, 28 Sep 2008 23:39:18 +0000
(23:39 -0000)
committer
Denis Vlasenko
<vda.linux@googlemail.com>
Sun, 28 Sep 2008 23:39:18 +0000
(23:39 -0000)
networking/route.c
patch
|
blob
|
history
diff --git
a/networking/route.c
b/networking/route.c
index 2bc2f9210c01329551da6af6199c0e9aafb69581..8778ecd3893414b761e27e01587368b0af7b24a8 100644
(file)
--- a/
networking/route.c
+++ b/
networking/route.c
@@
-302,7
+302,7
@@
static void INET_setroute(int action, char **args)
/* sanity checks.. */
if (mask_in_addr(rt)) {
- u
nsigned long
mask = mask_in_addr(rt);
+ u
int32_t
mask = mask_in_addr(rt);
mask = ~ntohl(mask);
if ((rt.rt_flags & RTF_HOST) && mask != 0xffffffff) {
@@
-313,7
+313,7
@@
static void INET_setroute(int action, char **args)
bb_error_msg_and_die("bogus netmask %s", netmask);
}
mask = ((struct sockaddr_in *) &rt.rt_dst)->sin_addr.s_addr;
- if (mask & ~mask_in_addr(rt)) {
+ if (mask & ~
(uint32_t)
mask_in_addr(rt)) {
bb_error_msg_and_die("netmask and route address conflict");
}
}