Thread (6 messages) 6 messages, 3 authors, 2019-10-02

Re: [PATCH iproute2 net-next v3 1/2] bridge: fdb get support

From: Stephen Hemminger <stephen@networkplumber.org>
Date: 2019-10-01 14:59:38

On Mon, 30 Sep 2019 21:52:22 -0700
Roopa Prabhu [off-list ref] wrote:
+
+	if (sscanf(addr, "%hhx:%hhx:%hhx:%hhx:%hhx:%hhx",
+		   abuf, abuf+1, abuf+2,
+		   abuf+3, abuf+4, abuf+5) != 6) {
+		fprintf(stderr, "Invalid mac address %s\n", addr);
+		return -1;
+	}
You could use ether_aton here if that would help.
Not required, but ether_ntoa already used in iplink_bridge.c
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help