diff options
author | Roy Marples <uberlord@gentoo.org> | 2007-11-02 11:16:42 +0000 |
---|---|---|
committer | Roy Marples <uberlord@gentoo.org> | 2007-11-02 11:16:42 +0000 |
commit | 7573c1c5b2ad737b845ddf5ca7c20ba83b98abb3 (patch) | |
tree | 5136751821d09df86f196a2eeb034393108e8269 /sys-apps/ifplugd/files | |
parent | Fix ChangeLog syntax. (diff) | |
download | gentoo-2-7573c1c5b2ad737b845ddf5ca7c20ba83b98abb3.tar.gz gentoo-2-7573c1c5b2ad737b845ddf5ca7c20ba83b98abb3.tar.bz2 gentoo-2-7573c1c5b2ad737b845ddf5ca7c20ba83b98abb3.zip |
ifplugd now works on kernels without IP, #197791 thanks to Alon Bar-Lev.
(Portage version: 2.1.3.16)
Diffstat (limited to 'sys-apps/ifplugd/files')
-rw-r--r-- | sys-apps/ifplugd/files/digest-ifplugd-0.28-r9 | 3 | ||||
-rw-r--r-- | sys-apps/ifplugd/files/ifplugd-0.28-noip.patch | 21 |
2 files changed, 24 insertions, 0 deletions
diff --git a/sys-apps/ifplugd/files/digest-ifplugd-0.28-r9 b/sys-apps/ifplugd/files/digest-ifplugd-0.28-r9 new file mode 100644 index 000000000000..d58875572dca --- /dev/null +++ b/sys-apps/ifplugd/files/digest-ifplugd-0.28-r9 @@ -0,0 +1,3 @@ +MD5 df6f4bab52f46ffd6eb1f5912d4ccee3 ifplugd-0.28.tar.gz 142677 +RMD160 09914a1914a4432822bb660d6aef194debe688f1 ifplugd-0.28.tar.gz 142677 +SHA256 474754ac4ab32d738cbf2a4a3e87ee0a2c71b9048a38bdcd7df1e4f9fd6541f0 ifplugd-0.28.tar.gz 142677 diff --git a/sys-apps/ifplugd/files/ifplugd-0.28-noip.patch b/sys-apps/ifplugd/files/ifplugd-0.28-noip.patch new file mode 100644 index 000000000000..5daa4534eb49 --- /dev/null +++ b/sys-apps/ifplugd/files/ifplugd-0.28-noip.patch @@ -0,0 +1,21 @@ +[PATCH] Allow ifplugd to run when no TCP/IP is available + +This simple patch create AF_LOCAL socket instead of AF_INET so if TCP/IP +is not linked into kernel it still works. + +Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com> + +--- + +diff -urNp ifplugd-0.28.org/src/ifplugd.c ifplugd-0.28/src/ifplugd.c +--- ifplugd-0.28.org/src/ifplugd.c 2005-06-04 22:21:51.000000000 +0300 ++++ ifplugd-0.28/src/ifplugd.c 2007-10-30 05:22:53.000000000 +0200 +@@ -409,7 +409,7 @@ void work(void) { + break; + } + +- if ((fd = socket(AF_INET, SOCK_DGRAM, 0)) < 0) { ++ if ((fd = socket(AF_LOCAL, SOCK_DGRAM, 0)) < 0) { + daemon_log(LOG_ERR, "socket(): %s", strerror(errno)); + goto finish; + } |