* [PATCH 01/13] o11s: (rtnetlink) add commands for mesh tables manipulation
@ 2008-02-04 18:48 Luis Carlos Cobo
2008-02-06 23:56 ` Johannes Berg
0 siblings, 1 reply; 4+ messages in thread
From: Luis Carlos Cobo @ 2008-02-04 18:48 UTC (permalink / raw)
To: linux-wireless
This patch adds the necessary commands for mesh peer link table and mesh path
table manipulation.
Signed-off-by: Luis Carlos Cobo <luisca@cozybit.com>
---
include/linux/rtnetlink.h | 66 +++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 66 insertions(+), 0 deletions(-)
diff --git a/include/linux/rtnetlink.h b/include/linux/rtnetlink.h
index 4e81836..345a27b 100644
--- a/include/linux/rtnetlink.h
+++ b/include/linux/rtnetlink.h
@@ -100,6 +100,20 @@ enum {
RTM_NEWNDUSEROPT = 68,
#define RTM_NEWNDUSEROPT RTM_NEWNDUSEROPT
+ RTM_NEWMESHPATH = 76,
+#define RTM_NEWMESHPATH RTM_NEWMESHPATH
+ RTM_DELMESHPATH,
+#define RTM_DELMESHPATH RTM_DELMESHPATH
+ RTM_GETMESHPATH,
+#define RTM_GETMESHPATH RTM_GETMESHPATH
+
+ RTM_NEWMESHPEERLINK = 80,
+#define RTM_NEWMESHPEERLINK RTM_NEWMESHPEERLINK
+ RTM_DELMESHPEERLINK,
+#define RTM_DELMESHPEERLINK RTM_DELMESHPEERLINK
+ RTM_GETMESHPEERLINK,
+#define RTM_GETMESHPEERLINK RTM_GETMESHPEERLINK
+
__RTM_MAX,
#define RTM_MAX (((__RTM_MAX + 3) & ~3) - 1)
};
@@ -135,7 +149,59 @@ struct rtattr
#define RTA_PAYLOAD(rta) ((int)((rta)->rta_len) - RTA_LENGTH(0))
+/******************************************************************************
+ * Definitions used for mesh path table administration.
+ ****/
+
+struct mpmsg
+{
+ unsigned int mpm_flags;
+ int ifa_index;
+};
+
+enum mpattr_type_t
+{
+ MPA_UNSPEC,
+ MPA_DST,
+ MPA_NEXT_HOP,
+ MPA_FRAME_QLEN,
+ MPA_DSN,
+ MPA_METRIC,
+ MPA_LIFETIME,
+ MPA_FLAGS,
+ MPA_DISCOVERY_TIMEOUT,
+ MPA_DISCOVERY_RETRIES,
+ __MPA_MAX,
+};
+
+#define MPA_MAX (__MPA_MAX - 1)
+
+/******************************************************************************
+ * Definitions used for mesh peer link table administration.
+ ****/
+
+/* mpl_flags */
+#define MPL_F_CREATE 0x100
+#define MPL_F_OPEN 0x200 /* Start the mesh peer link establishment */
+#define MPL_F_BLOCK 0x400 /* Block all traffic from this peer */
+
+struct mplmsg
+{
+ unsigned int mplm_flags;
+ int ifa_index;
+};
+
+enum mplattr_type_t
+{
+ MPLA_UNSPEC,
+ MPLA_PEER_ADDR,
+ MPLA_STATE,
+ MPLA_LLID,
+ MPLA_PLID,
+ __MPLA_MAX,
+};
+#define MPLA_MAX (__MPLA_MAX - 1)
/******************************************************************************
* Definitions used in routing table administration.
--
1.5.2.5
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH 01/13] o11s: (rtnetlink) add commands for mesh tables manipulation
2008-02-04 18:48 [PATCH 01/13] o11s: (rtnetlink) add commands for mesh tables manipulation Luis Carlos Cobo
@ 2008-02-06 23:56 ` Johannes Berg
2008-02-09 0:13 ` Luis Carlos Cobo
0 siblings, 1 reply; 4+ messages in thread
From: Johannes Berg @ 2008-02-06 23:56 UTC (permalink / raw)
To: Luis Carlos Cobo; +Cc: linux-wireless
[-- Attachment #1: Type: text/plain, Size: 321 bytes --]
On Mon, 2008-02-04 at 10:48 -0800, Luis Carlos Cobo wrote:
> This patch adds the necessary commands for mesh peer link table and mesh path
> table manipulation.
This needs to go via netdev too. Also, why should it be defined as
"real" netlink rather than within nl80211? It is wireless specific, no?
johannes
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 828 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 01/13] o11s: (rtnetlink) add commands for mesh tables manipulation
2008-02-06 23:56 ` Johannes Berg
@ 2008-02-09 0:13 ` Luis Carlos Cobo
2008-02-09 0:26 ` Luis Carlos Cobo
0 siblings, 1 reply; 4+ messages in thread
From: Luis Carlos Cobo @ 2008-02-09 0:13 UTC (permalink / raw)
To: Johannes Berg; +Cc: linux-wireless
On Thu, 2008-02-07 at 00:56 +0100, Johannes Berg wrote:
> On Mon, 2008-02-04 at 10:48 -0800, Luis Carlos Cobo wrote:
> > This patch adds the necessary commands for mesh peer link table and mesh path
> > table manipulation.
>
> This needs to go via netdev too. Also, why should it be defined as
> "real" netlink rather than within nl80211? It is wireless specific, no?
I'm not sure understand what you mean with "via netdev". About
implementing it nl80211, sounds good, I will think about it and propose
an interface (trying to follow the add/del/get/set).
--
Luis Carlos Cobo Rus GnuPG ID: 44019B60
cozybit Inc.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-02-09 0:25 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-04 18:48 [PATCH 01/13] o11s: (rtnetlink) add commands for mesh tables manipulation Luis Carlos Cobo
2008-02-06 23:56 ` Johannes Berg
2008-02-09 0:13 ` Luis Carlos Cobo
2008-02-09 0:26 ` Luis Carlos Cobo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).