summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@oarcorp.com>2012-08-24 15:15:04 -0500
committerJoel Sherrill <joel.sherrill@oarcorp.com>2012-08-24 15:15:04 -0500
commit659d7adb7c6cdca737dee9272a00a4a8afc4d735 (patch)
tree5e68133d62230585c9b95908f10ee0fc43a455f3
parentrtems-bsd-config.h: Add __NEW_RTEMS_BSD__ until machine/param.h in tools can ... (diff)
parentFixed return values for jail methods. (diff)
downloadrtems-libbsd-659d7adb7c6cdca737dee9272a00a4a8afc4d735.tar.bz2
Merge branch 'master' of ssh://git.rtems.org/data/git/rtems-libbsd
-rw-r--r--rtemsbsd/src/rtems-bsd-jail.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/rtemsbsd/src/rtems-bsd-jail.c b/rtemsbsd/src/rtems-bsd-jail.c
index 9f5c1d57..6294e98c 100644
--- a/rtemsbsd/src/rtems-bsd-jail.c
+++ b/rtemsbsd/src/rtems-bsd-jail.c
@@ -198,7 +198,7 @@ prison_check_ip6(struct ucred *cred, struct in6_addr *ia6)
int
prison_local_ip4(struct ucred *cred, struct in_addr *ia)
{
- return EAFNOSUPPORT;
+ return 0;
}
/*
@@ -210,7 +210,7 @@ prison_local_ip4(struct ucred *cred, struct in_addr *ia)
int
prison_remote_ip4(struct ucred *cred, struct in_addr *ia)
{
- return EAFNOSUPPORT;
+ return 0;
}
/*
@@ -263,6 +263,7 @@ prison_remote_ip6(struct ucred *cred, struct in6_addr *ia6)
int
prison_saddrsel_ip4(struct ucred *cred, struct in_addr *ia)
{
+ return 1;
}
/*