Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
PPSi
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
50
Issues
50
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
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
PPSi
Commits
c6c09267
Commit
c6c09267
authored
Mar 28, 2012
by
Grzegorz Daniluk
Committed by
Alessandro Rubini
Mar 28, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
spec: remove ethhdr struct definition from minic.h, it is already in spec.h
parent
9b4a64c3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
7 deletions
+1
-7
minic.h
arch-spec/include/minic.h
+0
-6
spec-socket.c
arch-spec/spec-socket.c
+1
-1
No files found.
arch-spec/include/minic.h
View file @
c6c09267
...
...
@@ -7,12 +7,6 @@
#define ETH_ALEN 6
#define ETH_P_1588 0x88F7
/* IEEE 1588 Timesync */
struct
ethhdr
{
unsigned
char
h_dest
[
ETH_ALEN
];
/* destination eth addr */
unsigned
char
h_source
[
ETH_ALEN
];
/* source ether addr */
uint16_t
h_proto
;
/* packet type ID field */
}
__attribute__
((
packed
));
void
minic_init
();
void
minic_disable
();
int
minic_poll_rx
();
...
...
arch-spec/spec-socket.c
View file @
c6c09267
...
...
@@ -44,7 +44,7 @@ int spec_send_packet(struct pp_instance *ppi, void *pkt, int len, int chtype,
int
use_pdelay_addr
)
{
static
int
led
;
struct
ethhdr
hdr
;
struct
spec_
ethhdr
hdr
;
if
(
OPTS
(
ppi
)
->
gptp_mode
)
memcpy
(
hdr
.
h_dest
,
PP_PEER_MACADDRESS
,
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