Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - launch services like ftpd with io-pkt: (9 Items)
   
launch services like ftpd with io-pkt  
Thanks to you guys, I now have io-pkt running on my computer.
With io-pkt-v4-hc -d pcnet -p tcpip ad dhcp.client
I was able to create an ethernet interface which allows me to connect ot the internet for instance.
But I'd like to be able to do some ftp and ssh on this ethernet adapter.
How do I do that ?
I tried  io-pkt-v4-hc -d pcnet -p tcpip -p ftp since ftp is a protocol but it does not seem to work.
RE: launch services like ftpd with io-pkt  
Hi:
	You're now into basic networking questions :).  At least the build
issues have been resolved.  Most networking services are handled by inetd,
so if you run inetd as root (you should have your path set up to point to
io-pkt's inetd), then you'll find that you can now ftp into the box.

SSH is a bit of a messier problem. It isn't installed by default. You can
download an older version of SSH for x86 through the installer from our web
repository.  You then need to set up and run the sshd server. 

You can take a look at this posting for some more information:
http://community.qnx.com/sf/discussion/do/listPosts/projects.community/discu
ssion.qnx_momentics_getting_started.topc2033?pageSize=-1#post5161


There's also a newer ported version available in seanb's developer branch on
the Foundry, but given the problems with your build environment, we probably
don't want to go there.

	Robert.


-----Original Message-----
From: j v [mailto:jeanmarieverret@gmail.com] 
Sent: Thursday, April 03, 2008 5:05 AM
To: ionetmig-networking
Subject: launch services like ftpd with io-pkt

Thanks to you guys, I now have io-pkt running on my computer.
With io-pkt-v4-hc -d pcnet -p tcpip ad dhcp.client
I was able to create an ethernet interface which allows me to connect ot the
internet for instance.
But I'd like to be able to do some ftp and ssh on this ethernet adapter.
How do I do that ?
I tried  io-pkt-v4-hc -d pcnet -p tcpip -p ftp since ftp is a protocol but
it does not seem to work.


_______________________________________________
io-net migration
http://community.qnx.com/sf/go/post6412
Re: RE: launch services like ftpd with io-pkt  
Inetd perfectly works but now, I have a problem with my application, maybe you cannot help me but then maybe yes.
So, here it is, my application is a reading program.
It uses a homemade library which itself uses the libpcap. 
The reading program works as I have tested it independtly (with io-net and nfm-bpf.so),  io-pkt works because I can do 
ftp and connect to the internet but when I put them together it doesn't work anymore.
The connection is opened but the packets cannot be read, pcap_next_ex send a -1 as code error.
Do you have an idea where the problem comes from? 
Re: RE: launch services like ftpd with io-pkt  
On Wed, Apr 09, 2008 at 03:52:07AM -0400, j v wrote:
> Inetd perfectly works but now, I have a problem with my application, maybe you cannot help me but then maybe yes.
> So, here it is, my application is a reading program.
> It uses a homemade library which itself uses the libpcap. 
> The reading program works as I have tested it independtly (with io-net and nfm-bpf.so),  io-pkt works because I can do
 ftp and connect to the internet but when I put them together it doesn't work anymore.
> The connection is opened but the packets cannot be read, pcap_next_ex send a -1 as code error.
> Do you have an idea where the problem comes from? 

Do you have a test case?

-seanb
Re: RE: launch services like ftpd with io-pkt  
I don't know, what do you mean by test case ?
Re: RE: launch services like ftpd with io-pkt  
I wonder, my application uses a homemade library which uses libpcap so I think I have to recompile it with io-pkt.
But do I have to recompile other libraries like libexpat or libpcap?
Re: RE: launch services like ftpd with io-pkt  
On Thu, Apr 10, 2008 at 05:30:23AM -0400, j v wrote:
> I wonder, my application uses a homemade library which uses libpcap so I think I have to recompile it with io-pkt.
> But do I have to recompile other libraries like libexpat or libpcap?

You should use the libpcap that comes with io-pkt.
If you think you've found an issue with it, I'd
be happy to look at a test case.

Regards,

-seanb
Re: RE: launch services like ftpd with io-pkt  
> On Thu, Apr 10, 2008 at 05:30:23AM -0400, j v wrote:
> > I wonder, my application uses a homemade library which uses libpcap so I 
> think I have to recompile it with io-pkt.
> > But do I have to recompile other libraries like libexpat or libpcap?
> 
> You should use the libpcap that comes with io-pkt.
> If you think you've found an issue with it, I'd
> be happy to look at a test case.
> 
> Regards,
> 
> -seanb


I think it is quite ok. At last, I have managed to run my application, indeed using the io-pkt libpcap.
Though I have noticed a small bug in the source code, there is a double declaration of bpf_filter: in stage/usr/include/
net/bpf.h and in  stage/usr/include/pcap.h. But it can be corrected by just erasing the declaration of bpf_filter in net
/bpf.h.

Regards

Re: RE: launch services like ftpd with io-pkt  
> 
> I think it is quite ok. At last, I have managed to run my application, indeed using the io-pkt libpcap.
> Though I have noticed a small bug in the source code, there is a double declaration of bpf_filter: in stage/usr/
include/net/bpf.h and in  stage/usr/include/pcap.h. But it can be corrected by just erasing the declaration of 
bpf_filter in net/bpf.h.

Fixed thanks.  You just made all the help with your setup worthwhile :)

-seanb