/*
- * $Id: multicast.c,v 1.8 2001-12-10 20:16:55 srittau 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 <net/route.h>
#endif /* TRU64 */
#include <net/if.h>
-#include <syslog.h>
+#include <atalk/logger.h>
/* work around for FreeBSD */
#if defined(__FreeBSD__) && (__FreeBSD__ >= 2)
#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;
if (!zt->zt_bcast &&
(zt->zt_bcast = (u_char *) malloc(sizeof( ethermulti ))) == NULL) {
- syslog( LOG_ERR, "zone_bcast malloc: %s", strerror(errno) );
+ LOG(log_error, logtype_atalkd, "zone_bcast malloc: %s", strerror(errno) );
return -1;
}