mars_nwe-0.96.pl05
This commit is contained in:
32
examples/kpatch1.3.56
Normal file
32
examples/kpatch1.3.56
Normal file
@@ -0,0 +1,32 @@
|
||||
--- ORG/af_ipx.c Sat Jan 6 13:54:59 1996
|
||||
+++ af_ipx.c Thu Jan 11 14:36:21 1996
|
||||
@@ -994,7 +994,9 @@
|
||||
return -EAGAIN;
|
||||
rt->ir_next=ipx_routes;
|
||||
ipx_routes=rt;
|
||||
- }
|
||||
+ } else if (intrfc == ipx_internal_net)
|
||||
+ /* don't change an existing route to internal net (mars_nwe) */
|
||||
+ return(0);
|
||||
|
||||
rt->ir_net = network;
|
||||
rt->ir_intrfc = intrfc;
|
||||
@@ -1108,9 +1110,15 @@
|
||||
ipx->ipx_tctrl=0;
|
||||
ipx->ipx_type=usipx->sipx_type;
|
||||
skb->h.raw = (unsigned char *)ipx;
|
||||
-
|
||||
- ipx->ipx_source.net = sk->ipx_intrfc->if_netnum;
|
||||
- memcpy(ipx->ipx_source.node, sk->ipx_intrfc->if_node, IPX_NODE_LEN);
|
||||
+
|
||||
+ if ((err = ntohs(sk->ipx_port)) == 0x453 || err == 0x452) {
|
||||
+ /* RIP/SAP special handling for mars_nwe */
|
||||
+ ipx->ipx_source.net = intrfc->if_netnum;
|
||||
+ memcpy(ipx->ipx_source.node, intrfc->if_node, IPX_NODE_LEN);
|
||||
+ } else {
|
||||
+ ipx->ipx_source.net = sk->ipx_intrfc->if_netnum;
|
||||
+ memcpy(ipx->ipx_source.node, sk->ipx_intrfc->if_node, IPX_NODE_LEN);
|
||||
+ }
|
||||
ipx->ipx_source.sock = sk->ipx_port;
|
||||
ipx->ipx_dest.net=usipx->sipx_network;
|
||||
memcpy(ipx->ipx_dest.node,usipx->sipx_node,IPX_NODE_LEN);
|
||||
@@ -30,6 +30,8 @@
|
||||
######################################
|
||||
# next entry for later use, not yet supported !!
|
||||
# the ipx kernel code must changed first, to do good routing !!
|
||||
# If you have mars_nwe V > 0.96pl4 and the small ipx-kpatch
|
||||
# you can use Internal Net and Routing.
|
||||
# INTERNAL NET [NODE]
|
||||
###3 0x999999 1 # Node default 1
|
||||
######################################
|
||||
|
||||
Reference in New Issue
Block a user