summaryrefslogtreecommitdiffstats
path: root/rtemsbsd
diff options
context:
space:
mode:
authorJennifer Averett <jennifer.averett@oarcorp.com>2012-04-02 10:23:40 -0500
committerJennifer Averett <jennifer.averett@oarcorp.com>2012-04-02 10:23:40 -0500
commit6f539f7f444faf36a03297732aa510d7370f658a (patch)
tree435f80215308401f9c93eba156938297fdf38d99 /rtemsbsd
parentAdd globals to resolve linker conflicts. (diff)
downloadrtems-libbsd-6f539f7f444faf36a03297732aa510d7370f658a.tar.bz2
Added methods to resolve linker errors.
Diffstat (limited to 'rtemsbsd')
-rw-r--r--rtemsbsd/src/rtems-bsd-jail.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/rtemsbsd/src/rtems-bsd-jail.c b/rtemsbsd/src/rtems-bsd-jail.c
index 2462da53..7bd5b4a3 100644
--- a/rtemsbsd/src/rtems-bsd-jail.c
+++ b/rtemsbsd/src/rtems-bsd-jail.c
@@ -262,3 +262,27 @@ prison_get_ip4(struct ucred *cred, struct in_addr *ia)
{
return 0;
}
+
+/*
+ * Return 1 if the passed credential is in a jail and that jail does not
+ * have its own virtual network stack, otherwise 0.
+ */
+int
+jailed_without_vnet(struct ucred *cred)
+{
+ return 0;
+}
+
+/*
+ * Pass back primary IPv6 address for this jail.
+ *
+ * If not restricted return success but do not alter the address. Caller has
+ * to make sure to initialize it correctly (e.g. IN6ADDR_ANY_INIT).
+ *
+ * Returns 0 on success, EAFNOSUPPORT if the jail doesn't allow IPv6.
+ */
+int
+prison_get_ip6(struct ucred *cred, struct in6_addr *ia6)
+{
+ return 0;
+}