[PATCH openbmc] inarp: Add inverse ARP daemon

OpenBMC Patches openbmc-patches at stwcx.xyz
Fri Mar 4 20:10:24 AEDT 2016


From: Jeremy Kerr <jk at ozlabs.org>

This change adds 'inarp': A small daemon to listen for, and reply to
inverse ARP requests.

This should be started at system init time, so we add a .service file.

Signed-off-by: Jeremy Kerr <jk at ozlabs.org>
---
 meta-phosphor/common/recipes-phosphor/inarp/inarp.bb    | 17 +++++++++++++++++
 .../common/recipes-phosphor/inarp/inarp/inarp.service   |  8 ++++++++
 2 files changed, 25 insertions(+)
 create mode 100644 meta-phosphor/common/recipes-phosphor/inarp/inarp.bb
 create mode 100644 meta-phosphor/common/recipes-phosphor/inarp/inarp/inarp.service

diff --git a/meta-phosphor/common/recipes-phosphor/inarp/inarp.bb b/meta-phosphor/common/recipes-phosphor/inarp/inarp.bb
new file mode 100644
index 0000000..a36bba1
--- /dev/null
+++ b/meta-phosphor/common/recipes-phosphor/inarp/inarp.bb
@@ -0,0 +1,17 @@
+SUMMARY = "Inverse ARP daemon"
+DESCRIPTION = "Daemon to respond to Inverse-ARP requests"
+HOMEPAGE = "http://github.com/openbmc/inarp"
+PR = "r1"
+
+inherit obmc-phosphor-license
+inherit obmc-phosphor-c-daemon
+
+TARGET_CFLAGS   += "-fpic -O2"
+
+RDEPENDS_${PN} += "network"
+SRC_URI += "git://github.com/openbmc/inarp"
+
+SRCREV = "19ed5170356495f5fc67189513c5739780ee6a81"
+
+S = "${WORKDIR}/git"
+INSTALL_NAME = "inarp"
diff --git a/meta-phosphor/common/recipes-phosphor/inarp/inarp/inarp.service b/meta-phosphor/common/recipes-phosphor/inarp/inarp/inarp.service
new file mode 100644
index 0000000..55517ab
--- /dev/null
+++ b/meta-phosphor/common/recipes-phosphor/inarp/inarp/inarp.service
@@ -0,0 +1,8 @@
+[Unit]
+Description=Phosphor Inverse ARP daemon
+
+[Service]
+ExecStart=/usr/sbin/inarp
+
+[Install]
+WantedBy=multi-user.target
-- 
2.7.1




More information about the openbmc mailing list