diff options
author | Reyk Floeter <reyk@cvs.openbsd.org> | 2007-05-30 05:11:54 +0000 |
---|---|---|
committer | Reyk Floeter <reyk@cvs.openbsd.org> | 2007-05-30 05:11:54 +0000 |
commit | aff1b1268af7f66229d91dcd884d492cda8fc8e0 (patch) | |
tree | 2a7e09f11c1763112db23021f0f8af445f444761 /sys/dev/pci/if_che.c | |
parent | 4c83b191a3d33e183c86201791bf8afa3e65be18 (diff) |
fix the ether_aton-like function to print the correct lladdr (swap bytes)
ok claudio@
Diffstat (limited to 'sys/dev/pci/if_che.c')
-rw-r--r-- | sys/dev/pci/if_che.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_che.c b/sys/dev/pci/if_che.c index a5ab55848da..4f3ed02d3ac 100644 --- a/sys/dev/pci/if_che.c +++ b/sys/dev/pci/if_che.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_che.c,v 1.7 2007/05/28 16:26:23 claudio Exp $ */ +/* $OpenBSD: if_che.c,v 1.8 2007/05/30 05:11:53 reyk Exp $ */ /* * Copyright (c) 2007 Claudio Jeker <claudio@openbsd.org> @@ -625,7 +625,7 @@ che_conv_lladdr(char *mac, u_int8_t *lladdr) else if (mac[i] >= 'a' && mac[i] <= 'f') digit = mac[i] - 'a' + 10; - if (i & 1) + if ((i & 1) == 0) digit <<= 4; lladdr[i/2] |= digit; |