Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Software for White Rabbit PTP Core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
32
Issues
32
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
Software for White Rabbit PTP Core
Commits
09a736d5
Commit
09a736d5
authored
Sep 26, 2012
by
Grzegorz Daniluk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wrc_main: changing default mac to something that would let user know that something got wrong
parent
18177c83
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
wrc_main.c
wrc_main.c
+6
-3
No files found.
wrc_main.c
View file @
09a736d5
...
...
@@ -45,13 +45,16 @@ void wrc_initialize()
mac_addr
[
0
]
=
0x08
;
//
mac_addr
[
1
]
=
0x00
;
// CERN OUI
mac_addr
[
2
]
=
0x30
;
//
mac_addr
[
3
]
=
0xDE
;
// fallback MAC if get_persistent_mac fails
mac_addr
[
4
]
=
0xAD
;
mac_addr
[
5
]
=
0x42
;
own_scanbus
(
ONEWIRE_PORT
);
if
(
get_persistent_mac
(
ONEWIRE_PORT
,
mac_addr
)
==
-
1
)
{
mprintf
(
"Unable to determine MAC address
\n
"
);
mac_addr
[
0
]
=
0x11
;
//
mac_addr
[
1
]
=
0x22
;
//
mac_addr
[
2
]
=
0x33
;
// fallback MAC if get_persistent_mac fails
mac_addr
[
3
]
=
0x44
;
//
mac_addr
[
4
]
=
0x55
;
//
mac_addr
[
5
]
=
0x66
;
//
}
TRACE_DEV
(
"Local MAC address: %x:%x:%x:%x:%x:%x
\n
"
,
mac_addr
[
0
],
mac_addr
[
1
],
mac_addr
[
2
],
mac_addr
[
3
],
mac_addr
[
4
],
mac_addr
[
5
]);
...
...
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