×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Nov 2008
    Posts
    30

    Question Enabling IP forwarding

    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?

  2. #2
    Registered User
    Join Date
    Nov 2008
    Posts
    30

    Re: Enabling IP forwarding

    For the record, i've been have to get the KSoInetIfQuerySetRouter SetOpt call to return KErrNone setting a correct interface name in buff, but still does not make the phone fordward ip packages :-/

Similar Threads

  1. SipExample&profile enabling trouble
    By valexey in forum VoIP
    Replies: 5
    Last Post: 2008-10-20, 11:08
  2. Problem with Skin enabling - disabling and Setting List in S60
    By sauvikds in forum Series 40 & S60 Platform Feedback Archive
    Replies: 6
    Last Post: 2008-08-23, 14:29
  3. Problem with Skin enabling - disabling and Setting List in S60
    By sauvikds in forum Symbian User Interface
    Replies: 1
    Last Post: 2008-08-22, 13:45
  4. Problem with Skin enabling - disabling and Setting List in S60
    By sauvikds in forum General Development Questions
    Replies: 1
    Last Post: 2008-08-21, 12:44
  5. Error in enabling profile for SIP example supplied with Series60 3rd Ed. SDK
    By arindamrk in forum Symbian Signed Support, Application Packaging and Distribution and Security
    Replies: 4
    Last Post: 2006-04-18, 23:29

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •