summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschodet2008-06-10 08:32:37 +0000
committerschodet2008-06-10 08:32:37 +0000
commitaabea906c57fdb561c1c4e1bbfc98eb1d5d2c097 (patch)
tree5d3327bbb1a50784faa2a0fdd90cae230439df08
parent5423d469a9eeefc7519bee8732aa481bd0fc27ad (diff)
* cp2:
- added CP_MME_PEER_ALL_STA. git-svn-id: svn+ssh://pessac/svn/cesar/trunk@2263 017c9cb6-072f-447c-8318-d5b54f68fe89
-rw-r--r--cesar/cp2/mme.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/cesar/cp2/mme.h b/cesar/cp2/mme.h
index d9df63efa1..8df5968831 100644
--- a/cesar/cp2/mme.h
+++ b/cesar/cp2/mme.h
@@ -215,6 +215,8 @@ struct cp_mme_peer_t
u32 vlan_tag;
/** Peer TEI, or 0xff if not TEI based. */
cp_tei_t tei;
+ /** Send to every stations of our AVLN. */
+ bool all_sta;
};
typedef struct cp_mme_peer_t cp_mme_peer_t;
@@ -258,6 +260,10 @@ struct cp_mme_tx_t
};
typedef struct cp_mme_tx_t cp_mme_tx_t;
+/** Construct a cp_mme_peer_t for unicast to all STA. */
+#define CP_MME_PEER_ALL_STA \
+ ((cp_mme_peer_t) { .all_sta = true })
+
/** Construct a cp_mme_peer_t from a MAC address and an optional TEI. */
#define CP_MME_PEER(mac, tei...) \
PASTE_EXPAND (CP_MME_PEER_, PREPROC_NARG (mac, ## tei)) (mac, ## tei)
@@ -265,6 +271,7 @@ typedef struct cp_mme_tx_t cp_mme_tx_t;
#define CP_MME_PEER_1(mac_) \
CP_MME_PEER_2 (mac_, 0xff)
#define CP_MME_PEER_2(mac_, tei_) \
- ((cp_mme_peer_t) { .mac = mac_, .vlan_tag = 0, .tei = tei_ })
+ ((cp_mme_peer_t) { .mac = mac_, .vlan_tag = 0, .tei = tei_, \
+ .all_sta = false })
#endif /* cp2_mme_h */