summaryrefslogtreecommitdiff
path: root/cesar/cp/mme.h
diff options
context:
space:
mode:
authorschodet2008-12-09 15:23:53 +0000
committerschodet2008-12-09 15:23:53 +0000
commitaec3578384f10f3c5dec7351ff848ec563e750ee (patch)
tree7419f0488350f1a6b2aa80c522c630102334f04e /cesar/cp/mme.h
parent8cb2e5177a17f7df01ef4c24fb7e00bbf8e965cb (diff)
* cp:
- cleaned-up CP_MME_PEER usage. - removed one argument form of CP_MME_PEER, closes #198. git-svn-id: svn+ssh://pessac/svn/cesar/trunk@3604 017c9cb6-072f-447c-8318-d5b54f68fe89
Diffstat (limited to 'cesar/cp/mme.h')
-rw-r--r--cesar/cp/mme.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/cesar/cp/mme.h b/cesar/cp/mme.h
index 35889dc543..c4fa686fef 100644
--- a/cesar/cp/mme.h
+++ b/cesar/cp/mme.h
@@ -309,15 +309,10 @@ 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) { .mac = MAC_BROADCAST, .tei = MAC_TEI_BCAST })
+ ((cp_mme_peer_t) { .mac = MAC_BROADCAST, .tei = MAC_TEI_MULTI_UNICAST })
-/** 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)
-
-#define CP_MME_PEER_1(mac_) \
- CP_MME_PEER_2 (mac_, 0xff)
-#define CP_MME_PEER_2(mac_, tei_) \
+/** Construct a cp_mme_peer_t from a MAC address and a TEI. */
+#define CP_MME_PEER(mac_, tei_) \
((cp_mme_peer_t) { .mac = mac_, .vlan_tag = 0, .tei = tei_ })
/**