projects
/
project
/
netifd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
add a #ifdef around the 6rd code to make it compile with older kernels that do not...
[project/netifd.git]
/
system-linux.c
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;
+#ifdef SIOCADD6RD
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;
}
}
+#endif
return 0;
}