Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ycai
simbricks
Commits
6a3a33f1
Commit
6a3a33f1
authored
Jun 17, 2020
by
Antoine Kaufmann
Browse files
proto: update ethernet protocol to add timestamps
parent
5201df73
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
6 deletions
+16
-6
proto/cosim_eth_proto.h
proto/cosim_eth_proto.h
+16
-6
No files found.
proto/cosim_eth_proto.h
View file @
6a3a33f1
...
...
@@ -58,20 +58,25 @@ struct cosim_eth_proto_net_intro {
#define COSIM_ETH_PROTO_D2N_MSG_SEND 0x2
struct
cosim_eth_proto_d2n_dummy
{
uint8_t
pad
[
63
];
uint8_t
pad
[
48
];
uint64_t
timestamp
;
uint8_t
pad_
[
7
];
uint8_t
own_type
;
}
__attribute__
((
packed
));
struct
cosim_eth_proto_d2n_sync
{
uint8_t
pad
[
48
];
uint64_t
timestamp
;
uint8_t
pad
[
55
];
uint8_t
pad
_
[
7
];
uint8_t
own_type
;
}
__attribute__
((
packed
));
struct
cosim_eth_proto_d2n_send
{
uint16_t
len
;
uint8_t
port
;
uint8_t
pad
[
60
];
uint8_t
pad
[
45
];
uint64_t
timestamp
;
uint8_t
pad_
[
7
];
uint8_t
own_type
;
uint8_t
data
[];
}
__attribute__
((
packed
));
...
...
@@ -97,20 +102,25 @@ union cosim_eth_proto_d2n {
#define COSIM_ETH_PROTO_N2D_MSG_RECV 0x2
struct
cosim_eth_proto_n2d_dummy
{
uint8_t
pad
[
63
];
uint8_t
pad
[
48
];
uint64_t
timestamp
;
uint8_t
pad_
[
7
];
uint8_t
own_type
;
}
__attribute__
((
packed
));
struct
cosim_eth_proto_n2d_sync
{
uint8_t
pad
[
48
];
uint64_t
timestamp
;
uint8_t
pad
[
55
];
uint8_t
pad
_
[
7
];
uint8_t
own_type
;
}
__attribute__
((
packed
));
struct
cosim_eth_proto_n2d_recv
{
uint16_t
len
;
uint8_t
port
;
uint8_t
pad
[
60
];
uint8_t
pad
[
45
];
uint64_t
timestamp
;
uint8_t
pad_
[
7
];
uint8_t
own_type
;
uint8_t
data
[];
};
...
...
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