65 lines
1.9 KiB
Groff
65 lines
1.9 KiB
Groff
--- 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)
|
|
{
|