Andrea Pacini | 16 May 2006 15:50
Picon
Favicon

ioctl() not implemented

I am trying to install Contiki 2.x snap 9.1 on Windows XP / Cygwin.
I successful  compiled in /platform/sky directory (with some
modifications because some functions didn't exist on Cygwin) but now
I am not able to run tunslip.

When I run tunslip I get the following error:

tunslip: ioctl: Function not implemented

How can I solve this problem ?

Thanks
Andrea

-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
Adam Dunkels | 16 May 2006 21:32
Picon
Picon

Re: ioctl() not implemented

Hi,
Does cygwin support the tun/tap device (see 
http://vtun.sourceforge.net/tun/faq.html)? If not, the tunslip program 
wouldn't work anyway. If there is support for tun/tap, try to comment 
out the ioctl() call and see if it works.

Others might (should! do! :-) know better...

Regards,

/adam

Andrea Pacini wrote:
> I am trying to install Contiki 2.x snap 9.1 on Windows XP / Cygwin.
> I successful  compiled in /platform/sky directory (with some
> modifications because some functions didn't exist on Cygwin) but now
> I am not able to run tunslip.
> 
> When I run tunslip I get the following error:
> 
> tunslip: ioctl: Function not implemented
> 
> How can I solve this problem ?
> 
> Thanks
> Andrea
> 
> 
> -------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
(Continue reading)

Adam Thornton | 16 May 2006 21:41

Re: ioctl() not implemented


On May 16, 2006, at 2:32 PM, Adam Dunkels wrote:

> Hi,
> Does cygwin support the tun/tap device (see http:// 
> vtun.sourceforge.net/tun/faq.html)? If not, the tunslip program  
> wouldn't work anyway. If there is support for tun/tap, try to  
> comment out the ioctl() call and see if it works.
>
> Others might (should! do! :-) know better...

You might want to take a look at the Hercules project.  It's a System/ 
370|390|zSeries emulator, which uses WinPCap, I think, to provide a  
virtual network interface. 

-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
Adam Dunkels | 16 May 2006 22:20
Picon
Picon

Re: ioctl() not implemented

Adam Thornton wrote:
> You might want to take a look at the Hercules project.  It's a 
> System/370|390|zSeries emulator, which uses WinPCap, I think, to provide 
> a virtual network interface. 

There is also some very good code from Oliver Schmidt that uses raw 
sockets under Windows that perhaps could be used to create something 
similar:
http://contiki.cvs.sourceforge.net/contiki/contiki-win32/uip/

/adam
--

-- 
Adam Dunkels, Swedish Institute of Computer Science
http://www.sics.se/~adam/

-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
Andrea Pacini | 16 May 2006 22:51
Picon
Favicon

Re: ioctl() not implemented

Thanks for your reply.

Andrea
----- Original Message ----- 
From: "Adam Thornton" <adam@...>
To: <contiki-developers@...>
Sent: Tuesday, May 16, 2006 9:41 PM
Subject: Re: [Contiki-developers] ioctl() not implemented

>
> On May 16, 2006, at 2:32 PM, Adam Dunkels wrote:
>
>> Hi,
>> Does cygwin support the tun/tap device (see http:// 
>> vtun.sourceforge.net/tun/faq.html)? If not, the tunslip program  wouldn't 
>> work anyway. If there is support for tun/tap, try to  comment out the 
>> ioctl() call and see if it works.
>>
>> Others might (should! do! :-) know better...
>
> You might want to take a look at the Hercules project.  It's a System/ 
> 370|390|zSeries emulator, which uses WinPCap, I think, to provide a 
> virtual network interface.
>
> -------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job 
> easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
(Continue reading)

Oliver Schmidt | 17 May 2006 00:20
Picon

Re: ioctl() not implemented

Hi,

> There is also some very good code from Oliver Schmidt that uses raw
> sockets under Windows that perhaps could be used to create something
> similar:
> http://contiki.cvs.sourceforge.net/contiki/contiki-win32/uip/

Thanks for the positive feedback, Adam :-)

The good news about my Win32 raw socket implementation is that it
complements uIP very well because it leaves Ethernet and ARP handling to
Win32 and deals with pure IP packets - exactly what uIP expects.

The bad news about it is that it doesn't run on WinXP, only on Win2k because
Microsoft removed most of the raw socket support for security reasons :-((

Best, Oliver

-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
Oliver Schmidt | 17 May 2006 00:15
Picon

Re: ioctl() not implemented

Hi,

> You might want to take a look at the Hercules project.  It's a System/
> 370|390|zSeries emulator, which uses WinPCap, I think, to provide a
> virtual network interface.

About every Win32 project with virtual interfaces is based on WinPCap. Among
others
- AppleWin (Apple2 emulator)
- VICE (C64 emulator)
- Zen (User Mode Linux)

Best, Oliver

-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
Spiro Trikaliotis | 17 May 2006 07:02
Picon
Picon

Re: ioctl() not implemented

Hello,

* On Wed, May 17, 2006 at 12:15:32AM +0200 Oliver Schmidt wrote:

> About every Win32 project with virtual interfaces is based on WinPCap.

This is true.

Unfortunately, WinPCap most probably will not be available on Vista
64-bit (as any other kernel-mode driver) unless some corporation is
willing to spend approx. $500 p.a. for a VeriSign Certificate. :(

Regards,
   Spiro.

--

-- 
Spiro R. Trikaliotis
http://www.trikaliotis.net/
http://cbm4win.sf.net/

-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
Groepaz | 17 May 2006 07:10
Picon

Re: ioctl() not implemented

On Wednesday 17 May 2006 07:02, Spiro Trikaliotis wrote:
> Hello,
>
> * On Wed, May 17, 2006 at 12:15:32AM +0200 Oliver Schmidt wrote:
> > About every Win32 project with virtual interfaces is based on WinPCap.
>
> This is true.
>
> Unfortunately, WinPCap most probably will not be available on Vista
> 64-bit (as any other kernel-mode driver) unless some corporation is
> willing to spend approx. $500 p.a. for a VeriSign Certificate. :(

time to setup a cluster in the attic and do some numbercrunching... :=P

--

-- 

http://www.hitmen-console.org
http://www.gc-linux.org/docs/yagcd.html
http://www.pokefinder.org
http://ftp.pokefinder.org

IBM is not a necessary evil. IBM is not necessary. 
<Ted Nelson>

-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
(Continue reading)

Oliver Schmidt | 17 May 2006 12:35
Picon

Re: ioctl() not implemented

Hi,

> Unfortunately, WinPCap most probably will not be available on Vista
> 64-bit (as any other kernel-mode driver) unless some corporation is
> willing to spend approx. $500 p.a. for a VeriSign Certificate. :(

Another example for this really unsatisfying status may be cbm4win ;-)

Oliver
_______________________________________________________________
SMS schreiben mit WEB.DE FreeMail - einfach, schnell und
kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192

-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

Gmane