-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[NEIGH]: Move netlink neighbour bits to linux/neighbour.h
Moves netlink neighbour bits to linux/neighbour.h. Also moves bits to be exported to userspace from net/neighbour.h to linux/neighbour.h and removes __KERNEL__ guards, userspace is not supposed to be using it. rtnetlink_rcv_msg() is not longer required to parse attributes for the neighbour layer, remove dependency on obsolete and buggy rta_buf. Signed-off-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
- Loading branch information
Thomas Graf
authored and
David S. Miller
committed
Sep 22, 2006
1 parent
8b8aec5
commit 9067c72
Showing
4 changed files
with
67 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
#ifndef __LINUX_NEIGHBOUR_H | ||
#define __LINUX_NEIGHBOUR_H | ||
|
||
#include <linux/netlink.h> | ||
|
||
struct ndmsg | ||
{ | ||
__u8 ndm_family; | ||
__u8 ndm_pad1; | ||
__u16 ndm_pad2; | ||
__s32 ndm_ifindex; | ||
__u16 ndm_state; | ||
__u8 ndm_flags; | ||
__u8 ndm_type; | ||
}; | ||
|
||
enum | ||
{ | ||
NDA_UNSPEC, | ||
NDA_DST, | ||
NDA_LLADDR, | ||
NDA_CACHEINFO, | ||
NDA_PROBES, | ||
__NDA_MAX | ||
}; | ||
|
||
#define NDA_MAX (__NDA_MAX - 1) | ||
|
||
/* | ||
* Neighbor Cache Entry Flags | ||
*/ | ||
|
||
#define NTF_PROXY 0x08 /* == ATF_PUBL */ | ||
#define NTF_ROUTER 0x80 | ||
|
||
/* | ||
* Neighbor Cache Entry States. | ||
*/ | ||
|
||
#define NUD_INCOMPLETE 0x01 | ||
#define NUD_REACHABLE 0x02 | ||
#define NUD_STALE 0x04 | ||
#define NUD_DELAY 0x08 | ||
#define NUD_PROBE 0x10 | ||
#define NUD_FAILED 0x20 | ||
|
||
/* Dummy states */ | ||
#define NUD_NOARP 0x40 | ||
#define NUD_PERMANENT 0x80 | ||
#define NUD_NONE 0x00 | ||
|
||
/* NUD_NOARP & NUD_PERMANENT are pseudostates, they never change | ||
and make no address resolution or NUD. | ||
NUD_PERMANENT is also cannot be deleted by garbage collectors. | ||
*/ | ||
|
||
struct nda_cacheinfo | ||
{ | ||
__u32 ndm_confirmed; | ||
__u32 ndm_used; | ||
__u32 ndm_updated; | ||
__u32 ndm_refcnt; | ||
}; | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters