diff options
author | chuck <chuck@cvs.openbsd.org> | 1996-11-09 23:02:33 +0000 |
---|---|---|
committer | chuck <chuck@cvs.openbsd.org> | 1996-11-09 23:02:33 +0000 |
commit | 08b80758e6c9cb53180a1e4bc42ac85ab4df4e20 (patch) | |
tree | 170aa551b63ebae482e2b3863d5def1154f4833d /sys/net/if_atm.h | |
parent | fb93ff81f8acf7a82626e895aa7861171cafc005 (diff) |
fix previous byte-order fix the correct way
(from Zdenek Salvet <salvet@horn.ics.muni.cz>)
Diffstat (limited to 'sys/net/if_atm.h')
-rw-r--r-- | sys/net/if_atm.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/net/if_atm.h b/sys/net/if_atm.h index a30fe506749..f94f02da05c 100644 --- a/sys/net/if_atm.h +++ b/sys/net/if_atm.h @@ -1,4 +1,4 @@ -/* $OpenBSD: if_atm.h,v 1.7 1996/07/03 17:14:30 chuck Exp $ */ +/* $OpenBSD: if_atm.h,v 1.8 1996/11/09 23:02:31 chuck Exp $ */ /* * @@ -95,7 +95,8 @@ struct atmllc { u_int8_t type[2]; /* "ethernet" type */ }; -#define ATM_LLC_TYPE(X) (((X)->type[1] << 8) | ((X)->type[0])) +/* ATM_LLC macros: note type code in host byte order */ +#define ATM_LLC_TYPE(X) (((X)->type[0] << 8) | ((X)->type[1])) #define ATM_LLC_SETTYPE(X,V) { \ (X)->type[1] = ((V) >> 8) & 0xff; \ (X)->type[0] = ((V) & 0xff); \ |