summaryrefslogtreecommitdiff
path: root/pfinet/linux-src/include/net/ip.h
diff options
context:
space:
mode:
Diffstat (limited to 'pfinet/linux-src/include/net/ip.h')
-rw-r--r--pfinet/linux-src/include/net/ip.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/pfinet/linux-src/include/net/ip.h b/pfinet/linux-src/include/net/ip.h
index 5e80fb43..1a6cb610 100644
--- a/pfinet/linux-src/include/net/ip.h
+++ b/pfinet/linux-src/include/net/ip.h
@@ -203,6 +203,22 @@ extern __inline__ void ip_eth_mc_map(u32 addr, char *buf)
buf[3]=addr&0x7F;
}
+/*
+ * 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;
+}
extern int ip_call_ra_chain(struct sk_buff *skb);