Re: How does freebsd supports ipx?

2012-10-16 Thread YC Wang
2012/10/16 ill...@gmail.com :
> On 15 October 2012 02:23, YC Wang  wrote:
> ...
>>
>> I rebuilt the kernel with "option IPX", but it didn't seem to work.
>> Below was what I did:
>>
>> 1) create a new configure file IPXKERNEL enabling "option IPX"
>> freebsd-yc# cat /sys/i386/conf/IPXKERNEL
>> include GENERIC
>> ident IPXKERNEL
>> options IPX
>>
>> 2) make buildkerel KERNCONF=IPXKERNEL. When finised, I found that the
>> ipx source code did get compiled, but hadn't been linked into a kernel
>> module.
>> freebsd-yc# find /usr/obj/usr/src/sys/IPXKERNEL/ | grep  ipx
>> /usr/obj/usr/src/sys/IPXKERNEL/modules/usr/src/sys/modules/arcnet/opt_ipx.h
>> /usr/obj/usr/src/sys/IPXKERNEL/modules/usr/src/sys/modules/if_ef/opt_ipx.h
>> /usr/obj/usr/src/sys/IPXKERNEL/modules/usr/src/sys/modules/if_tun/opt_ipx.h
>> /usr/obj/usr/src/sys/IPXKERNEL/modules/usr/src/sys/modules/netgraph/iface/opt_ipx.h
>> /usr/obj/usr/src/sys/IPXKERNEL/modules/usr/src/sys/modules/smbfs/opt_ipx.h
>> /usr/obj/usr/src/sys/IPXKERNEL/modules/usr/src/sys/modules/sppp/opt_ipx.h
>> /usr/obj/usr/src/sys/IPXKERNEL/modules/usr/src/sys/modules/wlan/opt_ipx.h
>> /usr/obj/usr/src/sys/IPXKERNEL/opt_ipx.h
>> /usr/obj/usr/src/sys/IPXKERNEL/ipx.o
>> /usr/obj/usr/src/sys/IPXKERNEL/ipx_cksum.o
>> /usr/obj/usr/src/sys/IPXKERNEL/ipx_input.o
>> /usr/obj/usr/src/sys/IPXKERNEL/ipx_outputfl.o
>> /usr/obj/usr/src/sys/IPXKERNEL/ipx_pcb.o
>> /usr/obj/usr/src/sys/IPXKERNEL/ipx_proto.o
>> /usr/obj/usr/src/sys/IPXKERNEL/ipx_usrreq.o
>>
>> 3) Still I installed the new kernel with "make installkernel
>> KERNCONF=IPXKERNEL", and as expected, it was exactly the same to the
>> old one.
>> freebsd-yc# ls /boot/kernel > kernel.txt
>> freebsd-yc# ls /boot/kernel.old/ > kernelold.txt
>> freebsd-yc# diff kernel.txt kernelold.txt
>>
>> So do you have any idea about this? The information of my system is:
>> freebsd-yc# uname -a
>> FreeBSD freebsd-yc.vm 8.3-RELEASE FreeBSD 8.3-RELEASE #0: Mon Oct 15
>> 11:20:49 CST 2012
>> r...@freebsd-yc.vm:/usr/obj/usr/src/sys/IPXKERNEL  i386
>>
>
> % kldstat -v | grep ipx
> might be enlightening.
>
> I don't know if you're trying to connect to a netware
> server, but . . .
>
> Back in the old-old days of FreeBSD 4.6 or so, I
> connected to a netware (4-something, IIRC) server
> using ipx/spx & ncp (options IPX, options NCP,
> options NWFS) & it seemed to work pretty well.
> But I haven't used it since 6.x, & I no longer
> connect to any netware machines, so I have
> no idea if it sill works.  I believe at the time it
> may have also required "options LIBMCHAIN" &
> "options FLOWTABLE", but that might have
> been a local issue.
>
> In the local network, I also had to have ethernet
> frames compiled in with at a minimum 8023 &
> SNAP support (& I think ETHER_II for sap/rip):
> device ef
> options ETHER_II
> options ETHER_8023
> options ETHER_8022
> options ETHER_SNAP
> (the ifconfig lines get ridiculous after a while)
>
> I also believe that nwfs.ko & libmchain.ko could be
> loaded as modules, but that ncp didn't play nicely
> when loaded as a module & ipx/spx had to be
> compiled into the kenel.
>
> Good luck.
>
> --
> --

Hi:

  I finally realize what the problem is: Rebuilding the kernel with
"option IPX" will not generate a kernel module, in fact, the ipx code
is built directly into the main kernel image. Therefore, I get ipx
supported. Anyway, thank you for your suggestions.

YC Wang
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: How does freebsd supports ipx?

2012-10-15 Thread ill...@gmail.com
On 15 October 2012 02:23, YC Wang  wrote:
...
>
> I rebuilt the kernel with "option IPX", but it didn't seem to work.
> Below was what I did:
>
> 1) create a new configure file IPXKERNEL enabling "option IPX"
> freebsd-yc# cat /sys/i386/conf/IPXKERNEL
> include GENERIC
> ident IPXKERNEL
> options IPX
>
> 2) make buildkerel KERNCONF=IPXKERNEL. When finised, I found that the
> ipx source code did get compiled, but hadn't been linked into a kernel
> module.
> freebsd-yc# find /usr/obj/usr/src/sys/IPXKERNEL/ | grep  ipx
> /usr/obj/usr/src/sys/IPXKERNEL/modules/usr/src/sys/modules/arcnet/opt_ipx.h
> /usr/obj/usr/src/sys/IPXKERNEL/modules/usr/src/sys/modules/if_ef/opt_ipx.h
> /usr/obj/usr/src/sys/IPXKERNEL/modules/usr/src/sys/modules/if_tun/opt_ipx.h
> /usr/obj/usr/src/sys/IPXKERNEL/modules/usr/src/sys/modules/netgraph/iface/opt_ipx.h
> /usr/obj/usr/src/sys/IPXKERNEL/modules/usr/src/sys/modules/smbfs/opt_ipx.h
> /usr/obj/usr/src/sys/IPXKERNEL/modules/usr/src/sys/modules/sppp/opt_ipx.h
> /usr/obj/usr/src/sys/IPXKERNEL/modules/usr/src/sys/modules/wlan/opt_ipx.h
> /usr/obj/usr/src/sys/IPXKERNEL/opt_ipx.h
> /usr/obj/usr/src/sys/IPXKERNEL/ipx.o
> /usr/obj/usr/src/sys/IPXKERNEL/ipx_cksum.o
> /usr/obj/usr/src/sys/IPXKERNEL/ipx_input.o
> /usr/obj/usr/src/sys/IPXKERNEL/ipx_outputfl.o
> /usr/obj/usr/src/sys/IPXKERNEL/ipx_pcb.o
> /usr/obj/usr/src/sys/IPXKERNEL/ipx_proto.o
> /usr/obj/usr/src/sys/IPXKERNEL/ipx_usrreq.o
>
> 3) Still I installed the new kernel with "make installkernel
> KERNCONF=IPXKERNEL", and as expected, it was exactly the same to the
> old one.
> freebsd-yc# ls /boot/kernel > kernel.txt
> freebsd-yc# ls /boot/kernel.old/ > kernelold.txt
> freebsd-yc# diff kernel.txt kernelold.txt
>
> So do you have any idea about this? The information of my system is:
> freebsd-yc# uname -a
> FreeBSD freebsd-yc.vm 8.3-RELEASE FreeBSD 8.3-RELEASE #0: Mon Oct 15
> 11:20:49 CST 2012
> r...@freebsd-yc.vm:/usr/obj/usr/src/sys/IPXKERNEL  i386
>

% kldstat -v | grep ipx
might be enlightening.

I don't know if you're trying to connect to a netware
server, but . . .

Back in the old-old days of FreeBSD 4.6 or so, I
connected to a netware (4-something, IIRC) server
using ipx/spx & ncp (options IPX, options NCP,
options NWFS) & it seemed to work pretty well.
But I haven't used it since 6.x, & I no longer
connect to any netware machines, so I have
no idea if it sill works.  I believe at the time it
may have also required "options LIBMCHAIN" &
"options FLOWTABLE", but that might have
been a local issue.

In the local network, I also had to have ethernet
frames compiled in with at a minimum 8023 &
SNAP support (& I think ETHER_II for sap/rip):
device ef
options ETHER_II
options ETHER_8023
options ETHER_8022
options ETHER_SNAP
(the ifconfig lines get ridiculous after a while)

I also believe that nwfs.ko & libmchain.ko could be
loaded as modules, but that ncp didn't play nicely
when loaded as a module & ipx/spx had to be
compiled into the kenel.

Good luck.

-- 
--
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: How does freebsd supports ipx?

2012-10-14 Thread YC Wang
2012/10/12 Виталий Туровец :
> 2012/10/12 YC Wang :
>> Hi,all:
>>
>> I read from wikipedia that freebsd supports ipx. But when I tried
>> to set ipx address on em0,it showed the following message:
>>
>> freebsd-yc# ifconfig em0 ipx (netnum.nodenum)
>> ifconfig: socket(family 23,SOCK_DGRAM: Protocol not supported
>>
>> And as I furher trussed the ifconfig process, I found this was
>> probably caused by the failure of the socket syscall:
>>
>> freebsd-yc# truss ifconfig em0 ipx netnum.nodenum
>> ..
>> socket(PF_IPX,SOCK_DGRAM,0)  ERR#43 'Protocol not 
>> supported'
>> ..
>>
>>
>> In contrast however, when calling "socket(PF_IPX,SOCK_DGRAM,0)" on
>> Linux, it will automatically load the ipx kernel module and the socket
>> syscall returns successfully. But I don't find any ipx module in
>> /boot/kernel/ on freebsd.
>>
>>So I wonder how does freebsd supports ipx? Is there any other work
>> I should do for this purpose?
>>
>>And if this isn't the most appropriate list for this question,
>> please let me know.
>>
>>   Thanks
>>   YC Wang
>> ___
>> freebsd-questions@freebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>> To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
>
> I suppose you should add "options IPX" line to your kernel
> configuration file and rebuild/reinstall the kernel.
>
>
> --
>
>
>
>
> ~~~
> WBR,
> Vitaliy Turovets
> NOC Lead @TV-Net ISP
> NOC Lead @Service Outsourcing company
> +38(093)265-70-55
> VITU-RIPE
> X-NCC-RegID: ua.tv

Hi:

I rebuilt the kernel with "option IPX", but it didn't seem to work.
Below was what I did:

1) create a new configure file IPXKERNEL enabling "option IPX"
freebsd-yc# cat /sys/i386/conf/IPXKERNEL
include GENERIC
ident IPXKERNEL
options IPX

2) make buildkerel KERNCONF=IPXKERNEL. When finised, I found that the
ipx source code did get compiled, but hadn't been linked into a kernel
module.
freebsd-yc# find /usr/obj/usr/src/sys/IPXKERNEL/ | grep  ipx
/usr/obj/usr/src/sys/IPXKERNEL/modules/usr/src/sys/modules/arcnet/opt_ipx.h
/usr/obj/usr/src/sys/IPXKERNEL/modules/usr/src/sys/modules/if_ef/opt_ipx.h
/usr/obj/usr/src/sys/IPXKERNEL/modules/usr/src/sys/modules/if_tun/opt_ipx.h
/usr/obj/usr/src/sys/IPXKERNEL/modules/usr/src/sys/modules/netgraph/iface/opt_ipx.h
/usr/obj/usr/src/sys/IPXKERNEL/modules/usr/src/sys/modules/smbfs/opt_ipx.h
/usr/obj/usr/src/sys/IPXKERNEL/modules/usr/src/sys/modules/sppp/opt_ipx.h
/usr/obj/usr/src/sys/IPXKERNEL/modules/usr/src/sys/modules/wlan/opt_ipx.h
/usr/obj/usr/src/sys/IPXKERNEL/opt_ipx.h
/usr/obj/usr/src/sys/IPXKERNEL/ipx.o
/usr/obj/usr/src/sys/IPXKERNEL/ipx_cksum.o
/usr/obj/usr/src/sys/IPXKERNEL/ipx_input.o
/usr/obj/usr/src/sys/IPXKERNEL/ipx_outputfl.o
/usr/obj/usr/src/sys/IPXKERNEL/ipx_pcb.o
/usr/obj/usr/src/sys/IPXKERNEL/ipx_proto.o
/usr/obj/usr/src/sys/IPXKERNEL/ipx_usrreq.o

3) Still I installed the new kernel with "make installkernel
KERNCONF=IPXKERNEL", and as expected, it was exactly the same to the
old one.
freebsd-yc# ls /boot/kernel > kernel.txt
freebsd-yc# ls /boot/kernel.old/ > kernelold.txt
freebsd-yc# diff kernel.txt kernelold.txt

So do you have any idea about this? The information of my system is:
freebsd-yc# uname -a
FreeBSD freebsd-yc.vm 8.3-RELEASE FreeBSD 8.3-RELEASE #0: Mon Oct 15
11:20:49 CST 2012
r...@freebsd-yc.vm:/usr/obj/usr/src/sys/IPXKERNEL  i386

Thanks,
YC Wang
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

Re: How does freebsd supports ipx?

2012-10-12 Thread ill...@gmail.com
On 12 October 2012 09:44, Michael Powell  wrote:
> YC Wang wrote:
>
> [snip]
>> syscall returns successfully. But I don't find any ipx module in
>> /boot/kernel/ on freebsd.
>>
>>    So I wonder how does freebsd supports ipx? Is there any other work
>> I should do for this purpose?
>
> I believe what you read in Wikipedia may be out of date. Someone correct me
> if I'm wrong, but I seem to recall that IPX was dropped from FreeBSD and is
> no longer supported. The code went unmaintained for too long and succumbed
> to bit rot, so eventually it was pulled.
>
> What I am unclear about is exactly when this happened. It wasn't all that
> long ago.
>

"options IPX" is still valid in 9.1-RC2.

-- 
--
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: How does freebsd supports ipx?

2012-10-12 Thread Michael Powell
YC Wang wrote:

[snip]
> syscall returns successfully. But I don't find any ipx module in
> /boot/kernel/ on freebsd.
> 
>    So I wonder how does freebsd supports ipx? Is there any other work
> I should do for this purpose?

I believe what you read in Wikipedia may be out of date. Someone correct me 
if I'm wrong, but I seem to recall that IPX was dropped from FreeBSD and is 
no longer supported. The code went unmaintained for too long and succumbed 
to bit rot, so eventually it was pulled.

What I am unclear about is exactly when this happened. It wasn't all that 
long ago.

-Mike
 



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: How does freebsd supports ipx?

2012-10-12 Thread Jamie Paul Griffin
> I suppose you should add "options IPX" line to your kernel
> configuration file and rebuild/reinstall the kernel.

have a look at /usr/src/sys/conf/NOTES and/or 
/usr/src/sys/{amd64,i386}/conf/NOTES for more information about kernel options
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: How does freebsd supports ipx?

2012-10-12 Thread Виталий Туровец
2012/10/12 YC Wang :
> Hi,all:
>
> I read from wikipedia that freebsd supports ipx. But when I tried
> to set ipx address on em0,it showed the following message:
>
> freebsd-yc# ifconfig em0 ipx (netnum.nodenum)
> ifconfig: socket(family 23,SOCK_DGRAM: Protocol not supported
>
> And as I furher trussed the ifconfig process, I found this was
> probably caused by the failure of the socket syscall:
>
> freebsd-yc# truss ifconfig em0 ipx netnum.nodenum
> ..
> socket(PF_IPX,SOCK_DGRAM,0)  ERR#43 'Protocol not 
> supported'
> ..
>
>
> In contrast however, when calling "socket(PF_IPX,SOCK_DGRAM,0)" on
> Linux, it will automatically load the ipx kernel module and the socket
> syscall returns successfully. But I don't find any ipx module in
> /boot/kernel/ on freebsd.
>
>So I wonder how does freebsd supports ipx? Is there any other work
> I should do for this purpose?
>
>And if this isn't the most appropriate list for this question,
> please let me know.
>
>   Thanks
>   YC Wang
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

I suppose you should add "options IPX" line to your kernel
configuration file and rebuild/reinstall the kernel.


-- 




~~~
WBR,
Vitaliy Turovets
NOC Lead @TV-Net ISP
NOC Lead @Service Outsourcing company
+38(093)265-70-55
VITU-RIPE
X-NCC-RegID: ua.tv
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

How does freebsd supports ipx?

2012-10-12 Thread YC Wang
Hi,all:

I read from wikipedia that freebsd supports ipx. But when I tried
to set ipx address on em0,it showed the following message:

freebsd-yc# ifconfig em0 ipx (netnum.nodenum)
ifconfig: socket(family 23,SOCK_DGRAM: Protocol not supported

And as I furher trussed the ifconfig process, I found this was
probably caused by the failure of the socket syscall:

freebsd-yc# truss ifconfig em0 ipx netnum.nodenum
..
socket(PF_IPX,SOCK_DGRAM,0)  ERR#43 'Protocol not supported'
..


In contrast however, when calling "socket(PF_IPX,SOCK_DGRAM,0)" on
Linux, it will automatically load the ipx kernel module and the socket
syscall returns successfully. But I don't find any ipx module in
/boot/kernel/ on freebsd.

   So I wonder how does freebsd supports ipx? Is there any other work
I should do for this purpose?

   And if this isn't the most appropriate list for this question,
please let me know.

  Thanks
  YC Wang
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"