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
6
Merge Requests
6
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
8c92a503
Commit
8c92a503
authored
Aug 30, 2019
by
Tomasz Wlostowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lib: fixed compile error in ipv4 support, make snmp_respond() public
parent
c54a9cd4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
2 deletions
+5
-2
ipv4.c
lib/ipv4.c
+1
-1
ipv4.h
lib/ipv4.h
+2
-0
snmp.c
lib/snmp.c
+2
-1
No files found.
lib/ipv4.c
View file @
8c92a503
...
...
@@ -106,7 +106,7 @@ static int bootp_poll(void)
if
(
len
>
0
)
ret
=
process_bootp
(
buf
,
len
);
if
(
task_not_yet
(
&
bootp_tics
,
TICS_PER_SECOND
))
if
(
wrc_
task_not_yet
(
&
bootp_tics
,
TICS_PER_SECOND
))
return
ret
;
len
=
prepare_bootp
(
&
addr
,
buf
,
++
bootp_retry
);
...
...
lib/ipv4.h
View file @
8c92a503
...
...
@@ -78,4 +78,6 @@ int snmp_poll(void);
int
net_bh_poll
(
void
);
int
snmp_respond
(
uint8_t
*
buf
);
#endif
lib/snmp.c
View file @
8c92a503
...
...
@@ -1482,7 +1482,7 @@ static uint8_t snmp_prepare_error(uint8_t *buf, uint8_t error)
}
/* And, now, work out your generic frame responder... */
static
int
snmp_respond
(
uint8_t
*
buf
)
int
snmp_respond
(
uint8_t
*
buf
)
{
struct
snmp_oid_limb
*
oid_limb
=
NULL
;
uint8_t
*
newbuf
=
NULL
;
...
...
@@ -1659,6 +1659,7 @@ int snmp_poll(void)
if
(
len
<=
UDP_END
+
sizeof
(
match_array
))
return
0
;
/* Check the destination IP of SNMP packets. IP version, protocol and
* port are checked in the function update_rx_queues, so no need to
* check it again */
...
...
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