Hi all,
I've a MAC address (ex- 00:06:cf:45:e5:d9) in a string format.Is there any way to convert this string to hex value, so that i can able to fill the MAC address structure (struct ether_addr)
thanx in advance
Hi all,
I've a MAC address (ex- 00:06:cf:45:e5:d9) in a string format.Is there any way to convert this string to hex value, so that i can able to fill the MAC address structure (struct ether_addr)
thanx in advance
sscanf with a bunch of %x formats ought to do it.
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.