patch-2.3.29 linux/include/net/ip.h

Next file: linux/include/net/irda/irda_device.h
Previous file: linux/include/net/br.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.28/linux/include/net/ip.h linux/include/net/ip.h
@@ -78,7 +78,7 @@
 
 extern void		ip_mc_dropsocket(struct sock *);
 extern void		ip_mc_dropdevice(struct net_device *dev);
-extern int		ip_mc_procinfo(char *, char **, off_t, int, int);
+extern int		ip_mc_procinfo(char *, char **, off_t, int);
 
 /*
  *	Functions provided by ip.c
@@ -110,6 +110,22 @@
 				      struct rtable *rt,
 				      int flags);
 
+/*
+ *	Map a multicast IP onto multicast MAC for type Token Ring.
+ *      This conforms to RFC1469 Option 2 Multicasting i.e.
+ *      using a functional address to transmit / receive 
+ *      multicast packets.
+ */
+
+extern __inline__ void ip_tr_mc_map(u32 addr, char *buf)
+{
+	buf[0]=0xC0;
+	buf[1]=0x00;
+	buf[2]=0x00;
+	buf[3]=0x04;
+	buf[4]=0x00;
+	buf[5]=0x00;
+}
 
 struct ip_reply_arg {
 	struct iovec iov[2];   

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)