/*
- * $Id: multicast.c,v 1.10 2002-09-29 23:24:47 sibaz Exp $
+ * $Id: multicast.c,v 1.13 2009-10-14 01:38:28 didg Exp $
*
* Copyright (c) 1990,1993 Regents of The University of Michigan.
* All Rights Reserved. See COPYRIGHT.
#include "rtmp.h"
#include "zip.h"
#include "main.h"
+#include "multicast.h"
static const unsigned char ethermulti[ 6 ] = {
{ 0x09, 0x00, 0x07, 0x00, 0x00, 0xfc, },
};
-static const unsigned char tokenmulti[ 6 ] = {
- 0xc0, 0x00, 0x40, 0x00, 0x00, 0x00,
-};
-
-static const unsigned char tokenmultitab[ 19 ][ 6 ] = {
- { 0xc0, 0x00, 0x00, 0x00, 0x08, 0x00, },
- { 0xc0, 0x00, 0x00, 0x00, 0x10, 0x00, },
- { 0xc0, 0x00, 0x00, 0x00, 0x20, 0x00, },
- { 0xc0, 0x00, 0x00, 0x00, 0x40, 0x00, },
- { 0xc0, 0x00, 0x00, 0x00, 0x80, 0x00, },
- { 0xc0, 0x00, 0x00, 0x01, 0x00, 0x00, },
- { 0xc0, 0x00, 0x00, 0x02, 0x00, 0x00, },
- { 0xc0, 0x00, 0x00, 0x04, 0x00, 0x00, },
- { 0xc0, 0x00, 0x00, 0x08, 0x00, 0x00, },
- { 0xc0, 0x00, 0x00, 0x10, 0x00, 0x00, },
- { 0xc0, 0x00, 0x00, 0x20, 0x00, 0x00, },
- { 0xc0, 0x00, 0x00, 0x40, 0x00, 0x00, },
- { 0xc0, 0x00, 0x00, 0x80, 0x00, 0x00, },
- { 0xc0, 0x00, 0x01, 0x00, 0x00, 0x00, },
- { 0xc0, 0x00, 0x02, 0x00, 0x00, 0x00, },
- { 0xc0, 0x00, 0x04, 0x00, 0x00, 0x00, },
- { 0xc0, 0x00, 0x08, 0x00, 0x00, 0x00, },
- { 0xc0, 0x00, 0x10, 0x00, 0x00, 0x00, },
- { 0xc0, 0x00, 0x20, 0x00, 0x00, 0x00, },
-};
-
/* configure multicast for a given named interface */
}
static u_int16_t
-atalk_cksum( data, len )
- u_char *data;
- int len;
+atalk_cksum( u_char *data, int len)
{
u_char *end;
u_int32_t cksum = 0;
* alike.)
*/
int
-zone_bcast( zt )
- struct ziptab *zt;
+zone_bcast( struct ziptab *zt)
{
u_char uname[ 32 ];
u_int16_t cksum;