Date: Mon, 15 Oct 2012 14:23:27 +0800 From: YC Wang <wangyc0307@gmail.com> To: =?UTF-8?B?0JLQuNGC0LDQu9C40Lkg0KLRg9GA0L7QstC10YY=?= <corebug@corebug.net> Cc: freebsd-questions@freebsd.org Subject: Re: How does freebsd supports ipx? Message-ID: <CAEcL0Zy4SpiRrxB8hMWeonzr7W4yBPZxriqgRZvugrySPJs9HA@mail.gmail.com> In-Reply-To: <CAKB6gVii8ckvVaCBZXDLWXYZ1VjFMSMwHA6q65oNj%2B9R1d5ViA@mail.gmail.com> References: <CAEcL0ZzTYyRFhFmXRSk4V7XwJhQd-1j40mZ0Y_xb0XkaJp1zpg@mail.gmail.com> <CAKB6gVii8ckvVaCBZXDLWXYZ1VjFMSMwHA6q65oNj%2B9R1d5ViA@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
2012/10/12 =D0=92=D0=B8=D1=82=D0=B0=D0=BB=D0=B8=D0=B9 =D0=A2=D1=83=D1=80=D0= =BE=D0=B2=D0=B5=D1=86 <corebug@corebug.net>: > 2012/10/12 YC Wang <wangyc0307@gmail.com>: >> Hi,all: >> >> I read from wikipedia that freebsd supports ipx. But when I tried >> to set ipx address on em0=EF=BC=8Cit 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 su= pported' >> ...... >> >> >> 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-unsubscribe@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=3DIPXKERNEL. 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/o= pt_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=3DIPXKERNEL", 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 root@freebsd-yc.vm:/usr/obj/usr/src/sys/IPXKERNEL i386 Thanks, YC Wang
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAEcL0Zy4SpiRrxB8hMWeonzr7W4yBPZxriqgRZvugrySPJs9HA>