insane-adding-machines / frosted

Frosted: Free POSIX OS for tiny embedded devices
GNU General Public License v2.0
213 stars 39 forks source link

MAC address value variation #110

Closed kuldeepdhaka closed 7 years ago

kuldeepdhaka commented 7 years ago

https://github.com/insane-adding-machines/frosted/blob/master/kernel/drivers/devusb_cdc_ecm.c#L168

static const char usb_macaddr[] = "005af341b4c9"; static const uint8_t mac_addr[6] = { 0, 0x5a, 0xf3, 0x41, 0xb4, 0xca };

Is the difference intentional? (last byte ca)

danielinux commented 7 years ago

yes, those are the two endpoints, "c9" is being assigned on the host side, while "ca" is on the device side.