Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
rt-UA
libnetwork
Commits
0b85a710
Commit
0b85a710
authored
1 year ago
by
Jean Auffray
Browse files
Options
Download
Email Patches
Plain Diff
add verification data ptr not null befor copy, user data can be null with somme tcp frames
parent
7523813e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
library/driver/ethernet/patmos_eth_mac.c
+6
-2
library/driver/ethernet/patmos_eth_mac.c
library/driver/ethernet/patmos_tsn_mac.c
+6
-2
library/driver/ethernet/patmos_tsn_mac.c
with
12 additions
and
4 deletions
+12
-4
library/driver/ethernet/patmos_eth_mac.c
View file @
0b85a710
...
...
@@ -356,8 +356,12 @@ network_error_t eth_mac_send_nb(network_frame_t *frame, mmio_ptr_t config_ptr)
// adapt address and get next frame segment
address
+=
frame
->
header_length
;
// write user data into buffer
mmio_wr_block
(
address
,
frame
->
user_data
,
frame
->
user_data_length
);
// user data can be null sometimes with TCP frames
if
(
frame
->
user_data
!=
NULL
)
{
// write user data into buffer
mmio_wr_block
(
address
,
frame
->
user_data
,
frame
->
user_data_length
);
}
unsigned
intr_en
=
EXC_STATUS
&
0x1
;
if
(
intr_en
)
...
...
This diff is collapsed.
Click to expand it.
library/driver/ethernet/patmos_tsn_mac.c
View file @
0b85a710
...
...
@@ -642,8 +642,12 @@ network_error_t tsn_mac_send_nb(network_frame_t *frame, mmio_ptr_t config_ptr)
// adapt address and get next frame segment
address
+=
frame
->
header_length
;
// write user data into buffer
mmio_wr_block
(
address
,
frame
->
user_data
,
frame
->
user_data_length
);
// user data can be null sometimes with TCP frames
if
(
frame
->
user_data
!=
NULL
)
{
// write user data into buffer
mmio_wr_block
(
address
,
frame
->
user_data
,
frame
->
user_data_length
);
}
// enques the frame
time_stamp_t
dummy_ts
;
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Projects
Groups
Snippets
Help