diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-05-10 18:53:06 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-05-10 18:53:06 +0000 |
commit | b06c0210121a8d85b3ce7d5ee103acb9ced99334 (patch) | |
tree | e6b476c7aeb9478bc6a6b8f43fa6010554dd1d43 /sys/net/if_atm.h | |
parent | 2dfa1d8af7a78e29838148eb86fd537f185267d8 (diff) |
Make ATM_LLC_SETTYPE do the rigth thing: swap byte on LE machines, don't
swap on BE machines. The previous revision required a ntohs() in atm_output(),
to work on LE machines. This was broken for BE machines; bouyer
Diffstat (limited to 'sys/net/if_atm.h')
-rw-r--r-- | sys/net/if_atm.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/net/if_atm.h b/sys/net/if_atm.h index f94f02da05c..f70e41e878a 100644 --- a/sys/net/if_atm.h +++ b/sys/net/if_atm.h @@ -1,4 +1,4 @@ -/* $OpenBSD: if_atm.h,v 1.8 1996/11/09 23:02:31 chuck Exp $ */ +/* $OpenBSD: if_atm.h,v 1.9 1998/05/10 18:53:05 deraadt Exp $ */ /* * @@ -98,8 +98,8 @@ struct atmllc { /* 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); \ + (X)->type[0] = ((V) >> 8) & 0xff; \ + (X)->type[1] = ((V) & 0xff); \ } #ifdef _KERNEL |