diff options
| author | Julian Elischer <julian@FreeBSD.org> | 1997-10-29 00:30:52 +0000 |
|---|---|---|
| committer | Julian Elischer <julian@FreeBSD.org> | 1997-10-29 00:30:52 +0000 |
| commit | 1d0eab59d381985c99cfa2ce981a3551367b27e6 (patch) | |
| tree | 6a0558464a4531fc857610b6ca4dff92f421d70f /sys/netatalk/at_control.c | |
| parent | 098eef7a1574f05ee57e503893d852b402a626d6 (diff) | |
Notes
Diffstat (limited to 'sys/netatalk/at_control.c')
| -rw-r--r-- | sys/netatalk/at_control.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/netatalk/at_control.c b/sys/netatalk/at_control.c index 3777a23b2c90..60f65ed4dcda 100644 --- a/sys/netatalk/at_control.c +++ b/sys/netatalk/at_control.c @@ -861,10 +861,10 @@ aa_claim_addr(struct ifaddr *ifa, struct sockaddr *gw0) */ if ((addr->sat_addr.s_net == gw->sat_addr.s_net) || ((addr->sat_range.r_netrange.nr_lastnet) - && (gw->sat_addr.s_net - >= addr->sat_range.r_netrange.nr_firstnet ) - && (gw->sat_addr.s_net - <= addr->sat_range.r_netrange.nr_lastnet ))) { + && (ntohs(gw->sat_addr.s_net) + >= ntohs(addr->sat_range.r_netrange.nr_firstnet )) + && (ntohs(gw->sat_addr.s_net) + <= ntohs(addr->sat_range.r_netrange.nr_lastnet )))) { return 1; } break; |
