From owner-freebsd-questions@FreeBSD.ORG Mon Oct 15 06:23:35 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3DA06DD4 for ; Mon, 15 Oct 2012 06:23:35 +0000 (UTC) (envelope-from wangyc0307@gmail.com) Received: from mail-wg0-f42.google.com (mail-wg0-f42.google.com [74.125.82.42]) by mx1.freebsd.org (Postfix) with ESMTP id C01908FC12 for ; Mon, 15 Oct 2012 06:23:34 +0000 (UTC) Received: by mail-wg0-f42.google.com with SMTP id fm10so113525wgb.1 for ; Sun, 14 Oct 2012 23:23:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=58gxsT6UrwLybw2e25nBiowSeHbdHG+crwd68gP3Q4o=; b=ZOBM1JU5FIFhd3FfK6fm9YVKMnlG/4RpxDf5XRJjy+gnm9+DNaBdZFOeY9ccN2cxiG Ewj04UnNchTc5dxGlIOo15eUEhhiAUtToI4E5SyI0QLcpWu7CtRWujPLjbXAf6IM3Nri XZWuVEdo27xUkgk1SWe0TLhUmZ/tcT3s2csAL6B2C0sehf9S71fTGJpSPAPUHlVN5WqC C29qAfnfL3FnyCALxAjmwu3TY81X4y1ATRj9lRD9tBVF6Yl9pVfW5rXeTPs6Xr+CAOzN 8F2EdnI8VVocs8ibpb2QrTGWrb9TyexvwquhSY8bxngpIuqIfHHMB/gnW5/3yVgAY8pk JU1Q== MIME-Version: 1.0 Received: by 10.180.77.34 with SMTP id p2mr21373173wiw.0.1350282208212; Sun, 14 Oct 2012 23:23:28 -0700 (PDT) Received: by 10.216.202.6 with HTTP; Sun, 14 Oct 2012 23:23:27 -0700 (PDT) In-Reply-To: References: Date: Mon, 15 Oct 2012 14:23:27 +0800 Message-ID: Subject: Re: How does freebsd supports ipx? From: YC Wang To: =?UTF-8?B?0JLQuNGC0LDQu9C40Lkg0KLRg9GA0L7QstC10YY=?= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Oct 2012 06:23:35 -0000 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 : > 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=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