summaryrefslogtreecommitdiffstats
path: root/sys/netatalk
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>1998-06-05 06:55:37 +0000
committerjulian <julian@FreeBSD.org>1998-06-05 06:55:37 +0000
commit3d018c00ec057112f6955e9633709f47b0200656 (patch)
treefd7134847c861ca500187a27401612b816708305 /sys/netatalk
parent512321f97c0ca876bbd221e364202d9fdc5b8a05 (diff)
downloadFreeBSD-src-3d018c00ec057112f6955e9633709f47b0200656.zip
FreeBSD-src-3d018c00ec057112f6955e9633709f47b0200656.tar.gz
spurious ntohs calls were stopping some packets from being recognised
for what they are.. Taken from the netatalk mailing list. from a NetBSD user.
Diffstat (limited to 'sys/netatalk')
-rw-r--r--sys/netatalk/ddp_input.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/netatalk/ddp_input.c b/sys/netatalk/ddp_input.c
index 8717682..e5d3779 100644
--- a/sys/netatalk/ddp_input.c
+++ b/sys/netatalk/ddp_input.c
@@ -165,7 +165,7 @@ ddp_input( m, ifp, elh, phase )
/*
* There was no 'elh' passed on. This could still be
* either phase1 or phase2.
- * We have a long header, but we may be running on a pahse 1 net.
+ * We have a long header, but we may be running on a phase 1 net.
* Extract out all the info regarding this packet's src & dst.
*/
ddpstat.ddps_long++;
@@ -197,7 +197,7 @@ ddp_input( m, ifp, elh, phase )
* The TO address doesn't specify a net,
* So by definition it's for this net.
* Try find ifaddr info with the right phase,
- * the right interface, and either to our node, a bradcast,
+ * the right interface, and either to our node, a broadcast,
* or looped back (though that SHOULD be covered in the other
* cases).
*
@@ -241,8 +241,8 @@ ddp_input( m, ifp, elh, phase )
*/
if ((( ntohs( to.sat_addr.s_net ) < ntohs( aa->aa_firstnet ))
|| (ntohs( to.sat_addr.s_net ) > ntohs( aa->aa_lastnet )))
- && (( ntohs( to.sat_addr.s_net ) < ntohs( 0xff00 ))
- || (ntohs( to.sat_addr.s_net ) > ntohs( 0xfffe )))) {
+ && (( ntohs( to.sat_addr.s_net ) < 0xff00)
+ || (ntohs( to.sat_addr.s_net ) > 0xfffe ))) {
continue;
}
@@ -278,8 +278,8 @@ ddp_input( m, ifp, elh, phase )
/*
* If it aint for a net on any of our interfaces,
* or it IS for a net on a different interface than it came in on,
- * (and it is not looped back) then consider if we shoulf forward it.
- * As we a re not really a router this is a bit cheaky, but it may be
+ * (and it is not looped back) then consider if we should forward it.
+ * As we are not really a router this is a bit cheeky, but it may be
* useful some day.
*/
if ( (aa == NULL)
OpenPOWER on IntegriCloud