mars_nwe-0.97.pl09
This commit is contained in:
@@ -34,6 +34,7 @@
|
||||
|
||||
#define IPX_DATA_GR_546 1 /* allow ipx packets > 546+30 Byte */
|
||||
|
||||
#define USE_MMAP 1 /* use mmap systen call */
|
||||
/* <--------------------------------------------------------------------> */
|
||||
#define MAX_NW_VOLS 10 /* max. number of mars_nwe-volumes */
|
||||
#define MAX_FILE_HANDLES_CONN 80 /* max. number of open files per */
|
||||
|
||||
64
examples/kpatch2.0.1
Normal file
64
examples/kpatch2.0.1
Normal file
@@ -0,0 +1,64 @@
|
||||
--- linux.org/include/linux/ipx.h Mon May 13 22:39:28 1996
|
||||
+++ linux/include/linux/ipx.h Thu Jul 4 00:09:54 1996
|
||||
@@ -75,5 +75,6 @@
|
||||
#define SIOCAIPXITFCRT (SIOCPROTOPRIVATE)
|
||||
#define SIOCAIPXPRISLT (SIOCPROTOPRIVATE+1)
|
||||
#define SIOCIPXCFGDATA (SIOCPROTOPRIVATE+2)
|
||||
+#define SIOCIPXNCPCONN (SIOCPROTOPRIVATE+3)
|
||||
#endif
|
||||
|
||||
--- linux.org/include/net/sock.h Wed Jun 12 23:08:41 1996
|
||||
+++ linux/include/net/sock.h Thu Jul 4 00:09:12 1996
|
||||
@@ -112,6 +112,10 @@
|
||||
* know the connection this socket belongs to.
|
||||
*/
|
||||
struct ncp_server *ncp_server;
|
||||
+/*
|
||||
+ * To handle special NCP-Sockets for mars_nwe
|
||||
+ */
|
||||
+ unsigned short ipx_ncp_conn;
|
||||
|
||||
};
|
||||
#endif
|
||||
|
||||
--- linux.org/net/ipx/af_ipx.c Wed Jun 12 22:55:00 1996
|
||||
+++ linux/net/ipx/af_ipx.c Thu Jul 4 00:09:46 1996
|
||||
@@ -468,6 +468,20 @@
|
||||
ipx_socket *sock1 = NULL, *sock2 = NULL;
|
||||
struct sk_buff *skb1 = NULL, *skb2 = NULL;
|
||||
|
||||
+ if (intrfc == ipx_primary_net
|
||||
+ && ntohs(ipx->ipx_dest.sock) == 0x451
|
||||
+ && *((char*)(ipx+1)) == 0x22
|
||||
+ && *((char*)(ipx+1)+1) == 0x22) {
|
||||
+ int connection = (int) *((char*)(ipx+1)+3);
|
||||
+ /* 255 connections are enough ;) */
|
||||
+ if (connection) {
|
||||
+ for (sock1=intrfc->if_sklist;
|
||||
+ (sock1 != NULL) &&
|
||||
+ (sock1->protinfo.af_ipx.ipx_ncp_conn != connection);
|
||||
+ sock1=sock1->next);;
|
||||
+ }
|
||||
+ }
|
||||
+ if (sock1 == NULL)
|
||||
sock1 = ipxitf_find_socket(intrfc, ipx->ipx_dest.sock);
|
||||
|
||||
/*
|
||||
@@ -2243,6 +2257,17 @@
|
||||
if(err) return err;
|
||||
return(ipxcfg_get_config_data((void *)arg));
|
||||
}
|
||||
+
|
||||
+ case SIOCIPXNCPCONN:
|
||||
+ {
|
||||
+ if (!suser()) return(-EPERM);
|
||||
+ err = verify_area(VERIFY_READ, (void *)arg,
|
||||
+ sizeof(unsigned short));
|
||||
+ if (err) return err;
|
||||
+ sk->protinfo.af_ipx.ipx_ncp_conn = get_fs_word(arg);
|
||||
+ return 0;
|
||||
+ }
|
||||
+
|
||||
case SIOCGSTAMP:
|
||||
if (sk)
|
||||
{
|
||||
@@ -1,5 +1,5 @@
|
||||
#!/bin/sh
|
||||
# mk.li 27-Apr-96 ###
|
||||
# mk.li 10-Jul-96 ###
|
||||
# please edit this file !
|
||||
|
||||
mk()
|
||||
@@ -20,6 +20,7 @@ mk()
|
||||
|
||||
TOLOWER='tr "[A-Z]" "[a-z]"'
|
||||
UNX=`uname -s | $TOLOWER`
|
||||
MASCHINE=`uname -m`
|
||||
MK_PPID=$$
|
||||
export MK_PPID
|
||||
trap 'echo "Error: Try again :)" && exit 1' 1
|
||||
@@ -33,8 +34,21 @@ case $UNX in
|
||||
# CFLAGS="-pipe -O2 -fomit-frame-pointer"
|
||||
# problems gcc2.5.8 ^^^^^^^^^^^^^^^^^^^^^
|
||||
CFLAGS="-pipe -Wall"
|
||||
HOSTCFLAGS="-DLINUX"
|
||||
|
||||
case $MASCHINE in
|
||||
sparc)
|
||||
HOSTCFLAGS="-DLINUX -DSPARC"
|
||||
;;
|
||||
*)
|
||||
HOSTCFLAGS="-DLINUX"
|
||||
;;
|
||||
esac
|
||||
|
||||
if [ -f /usr/lib/libgdbm.a ] || [ -f /usr/lib/libgdbm.so ] ; then
|
||||
NDBMLIB="-lgdbm"
|
||||
else
|
||||
NDBMLIB="-ldbm"
|
||||
fi
|
||||
CRYPTLIB=""
|
||||
NSLLIB=""
|
||||
MAKE=make
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
|
||||
|
||||
# Syntax of this config-file:
|
||||
# - everything after a "#" is not treated as a comment (particularly
|
||||
# - everything after a "#" is treated as a comment (particularly
|
||||
# it does never belong to the values themselves)
|
||||
# - entries _must_ begin with a number, indicating the section
|
||||
# they belong to
|
||||
@@ -160,7 +160,7 @@
|
||||
# Section 4: IPX-devices (strongly recommended)
|
||||
#
|
||||
# This section contains information for the ipx-router built into mars_nwe
|
||||
# and/or the external program "ipxrouted".
|
||||
# and/or the external program "nwrouted".
|
||||
# Both processes exchange the ipx-packets between your machine and the rest
|
||||
# of the world (in other words: their functionallity is essential). Of
|
||||
# course, to use one of both is already sufficient.
|
||||
@@ -272,9 +272,9 @@
|
||||
#
|
||||
# FLAG:
|
||||
# 0 enforce encryption of _all_ passwords by the DOS-client
|
||||
# (disables changing of password from the clients)
|
||||
# (default)
|
||||
# 1 as "0", but allow the non-encrypted version of the
|
||||
# "change password"-routine. (default)
|
||||
# "change password"-routine.
|
||||
# 7 allow all non-encrypted stuff but no empty nwe passwords.
|
||||
# 8 allow all non-encrypted stuff and also allow empty
|
||||
# nwe-passwords.
|
||||
@@ -283,7 +283,7 @@
|
||||
# this will *not* work with all clients !! (OS2/client)
|
||||
# -------------------------------------------------------------------------
|
||||
|
||||
7 1
|
||||
7 0
|
||||
|
||||
|
||||
# Section 8: currently not used
|
||||
|
||||
Reference in New Issue
Block a user