Hi, is it possible to enable IP forwarding in Symbian phones?
It seems PIPS defines IPCTL_FORWARDING so you could do the typical
int mib[4];
int state = 1;
mib[0] = CTL_NET;
mib[1] = PF_INET;
mib[2] = IPPROTO_IP;
mib[3] = IPCTL_FORWARDING;
sysctl(mib, 4, NULL, 0, (void*)&state, sizeof(state))
But sysctl is not defined.
Also i found KSoInetIfQuerySetRouter in in_sock.h but
RSocketServ ss;
ss.Connect();
TPckgBuf<TSoInetIfQuery> buff;
RSocket ipSocket;
ipSocket.Open(ss, KAfInet, KSockStream, KProtocolInetTcp);
ipSocket.SetOpt(KSoInetIfQuerySetRouter,KSolInetIfQuery,buff);
Fails with a -1 (not much explanation) maybe i've to fill some fields of the TSoInetIfQuery but couldn't find any that made sense.
Any ideas?



