diff options
author | julian <julian@FreeBSD.org> | 1997-10-29 00:30:52 +0000 |
---|---|---|
committer | julian <julian@FreeBSD.org> | 1997-10-29 00:30:52 +0000 |
commit | 827244dc7af41cc23a70ef09c97f87098cca61c1 (patch) | |
tree | bbce555746658d160f7816b2ad5ce769375f26e1 /sys/netatalk/ddp_output.c | |
parent | ee40c84c0b3204e606998712fa949e6e5907d5d4 (diff) | |
download | FreeBSD-src-827244dc7af41cc23a70ef09c97f87098cca61c1.zip FreeBSD-src-827244dc7af41cc23a70ef09c97f87098cca61c1.tar.gz |
Fix various problems with netatalk kernel support.
Some of these changes are a bit rough and will become
more polished later. the changes to if_ethersubr should largely be moved
to within the appletalk code, but that will happen later.
A few of these were related to network-byteorder problems,
and more were related to loopback failures.
Diffstat (limited to 'sys/netatalk/ddp_output.c')
-rw-r--r-- | sys/netatalk/ddp_output.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netatalk/ddp_output.c b/sys/netatalk/ddp_output.c index 96de7ca..acaf47e 100644 --- a/sys/netatalk/ddp_output.c +++ b/sys/netatalk/ddp_output.c @@ -124,11 +124,11 @@ ddp_route( struct mbuf *m, struct route *ro) if ( (ro->ro_rt != NULL) && ( ro->ro_rt->rt_ifa ) && ( ifp = ro->ro_rt->rt_ifa->ifa_ifp )) { - net = satosat(ro->ro_rt->rt_gateway)->sat_addr.s_net; + net = ntohs(satosat(ro->ro_rt->rt_gateway)->sat_addr.s_net); for ( aa = at_ifaddr; aa; aa = aa->aa_next ) { if (((net == 0) || (aa->aa_ifp == ifp)) && - ntohs( net ) >= ntohs( aa->aa_firstnet ) && - ntohs( net ) <= ntohs( aa->aa_lastnet )) { + net >= ntohs( aa->aa_firstnet ) && + net <= ntohs( aa->aa_lastnet )) { break; } } |