Lines Matching refs:enetaddr
21 - ethernet data (struct eth_device -> enetaddr)
36 struct eth_device->enetaddr. If they differ, a warning is printed, and the
39 eth_device->enetaddr, and a warning will be printed.
41 locally-assigned MAC is written to eth_device->enetaddr.
64 then only use the enetaddr member of the eth_device structure. This is done
79 * void string_to_enetaddr(const char *addr, uchar *enetaddr);
83 uchar enetaddr[6];
84 string_to_enetaddr(addr, enetaddr);
85 /* enetaddr now equals { 0x00, 0x11, 0x22, 0x33, 0x44, 0x55 } */
87 * int eth_env_get_enetaddr(char *name, uchar *enetaddr);
91 all cases, the enetaddr memory is initialized. If the env var is not found,
94 uchar enetaddr[6];
95 if (!eth_env_get_enetaddr("ethaddr", enetaddr)) {
99 /* enetaddr is now set to the value stored in the ethaddr env var */
101 * int eth_env_set_enetaddr(char *name, const uchar *enetaddr);
105 uchar enetaddr[6] = { 0x00, 0x11, 0x22, 0x33, 0x44, 0x55 };
106 eth_env_set_enetaddr("ethaddr", enetaddr);
113 uchar enetaddr[6] = { 0x00, 0x11, 0x22, 0x33, 0x44, 0x55 };
114 printf("The MAC is %pM\n", enetaddr);
117 sprintf(buf, "%pM", enetaddr);