projects
/
project
/
netifd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
fa31a46
)
add a #ifdef around the 6rd code to make it compile with older kernels that do not...
author
Felix Fietkau
<nbd@openwrt.org>
Thu, 21 Jun 2012 18:26:49 +0000
(20:26 +0200)
committer
Felix Fietkau
<nbd@openwrt.org>
Thu, 21 Jun 2012 18:26:49 +0000
(20:26 +0200)
system-linux.c
patch
|
blob
|
history
diff --git
a/system-linux.c
b/system-linux.c
index
aaa8230
..
c4d094d
100644
(file)
--- a/
system-linux.c
+++ b/
system-linux.c
@@
-1065,6
+1065,7
@@
int system_add_ip_tunnel(const char *name, struct blob_attr *attr)
if (tunnel_ioctl(base, SIOCADDTUNNEL, &p) < 0)
return -1;
if (tunnel_ioctl(base, SIOCADDTUNNEL, &p) < 0)
return -1;
+#ifdef SIOCADD6RD
cur = tb[TUNNEL_ATTR_6RD_PREFIX];
if (cur && is_sit) {
unsigned int mask;
cur = tb[TUNNEL_ATTR_6RD_PREFIX];
if (cur && is_sit) {
unsigned int mask;
@@
-1089,6
+1090,7
@@
int system_add_ip_tunnel(const char *name, struct blob_attr *attr)
return -1;
}
}
return -1;
}
}
+#endif
return 0;
}
return 0;
}