Source
1
+
// SPDX-License-Identifier: GPL-2.0
1
2
#include <linux/string.h>
2
3
#include <linux/if_ether.h>
3
4
#include <linux/ctype.h>
4
5
#include <linux/kernel.h>
5
6
6
7
bool mac_pton(const char *s, u8 *mac)
7
8
{
8
9
int i;
9
10
10
11
/* XX:XX:XX:XX:XX:XX */