Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Switch - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
86
Issues
86
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
White Rabbit Switch - Software
Commits
3b308099
Commit
3b308099
authored
Jul 21, 2017
by
Adam Wujek
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
userspace/libwr: fix function mac_verify
Signed-off-by:
Adam Wujek
<
adam.wujek@cern.ch
>
parent
3d23ea9d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
mac.c
userspace/libwr/mac.c
+3
-2
No files found.
userspace/libwr/mac.c
View file @
3b308099
/*
* White Rabbit MAC utils
* Copyright (C) 2010, CERN.
* Copyright (C) 2010,
2017
CERN.
*
* Version: wrsw_rtud v1.0
*
* Authors: Tomasz Wlostowski (tomasz.wlostowski@cern.ch)
* Authors: Adam Wujek (adam.wujek@cern.ch)
*
* Description: MAC address type related operations.
*
...
...
@@ -71,7 +72,7 @@ int mac_verify(char *mac_str)
char
buffer
[
ETH_ALEN_STR
];
/* Check the length of a string containing MAC */
if
(
ETH_ALEN_STR
!=
strnlen
(
mac_str
,
ETH_ALEN_STR
+
1
)
)
{
if
(
ETH_ALEN_STR
==
strnlen
(
mac_str
,
ETH_ALEN_STR
)
+
1
)
{
/* Convert string to mac */
mac_from_str
(
mac
,
mac_str
);
/* Convert mac to string */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment