summaryrefslogtreecommitdiffstats
path: root/src/host
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2017-07-13 17:15:14 +0200
committerHarald Welte <laforge@gnumonks.org>2017-07-13 17:18:00 +0200
commit70dd7e5b75b1e7e008545a615d33d1134cf42339 (patch)
treee472f11e93e95f679045e6a36e372e438b260237 /src/host
parentc4324da7c6f684689b6c2343fc817f96c98419b8 (diff)
VIRT-PHY: Use IPv4 multicast groups for private / local scope
The addresses in the original code make little sense: * 224.0.0.1 is "All systems on this subnet" and not routed outside the local ethernet segment * 225.0.0.1 is in a RESERVED range that shouldn't be used Change-Id: I8e3acd745e65a6cfa70b681a440da6a59a1ed0b5
Diffstat (limited to 'src/host')
-rw-r--r--src/host/virt_phy/include/virtphy/virtual_um.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/host/virt_phy/include/virtphy/virtual_um.h b/src/host/virt_phy/include/virtphy/virtual_um.h
index 6e7c3841..ac098dd4 100644
--- a/src/host/virt_phy/include/virtphy/virtual_um.h
+++ b/src/host/virt_phy/include/virtphy/virtual_um.h
@@ -4,10 +4,15 @@
#include <osmocom/core/msgb.h>
#include "osmo_mcast_sock.h"
+/* We use multicast group addresses from the 239.192.0.0/14 rage, as
+ * those are designated by RFC2365 as "IPv4 Organization Local Scope,
+ * "... the space from which an organization should allocate sub-
+ * ranges when defining scopes for private use." */
+
#define VIRT_UM_MSGB_SIZE 256
-#define DEFAULT_MS_MCAST_GROUP "224.0.0.1"
+#define DEFAULT_MS_MCAST_GROUP "239.193.23.1"
#define DEFAULT_MS_MCAST_PORT 4729 /* IANA-registered port for GSMTAP */
-#define DEFAULT_BTS_MCAST_GROUP "225.0.0.1"
+#define DEFAULT_BTS_MCAST_GROUP "239.193.23.2"
#define DEFAULT_BTS_MCAST_PORT 4729 /* IANA-registered port for GSMTAP */
struct virt_um_inst {