summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>1999-04-12 16:57:46 +0200
committerMartin Mares <mj@ucw.cz>1999-04-12 16:57:46 +0200
commit5a99ade413b97a780758f5c8f927604ad6c8e57b (patch)
tree55c85d0b8a24755fd3409ba610b77871a88fd2a4 /lib
parentbad631e04806287e99e2464c0fdc884f9efa1e71 (diff)
downloadbird-5a99ade413b97a780758f5c8f927604ad6c8e57b.tar
bird-5a99ade413b97a780758f5c8f927604ad6c8e57b.zip
Fixed a couple of bugs in handling of multicast sockets.
See comments in lib/socket.h for a detailed guide on how to use them.
Diffstat (limited to 'lib')
-rw-r--r--lib/socket.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/lib/socket.h b/lib/socket.h
index 2c5ab4f..bb9c1c3 100644
--- a/lib/socket.h
+++ b/lib/socket.h
@@ -55,8 +55,16 @@ void sk_dump_all(void);
#define SK_TCP 2
#define SK_UDP 3 /* ? ? - - - ? ? */
#define SK_UDP_MC 4 /* ? ? * * * * - */
-#define SK_IP 5 /* ? ? - * - ? ? */
-#define SK_IP_MC 6 /* ? ? * * * * - */
+#define SK_IP 5 /* ? - - * - ? ? */
+#define SK_IP_MC 6 /* ? - * * * * - */
#define SK_MAGIC 7 /* Internal use by sysdep code */
+/*
+ * Multicast sockets are slightly different from the other ones:
+ * If you want to send packets only, just set the destination
+ * address to the corresponding multicast group and iface to
+ * the interface to be used. If you also want receiving, set
+ * source address to the same multicast group as well.
+ */
+
#endif