Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
791c2a2d
Commit
791c2a2d
authored
Aug 17, 2013
by
Antonio Quartulli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
batman-adv: move enum definition at the top of the file
Signed-off-by:
Antonio Quartulli
<
ordex@autistici.org
>
parent
c54f38c9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
15 deletions
+16
-15
net/batman-adv/bat_iv_ogm.c
net/batman-adv/bat_iv_ogm.c
+16
-15
No files found.
net/batman-adv/bat_iv_ogm.c
View file @
791c2a2d
...
...
@@ -28,6 +28,22 @@
#include "bat_algo.h"
#include "network-coding.h"
/**
* batadv_dup_status - duplicate status
* @BATADV_NO_DUP: the packet is a duplicate
* @BATADV_ORIG_DUP: OGM is a duplicate in the originator (but not for the
* neighbor)
* @BATADV_NEIGH_DUP: OGM is a duplicate for the neighbor
* @BATADV_PROTECTED: originator is currently protected (after reboot)
*/
enum
batadv_dup_status
{
BATADV_NO_DUP
=
0
,
BATADV_ORIG_DUP
,
BATADV_NEIGH_DUP
,
BATADV_PROTECTED
,
};
/**
* batadv_ring_buffer_set - update the ring buffer with the given value
* @lq_recv: pointer to the ring buffer
...
...
@@ -71,21 +87,6 @@ static uint8_t batadv_ring_buffer_avg(const uint8_t lq_recv[])
return
(
uint8_t
)(
sum
/
count
);
}
/*
* batadv_dup_status - duplicate status
* @BATADV_NO_DUP: the packet is a duplicate
* @BATADV_ORIG_DUP: OGM is a duplicate in the originator (but not for the
* neighbor)
* @BATADV_NEIGH_DUP: OGM is a duplicate for the neighbor
* @BATADV_PROTECTED: originator is currently protected (after reboot)
*/
enum
batadv_dup_status
{
BATADV_NO_DUP
=
0
,
BATADV_ORIG_DUP
,
BATADV_NEIGH_DUP
,
BATADV_PROTECTED
,
};
static
struct
batadv_neigh_node
*
batadv_iv_ogm_neigh_new
(
struct
batadv_hard_iface
*
hard_iface
,
const
uint8_t
*
neigh_addr
,
...
...
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