diff options
author | Roland McGrath <roland@gnu.org> | 2000-02-05 12:13:22 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2000-02-05 12:13:22 +0000 |
commit | 1a7ccb577c414677f9e763036d6ccce3a298f16d (patch) | |
tree | 10f45d0745e0f65108ecbda92ed6f7214dc703ff /pfinet/linux-src/include/net/ip.h | |
parent | add1cad493c256d0a7c939070f9ee067c2718daf (diff) | |
parent | b39cd08347c72483a4521a55301a0fa147a2a2b1 (diff) | |
download | hurd-1a7ccb577c414677f9e763036d6ccce3a298f16d.tar.gz hurd-1a7ccb577c414677f9e763036d6ccce3a298f16d.tar.bz2 hurd-1a7ccb577c414677f9e763036d6ccce3a298f16d.zip |
Merge from vendor branch Linux:
Import of Linux 2.2.13 subset (ipv4 stack and related)
Diffstat (limited to 'pfinet/linux-src/include/net/ip.h')
-rw-r--r-- | pfinet/linux-src/include/net/ip.h | 16 |
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); |