Git Product home page Git Product logo

ipx's People

Contributors

arushisinghal avatar ljishen avatar midar avatar pasis avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

ipx's Issues

How to install with DKMS

This is not a bug report but my experience how I install this modul with DKMS so whenever a kernel upgrade, this module will be automatically recompiled and reinstalled. Hope this will help other people who still needs ipx with the modern linux.

My system is ubuntu 18.04 with kernel version 5.4.0-54-generic.

  1. Install dkms and build-essential
    sudo apt install dkms build-essential

  2. Create directory /usr/src/ipx-1.0
    sudo mkdir /usr/src/ipx-1.0

  3. Download this repository source https://github.com/pasis/ipx/archive/master.zip

  4. Extract the zip file, place the files to /usr/src/ipx-1.0 , here is mine:

bambang@bambang-Vostro-1014:/usr/src/ipx-1.0$ ls -l
total 108
-rw-r--r-- 1 root root 50935 Nov 17 22:06 af_ipx.c
-rw-r--r-- 1 root root     8 Nov 17 23:43 built-in.a
-rw-r--r-- 1 root root   277 Nov 18 00:07 dkms.conf
-rw-r--r-- 1 root root  8733 Nov 17 22:06 ipx_proc.c
-rw-r--r-- 1 root root  6785 Nov 17 22:06 ipx_route.c
-rw-r--r-- 1 root root  2794 Nov 17 22:06 Kconfig
-rw-r--r-- 1 root root   436 Nov 17 22:06 Makefile
drwxr-xr-x 2 root root  4096 Nov 17 22:06 net
-rw-r--r-- 1 root root  1687 Nov 17 22:06 p8023.c
-rw-r--r-- 1 root root   767 Nov 17 22:06 pe2.c
-rw-r--r-- 1 root root   321 Nov 17 22:06 README
-rw-r--r-- 1 root root   955 Nov 17 22:06 sysctl_net_ipx.c

  1. Create dkms.conf file in /usr/src/ipx-1.0 with the content:
MAKE="'make'"
CLEAN="make clean"
BUILT_MODULE_NAME[0]="ipx"
BUILT_MODULE_LOCATION[0]="./"
DEST_MODULE_LOCATION[0]="/kernel"
BUILT_MODULE_NAME[1]="p8023"
BUILT_MODULE_LOCATION[1]="./"
DEST_MODULE_LOCATION[1]="/kernel"
PACKAGE_NAME="ipx"
PACKAGE_VERSION="1.0"
AUTOINSTALL=yes

  1. Add this package to dkms database:
    sudo dkms add -m ipx -v 1.0
    Make sure there is no error

7.Build the package through dkms, dkms will try to make the package:
sudo dkms build -m ipx -v 1.0
Make sure there is no error.

8.Install the package
sudo dkms install -m ipx -v 1.0
This will copy to ipx.ko and p8023.ko to the appropriate directory.

9.Now we have to tell the computer to load the ipx kernel module everytime it boots. Create file /etc/modules-load.d/ipx.conf with content as follow:

p8022
psnap
p8023
ipx
  1. Reboot the computer

  2. Check wether the ipx.ko is load or not:
    bambang@bambang-Vostro-1014:/usr/src/ipx-1.0$ lsmod | grep ipx

ipx                    28672  0
p8023                  16384  1 ipx
psnap                  16384  1 ipx
p8022                  16384  1 ipx

  1. Check dkms status
bambang@bambang-Vostro-1014:/usr/src/ipx-1.0$ dkms status
ipx, 1.0, 5.4.0-54-generic, x86_64: installed

  1. Done. Thank you.

ncpmount failed, error: ncpmount: No such device in mount(2)

Although I can login to a netware server, mounting with ncpmount failed:

akunting@akunting:~/dosemu2/20.04/64bits$ sudo ncpmount -S berkah -U bambang -u 1000 -g 1000 /media/server
Logging into berkah as BAMBANG
Password: 
ncpmount: No such device in mount(2)

akunting@akunting:~/dosemu2/20.04/64bits$ ncpmount -v
ncpfs version 2.2.6


Many google search result this is due to lack of ncpfs kernel module. Can you please help? Thank you.

Support for SPX?

I was wondering if support for SPX will be added? When trying to create a socket using socket(AF_IPX, SOCK_SEQPACKET, NSPROTO_SPX) or socket(AF_IPX, SOCK_STREAM, NSPROTO_SPX), I get ESOCKTNOSUPPORT. This works fine on Windows, does it need to be done differently on Linux?

IPX sockets seem to work fine.

Upstreaming?

I wanted to package this for Fedora, which does not allow out of tree kernel modules, but does allow them in RPMFusion. However, even in RPMFusion, it was recommended to try to upstream it instead, since it was removed due to lack of maintainer.

Do you have any intends to upstream this and maintain it? If not, do you mind if someone else would?

Can not install ipx.ko

Failed on installing the ipx.ko
insmod: ERROR: could not insert module ipx.ko: Unknown symbol in module

OS:Ubuntu 18.04
Linux kernel version: 5.0.0-23-generic

Please help, thank you.

dmesg output:

[13643.124280] ipx: loading out-of-tree module taints kernel.
[13643.124327] ipx: module verification failed: signature and/or required key missing - tainting kernel
[13643.124367] ipx: Unknown symbol unregister_8022_client (err -2)
[13643.124398] ipx: Unknown symbol unregister_snap_client (err -2)
[13643.124437] ipx: Unknown symbol make_8023_client (err -2)
[13643.124459] ipx: Unknown symbol register_snap_client (err -2)
[13643.124494] ipx: Unknown symbol register_8022_client (err -2)
[13643.124523] ipx: Unknown symbol destroy_8023_client (err -2)
[13683.084591] ipx: Unknown symbol unregister_8022_client (err -2)
[13683.084623] ipx: Unknown symbol unregister_snap_client (err -2)
[13683.084661] ipx: Unknown symbol make_8023_client (err -2)
[13683.084681] ipx: Unknown symbol register_snap_client (err -2)
[13683.084714] ipx: Unknown symbol register_8022_client (err -2)
[13683.084742] ipx: Unknown symbol destroy_8023_client (err -2)
[13693.492579] ipx: Unknown symbol unregister_8022_client (err -2)
[13693.492622] ipx: Unknown symbol unregister_snap_client (err -2)
[13693.492682] ipx: Unknown symbol make_8023_client (err -2)
[13693.492707] ipx: Unknown symbol register_snap_client (err -2)
[13693.492747] ipx: Unknown symbol register_8022_client (err -2)
[13693.492781] ipx: Unknown symbol destroy_8023_client (err -2)
[13707.404520] ipx: Unknown symbol unregister_8022_client (err -2)
[13707.404551] ipx: Unknown symbol unregister_snap_client (err -2)
[13707.404591] ipx: Unknown symbol register_snap_client (err -2)
[13707.404624] ipx: Unknown symbol register_8022_client (err -2)
[13984.556996] ipx: Unknown symbol unregister_8022_client (err -2)
[13984.557027] ipx: Unknown symbol unregister_snap_client (err -2)
[13984.557069] ipx: Unknown symbol register_snap_client (err -2)
[13984.557104] ipx: Unknown symbol register_8022_client (err -2)

kernel 6.3.1

`* Determining the location of the kernel source code

  • Found kernel source directory:
  • /usr/src/linux
    
  • Found sources for kernel version:
  • 6.3.1-xanmod1-dist
    
  • Checking for suitable kernel configuration options ... [ ok ]

Unpacking source...

Source unpacked in /var/tmp/portage/net-misc/ipx-modules-9999/work
Preparing source in /var/tmp/portage/net-misc/ipx-modules-9999/work/ipx-modules-9999 ...
Source prepared.
Configuring source in /var/tmp/portage/net-misc/ipx-modules-9999/work/ipx-modules-9999 ...
Source configured.
Compiling source in /var/tmp/portage/net-misc/ipx-modules-9999/work/ipx-modules-9999 ...
ln: failed to create symbolic link 'Module.symvers': File exists

  • Preparing ipx module
    make -j12 -s HOSTCC=x86_64-pc-linux-gnu-gcc 'LDFLAGS=-m elf_x86_64' KERNELDIR=/usr/src/linux M=/var/tmp/portage/net-misc/ipx-modules-9999/work/ipx-modules-9999 build
    Building with KERNELRELEASE = 6.3.1-xanmod1-dist
    /var/tmp/portage/net-misc/ipx-modules-9999/work/ipx-modules-9999/af_ipx.c: In function ‘ipx_destroy_socket’:
    /var/tmp/portage/net-misc/ipx-modules-9999/work/ipx-modules-9999/af_ipx.c:141:9: error: implicit declaration of function ‘sk_refcnt_debug_dec’ [-Werror=implicit-function-declaration]
    141 | sk_refcnt_debug_dec(sk);
    | ^~~~~~~~~~~~~~~~~~~
    /var/tmp/portage/net-misc/ipx-modules-9999/work/ipx-modules-9999/af_ipx.c: In function ‘ipx_create’:
    /var/tmp/portage/net-misc/ipx-modules-9999/work/ipx-modules-9999/af_ipx.c:1373:9: error: implicit declaration of function ‘sk_refcnt_debug_inc’ [-Werror=implicit-function-declaration]
    1373 | sk_refcnt_debug_inc(sk);
    | ^~~~~~~~~~~~~~~~~~~
    /var/tmp/portage/net-misc/ipx-modules-9999/work/ipx-modules-9999/af_ipx.c: In function ‘ipx_release’:
    /var/tmp/portage/net-misc/ipx-modules-9999/work/ipx-modules-9999/af_ipx.c:1396:9: error: implicit declaration of function ‘sk_refcnt_debug_release’ [-Werror=implicit-function-declaration]
    1396 | sk_refcnt_debug_release(sk);
    | ^~~~~~~~~~~~~~~~~~~~~~~
    cc1: some warnings being treated as errors
    make[2]: *** [scripts/Makefile.build:252: /var/tmp/portage/net-misc/ipx-modules-9999/work/ipx-modules-9999/af_ipx.o] Error 1
    make[1]: *** [Makefile:2180: /var/tmp/portage/net-misc/ipx-modules-9999/work/ipx-modules-9999] Error 2
    make: *** [Makefile:7: build] Error 2
  • ERROR: net-misc/ipx-modules-9999::linamh failed (compile phase):
  • emake failed
  • If you need support, post the output of emerge --info '=net-misc/ipx-modules-9999::linamh',
  • the complete build log and the output of emerge -pqv '=net-misc/ipx-modules-9999::linamh'.
  • The complete build log is located at '/var/tmp/portage/net-misc/ipx-modules-9999/temp/build.log'.
  • The ebuild environment file is located at '/var/tmp/portage/net-misc/ipx-modules-9999/temp/environment'.
  • Working directory: '/var/tmp/portage/net-misc/ipx-modules-9999/work/ipx-modules-9999'
  • S: '/var/tmp/portage/net-misc/ipx-modules-9999/work/ipx-modules-9999'
    `

Build Problems with 6.8.0

` * Determining the location of the kernel source code

  • Found kernel source directory:
  • /usr/src/linux
    
  • Found sources for kernel version:
  • 6.8.0-xanmod1-dist
    
  • Checking for suitable kernel configuration options ... [ ok ]

Unpacking source...

Source unpacked in /var/tmp/portage/net-misc/ipx-modules-9999/work
Preparing source in /var/tmp/portage/net-misc/ipx-modules-9999/work/ipx-modules-9999 ...
Source prepared.
Configuring source in /var/tmp/portage/net-misc/ipx-modules-9999/work/ipx-modules-9999 ...
Source configured.
Compiling source in /var/tmp/portage/net-misc/ipx-modules-9999/work/ipx-modules-9999 ...
ln: failed to create symbolic link 'Module.symvers': File exists

  • Preparing ipx module
    make -j12 -s HOSTCC=x86_64-pc-linux-gnu-gcc 'LDFLAGS=-m elf_x86_64' KERNELDIR=/usr/src/linux M=/var/tmp/portage/net-misc/ipx-modules-9999/work/ipx-modules-9999 build
    Building with KERNELRELEASE = 6.8.0-xanmod1-dist
    /var/tmp/portage/net-misc/ipx-modules-9999/work/ipx-modules-9999/pe2.c:26:24: warning: no previous prototype for ‘make_EII_client’ [-Wmissing-prototypes]
    26 | struct datalink_proto *make_EII_client(void)
    | ^~~~~~~~~~~~~~~
    /var/tmp/portage/net-misc/ipx-modules-9999/work/ipx-modules-9999/pe2.c:38:6: warning: no previous prototype for ‘destroy_EII_client’ [-Wmissing-prototypes]
    38 | void destroy_EII_client(struct datalink_proto *dl)
    | ^~~~~~~~~~~~~~~~~~
    /var/tmp/portage/net-misc/ipx-modules-9999/work/ipx-modules-9999/p8023.c:47:24: warning: no previous prototype for ‘make_8023_client’ [-Wmissing-prototypes]
    47 | struct datalink_proto *make_8023_client(void)
    | ^~~~~~~~~~~~~~~~
    /var/tmp/portage/net-misc/ipx-modules-9999/work/ipx-modules-9999/p8023.c:61:6: warning: no previous prototype for ‘destroy_8023_client’ [-Wmissing-prototypes]
    61 | void destroy_8023_client(struct datalink_proto *dl)
    | ^~~~~~~~~~~~~~~~~~~
    /var/tmp/portage/net-misc/ipx-modules-9999/work/ipx-modules-9999/af_ipx.c: In function ‘__ipx_bind’:
    /var/tmp/portage/net-misc/ipx-modules-9999/work/ipx-modules-9999/af_ipx.c:1512:17: error: implicit declaration of function ‘SOCK_DEBUG’; did you mean ‘SO_DEBUG’? [-Werror=implicit-function-declaration]
    1512 | SOCK_DEBUG(sk, "IPX: bind failed because port %X in use.\n",
    | ^~~~~~~~~~
    | SO_DEBUG
    cc1: some warnings being treated as errors
    make[3]: *** [scripts/Makefile.build:243: /var/tmp/portage/net-misc/ipx-modules-9999/work/ipx-modules-9999/af_ipx.o] Error 1
    make[2]: *** [/usr/src/linux-6.8.0-xanmod1-dist/Makefile:2073: /var/tmp/portage/net-misc/ipx-modules-9999/work/ipx-modules-9999] Error 2
    make[1]: *** [Makefile:240: __sub-make] Error 2
    make: *** [Makefile:7: build] Error 2
  • ERROR: net-misc/ipx-modules-9999::linamh failed (compile phase):
    `

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.