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
30
Issues
30
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
49ea6c0f
Commit
49ea6c0f
authored
Jul 04, 2017
by
Adam Wujek
💬
Committed by
Grzegorz Daniluk
Jul 06, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lib/lldp: fix return value of lldp_poll
Signed-off-by:
Adam Wujek
<
adam.wujek@cern.ch
>
parent
5884ef61
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
lldp.c
lib/lldp.c
+3
-1
No files found.
lib/lldp.c
View file @
49ea6c0f
...
...
@@ -159,7 +159,7 @@ static void lldp_init(void)
lldp_add_tlv
(
END_LLDP
);
}
static
void
lldp_poll
(
void
)
static
int
lldp_poll
(
void
)
{
static
int
ticks
;
...
...
@@ -174,8 +174,10 @@ static void lldp_poll(void)
ptpd_netif_sendto
(
lldp_socket
,
&
addr
,
lldpdu
,
LLDP_PKT_LEN
,
0
);
ticks
=
0
;
return
1
;
}
else
{
ticks
+=
1
;
return
0
;
}
}
...
...
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