From hsn@netmag.cz  Mon Apr  5 09:44:26 2004
Return-Path: <hsn@netmag.cz>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id A3BCE16A4CF
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  5 Apr 2004 09:44:26 -0700 (PDT)
Received: from mail.tiscali.cz (stateless1.tiscali.cz [213.235.135.70])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 6974743D66
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  5 Apr 2004 09:44:26 -0700 (PDT)
	(envelope-from hsn@netmag.cz)
Received: from asura.bsd (212.11.96.209) by mail.tiscali.cz (6.7.021)
        id 40292FFD00D9C6E2 for FreeBSD-gnats-submit@freebsd.org; Mon, 5 Apr 2004 18:44:25 +0200
Received: from hsn@localhost
	by asura.bsd (Exim 4.30_2 FreeBSD) id 1BAV9G-0000BJ-9S
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 05 Apr 2004 16:32:26 +0200
Message-Id: <E1BAV9G-0000BJ-9S@asura.bsd>
Date: Mon, 05 Apr 2004 16:32:26 +0200
From: Radim Kolar <hsn@netmag.cz>
Reply-To: Radim Kolar <hsn@netmag.cz>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: PATCH: Improve Linux IPX application compatibility
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         65217
>Category:       kern
>Synopsis:       PATCH: Improve Linux IPX application compatibility
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bms
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Apr 05 09:50:22 PDT 2004
>Closed-Date:    Sun Jan 02 13:02:04 GMT 2005
>Last-Modified:  Sun Jan 02 13:02:04 GMT 2005
>Originator:     Radim Kolar
>Release:        FreeBSD 5.2.1-RELEASE i386
>Organization:
Sanatana Dharma
>Environment:
System: FreeBSD asura.bsd 5.2.1-RELEASE FreeBSD 5.2.1-RELEASE #5: Thu Mar 25 09:24:50 CET 2004 root@asura.bsd:/usr/src/sys/i386/compile/UP i386
>Description:
While porting Descent 2 from linux to BSD i have found that some minor
things for better linux source code compatibility are missing.
>How-To-Repeat:
>Fix:
--- ipx.h.orig	Sun Dec  7 22:09:10 2003
+++ ipx.h	Mon Apr  5 16:24:54 2004
@@ -108,6 +108,7 @@
 union ipx_net {
 	u_char	c_net[4];
 	u_short	s_net[2];
+	u_int	u_net;
 };
 
 union ipx_net_u {
@@ -131,6 +132,8 @@
 	char		sipx_zero[2];
 };
 #define sipx_port sipx_addr.x_port
+#define sipx_network sipx_addr.x_net.u_net
+#define sipx_node sipx_addr.x_host.c_host
 
 /*
  * Definitions for IPX Internetwork Packet Exchange Protocol
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->bms 
Responsible-Changed-By: bms 
Responsible-Changed-When: Fri Jun 18 12:12:06 GMT 2004 
Responsible-Changed-Why:  
I'll field this 

http://www.freebsd.org/cgi/query-pr.cgi?pr=65217 
State-Changed-From-To: open->patched 
State-Changed-By: bms 
State-Changed-When: Tue Jun 22 21:47:01 GMT 2004 
State-Changed-Why:  
Committed to -CURRENT, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=65217 
State-Changed-From-To: patched->closed 
State-Changed-By: rwatson 
State-Changed-When: Sun Jan 2 13:01:09 GMT 2005 
State-Changed-Why:  
This was merged to RELENG_4 as ipx.h:1.15.2.1.  Closing as it's now 
applied on all maintained branches.  Thanks for the patch! 


http://www.freebsd.org/cgi/query-pr.cgi?pr=65217 
>Unformatted:
