[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ipfilter
Subject:    Re: ioctl() problem in 32 bit application on Solaris 8 (64 bit kernel )
From:       Darren Reed <darrenr () reed ! wattle ! id ! au>
Date:       2001-12-30 14:23:56
[Download RAW message or body]

In some email I received from Thorsten Herber, sie wrote:
[Charset iso-8859-1 unsupported, filtering to ASCII...]
> I try to use an ipnat ioctl() to obtain the real IP address on a Solaris 8
> machine with a 64 bit kernel. My code is very similar to the code in
> /samples/proxy.c
> 
> When i compile my program as a 32 bit application, iocl() returns
> "Invalid argument".  When i compile it as a 64 bit application then it
> returns the correct result.
> 
> My problem is, that the rest of the application is not 64 bit and it will
> probably take a lot of time to make it 64 bit.
> 
> Is there a way to use the ipnat ioctl() in a 32 bit application on a 64
> bit kernel?

The problem is all the pointers change in size from 32 to 64 bits, so
without creating a generic type for all the pointers, it's not really
possible.

Darren
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic