Searched hist:"4940 fc889e1e63667a15243028ddcd84d471cd8e" (Results 1 – 5 of 5) sorted by relevance
/openbmc/linux/include/linux/ |
H A D | if_ether.h | diff 4940fc889e1e63667a15243028ddcd84d471cd8e Sat May 07 18:00:07 CDT 2011 Alexey Dobriyan <adobriyan@gmail.com> net: add mac_pton() for parsing MAC address
mac_pton() parses MAC address in form XX:XX:XX:XX:XX:XX and only in that form.
mac_pton() doesn't dirty result until it's sure string representation is valid.
mac_pton() doesn't care about characters _after_ last octet, it's up to caller to deal with it.
mac_pton() diverges from 0/-E return value convention. Target usage:
if (!mac_pton(str, whatever->mac)) return -EINVAL; /* ->mac being u8 [ETH_ALEN] is filled at this point. */ /* optionally check str[3 * ETH_ALEN - 1] for termination */
Use mac_pton() in pktgen and netconsole for start.
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
|
/openbmc/linux/net/core/ |
H A D | utils.c | diff 4940fc889e1e63667a15243028ddcd84d471cd8e Sat May 07 18:00:07 CDT 2011 Alexey Dobriyan <adobriyan@gmail.com> net: add mac_pton() for parsing MAC address
mac_pton() parses MAC address in form XX:XX:XX:XX:XX:XX and only in that form.
mac_pton() doesn't dirty result until it's sure string representation is valid.
mac_pton() doesn't care about characters _after_ last octet, it's up to caller to deal with it.
mac_pton() diverges from 0/-E return value convention. Target usage:
if (!mac_pton(str, whatever->mac)) return -EINVAL; /* ->mac being u8 [ETH_ALEN] is filled at this point. */ /* optionally check str[3 * ETH_ALEN - 1] for termination */
Use mac_pton() in pktgen and netconsole for start.
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
|
H A D | netpoll.c | diff 4940fc889e1e63667a15243028ddcd84d471cd8e Sat May 07 18:00:07 CDT 2011 Alexey Dobriyan <adobriyan@gmail.com> net: add mac_pton() for parsing MAC address
mac_pton() parses MAC address in form XX:XX:XX:XX:XX:XX and only in that form.
mac_pton() doesn't dirty result until it's sure string representation is valid.
mac_pton() doesn't care about characters _after_ last octet, it's up to caller to deal with it.
mac_pton() diverges from 0/-E return value convention. Target usage:
if (!mac_pton(str, whatever->mac)) return -EINVAL; /* ->mac being u8 [ETH_ALEN] is filled at this point. */ /* optionally check str[3 * ETH_ALEN - 1] for termination */
Use mac_pton() in pktgen and netconsole for start.
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
|
H A D | pktgen.c | diff 4940fc889e1e63667a15243028ddcd84d471cd8e Sat May 07 18:00:07 CDT 2011 Alexey Dobriyan <adobriyan@gmail.com> net: add mac_pton() for parsing MAC address
mac_pton() parses MAC address in form XX:XX:XX:XX:XX:XX and only in that form.
mac_pton() doesn't dirty result until it's sure string representation is valid.
mac_pton() doesn't care about characters _after_ last octet, it's up to caller to deal with it.
mac_pton() diverges from 0/-E return value convention. Target usage:
if (!mac_pton(str, whatever->mac)) return -EINVAL; /* ->mac being u8 [ETH_ALEN] is filled at this point. */ /* optionally check str[3 * ETH_ALEN - 1] for termination */
Use mac_pton() in pktgen and netconsole for start.
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
|
/openbmc/linux/drivers/net/ |
H A D | netconsole.c | diff 4940fc889e1e63667a15243028ddcd84d471cd8e Sat May 07 18:00:07 CDT 2011 Alexey Dobriyan <adobriyan@gmail.com> net: add mac_pton() for parsing MAC address
mac_pton() parses MAC address in form XX:XX:XX:XX:XX:XX and only in that form.
mac_pton() doesn't dirty result until it's sure string representation is valid.
mac_pton() doesn't care about characters _after_ last octet, it's up to caller to deal with it.
mac_pton() diverges from 0/-E return value convention. Target usage:
if (!mac_pton(str, whatever->mac)) return -EINVAL; /* ->mac being u8 [ETH_ALEN] is filled at this point. */ /* optionally check str[3 * ETH_ALEN - 1] for termination */
Use mac_pton() in pktgen and netconsole for start.
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
|