diff options
author | julian <julian@FreeBSD.org> | 1995-11-13 21:01:36 +0000 |
---|---|---|
committer | julian <julian@FreeBSD.org> | 1995-11-13 21:01:36 +0000 |
commit | 446da0733178e92a1f6fae74ce45a9428b6ea86b (patch) | |
tree | d30ece84883bd72bc8d22162c3b0f8e77dccef75 /usr.sbin/IPXrouted/sap_output.c | |
parent | 4504ec3c14311f3f9d815da137c053f606813e0d (diff) | |
download | FreeBSD-src-446da0733178e92a1f6fae74ce45a9428b6ea86b.zip FreeBSD-src-446da0733178e92a1f6fae74ce45a9428b6ea86b.tar.gz |
Submitted by: John Hay <jhay@mikom.csir.co.za>
Here is some patches to IPXrouted. It does the following:
Always use the sap port in the destination address of sap broadcasts.
Clear the host part of network addresses so that routes will really
be deleted in the kernel.
Diffstat (limited to 'usr.sbin/IPXrouted/sap_output.c')
-rw-r--r-- | usr.sbin/IPXrouted/sap_output.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/IPXrouted/sap_output.c b/usr.sbin/IPXrouted/sap_output.c index e074c3a..472e038 100644 --- a/usr.sbin/IPXrouted/sap_output.c +++ b/usr.sbin/IPXrouted/sap_output.c @@ -28,7 +28,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: sap_output.c,v 1.4 1995/10/11 18:57:28 jhay Exp $ + * $Id: sap_output.c,v 1.1 1995/10/26 21:28:24 julian Exp $ */ /* @@ -60,8 +60,8 @@ sap_supply_toall(void) dst = ifp->int_flags & IFF_BROADCAST ? ifp->int_broadaddr : ifp->int_flags & IFF_POINTOPOINT ? ifp->int_dstaddr : ifp->int_addr; - if (ipx_dst->sipx_addr.x_port == 0) - ipx_dst->sipx_addr.x_port = htons(IPXPORT_SAP); + + ipx_dst->sipx_addr.x_port = htons(IPXPORT_SAP); flags = ifp->int_flags & IFF_INTERFACE ? MSG_DONTROUTE : 0; sap_supply(&dst, flags, ifp, SAP_WILDCARD); |