From b06c0210121a8d85b3ce7d5ee103acb9ced99334 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Sun, 10 May 1998 18:53:06 +0000 Subject: 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 --- sys/net/if_atm.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/net/if_atm.h') 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 -- cgit v1.2.3