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
83
Issues
83
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
00ce398d
Commit
00ce398d
authored
Mar 09, 2012
by
Tomasz Wlostowski
Committed by
Alessandro Rubini
Mar 11, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
userspace/wrsw_rtud/mac.h: removed if_ether.h include causing preprocessor warning
parent
7ef9c608
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
463 deletions
+6
-463
wrsw_rtu_wb.h
userspace/include/hw/wrsw_rtu_wb.h
+0
-457
mac.h
userspace/wrsw_rtud/mac.h
+6
-6
No files found.
userspace/include/hw/wrsw_rtu_wb.h
deleted
100644 → 0
View file @
7ef9c608
This diff is collapsed.
Click to expand it.
userspace/wrsw_rtud/mac.h
View file @
00ce398d
...
@@ -6,11 +6,11 @@
...
@@ -6,11 +6,11 @@
*
*
* Authors: Juan Luis Manas (juan.manas@integrasys.es)
* Authors: Juan Luis Manas (juan.manas@integrasys.es)
*
*
* Description: MAC address type related operations.
* Description: MAC address type related operations.
*
*
* Fixes:
* Fixes:
* Alessandro Rubini
* Alessandro Rubini
*
*
*
*
* This program is free software; you can redistribute it and/or
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* modify it under the terms of the GNU General Public License
...
@@ -34,8 +34,8 @@
...
@@ -34,8 +34,8 @@
#include <string.h>
#include <string.h>
#include <linux/if_ether.h>
#include <linux/if_ether.h>
/**
/**
* \brief Check whether two mac addresses are equal.
* \brief Check whether two mac addresses are equal.
* @return 1 if both addresses are equal. 0 otherwise.
* @return 1 if both addresses are equal. 0 otherwise.
*/
*/
static
inline
int
mac_equal
(
uint8_t
a
[
ETH_ALEN
],
uint8_t
b
[
ETH_ALEN
])
static
inline
int
mac_equal
(
uint8_t
a
[
ETH_ALEN
],
uint8_t
b
[
ETH_ALEN
])
...
@@ -56,7 +56,7 @@ static inline uint8_t* mac_copy(uint8_t dst[ETH_ALEN], uint8_t src[ETH_ALEN])
...
@@ -56,7 +56,7 @@ static inline uint8_t* mac_copy(uint8_t dst[ETH_ALEN], uint8_t src[ETH_ALEN])
* \brief Set MAC address to 00:00:00:00:00:00.
* \brief Set MAC address to 00:00:00:00:00:00.
* @return pointer to mac address
* @return pointer to mac address
*/
*/
static
inline
uint8_t
*
mac_clean
(
uint8_t
mac
[
ETH_ALEN
])
static
inline
uint8_t
*
mac_clean
(
uint8_t
mac
[
ETH_ALEN
])
{
{
return
memset
(
mac
,
0x00
,
ETH_ALEN
);
return
memset
(
mac
,
0x00
,
ETH_ALEN
);
}
}
...
...
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