summaryrefslogtreecommitdiffstats
path: root/rtemsbsd/include/rtems
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2018-01-23 11:52:50 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2018-01-23 14:50:36 +0100
commit22538146a5624acd4ccb1f5c60b74b966b7a9732 (patch)
treef0cab91ef8165679dfc89712a2d08895184bc693 /rtemsbsd/include/rtems
parentehci_mpc83xx.c: Fix for qoriq hypervisor guest (diff)
downloadrtems-libbsd-22538146a5624acd4ccb1f5c60b74b966b7a9732.tar.bz2
Add rtems_bsd_ifconfig()
Diffstat (limited to 'rtemsbsd/include/rtems')
-rwxr-xr-xrtemsbsd/include/rtems/bsd/bsd.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/rtemsbsd/include/rtems/bsd/bsd.h b/rtemsbsd/include/rtems/bsd/bsd.h
index 5d303e94..19428a51 100755
--- a/rtemsbsd/include/rtems/bsd/bsd.h
+++ b/rtemsbsd/include/rtems/bsd/bsd.h
@@ -121,6 +121,22 @@ rtems_status_code rtems_bsd_initialize_dhcp(void);
int rtems_bsd_ifconfig_lo0(void);
/**
+ * @brief Configures an interface.
+ *
+ * In case addr_gateway is not NULL, then it will be used as the default
+ * gateway.
+ *
+ * @param[in] ifname The interface name.
+ * @param[in] addr_self The address of the interface.
+ * @param[in] netmask The sub-network mask.
+ * @param[in] addr_gateway The address of the gateway. May be NULL.
+ *
+ * @return Returns an exit code, see also <sysexits.h>.
+ */
+int rtems_bsd_ifconfig(const char *ifname, const char *addr_self,
+ const char *netmask, const char *addr_gateway);
+
+/**
* @brief Returns the initial priority for a task specified by its name.
*
* Applications may provide their own implementation of this function. For