Re: Create Jail fail by c language

2015-04-18 Thread Dirk Engling
On 18.04.15 17:34, freekai wrote: > 18 j.ip4s=inet_addr(cp); >From the man page: > The “ip4s” and “ip6s” give the numbers of IPv4 and IPv6 addresses > that will be passed via their respective pointers. so it should rather read: > 18 j.ip4s=1; > 19 j.ip6s=0; > 20 > 21 if(1

Create Jail fail by c language

2015-04-18 Thread freekai
This is My Code: 1 #include 2 #include 3 #include 4 #include 5 #include 6 7 int main() 8 { 9 int jid; 10 struct jail j; 11 struct in_addr ip4; 12 const char *cp="192.168.1.10"; 13 14 j.version=JAIL_API_VERSION; 15 j.path="/home/mk/jail"; 16