mld6_var.h (120941) | mld6_var.h (121807) |
---|---|
1/* $FreeBSD: head/sys/netinet6/mld6_var.h 120941 2003-10-09 16:13:47Z ume $ */ | 1/* $FreeBSD: head/sys/netinet6/mld6_var.h 121807 2003-10-31 16:06:05Z ume $ */ |
2/* $KAME: mld6_var.h,v 1.4 2000/03/25 07:23:54 sumikawa Exp $ */ 3 4/* 5 * Copyright (C) 1998 WIDE Project. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without 9 * modification, are permitted provided that the following conditions --- 20 unchanged lines hidden (view full) --- 30 * SUCH DAMAGE. 31 */ 32 33#ifndef _NETINET6_MLD6_VAR_H_ 34#define _NETINET6_MLD6_VAR_H_ 35 36#ifdef _KERNEL 37 | 2/* $KAME: mld6_var.h,v 1.4 2000/03/25 07:23:54 sumikawa Exp $ */ 3 4/* 5 * Copyright (C) 1998 WIDE Project. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without 9 * modification, are permitted provided that the following conditions --- 20 unchanged lines hidden (view full) --- 30 * SUCH DAMAGE. 31 */ 32 33#ifndef _NETINET6_MLD6_VAR_H_ 34#define _NETINET6_MLD6_VAR_H_ 35 36#ifdef _KERNEL 37 |
38#define MLD6_RANDOM_DELAY(X) (random() % (X) + 1) | 38#define MLD6_RANDOM_DELAY(X) (arc4random() % (X) + 1) |
39 40/* 41 * States for MLD stop-listening processing 42 */ 43#define MLD6_OTHERLISTENER 0 44#define MLD6_IREPORTEDLAST 1 45 46void mld6_init(void); 47void mld6_input(struct mbuf *, int); 48void mld6_start_listening(struct in6_multi *); 49void mld6_stop_listening(struct in6_multi *); 50void mld6_fasttimeo(void); 51#endif /* _KERNEL */ 52 53#endif /* _NETINET6_MLD6_VAR_H_ */ | 39 40/* 41 * States for MLD stop-listening processing 42 */ 43#define MLD6_OTHERLISTENER 0 44#define MLD6_IREPORTEDLAST 1 45 46void mld6_init(void); 47void mld6_input(struct mbuf *, int); 48void mld6_start_listening(struct in6_multi *); 49void mld6_stop_listening(struct in6_multi *); 50void mld6_fasttimeo(void); 51#endif /* _KERNEL */ 52 53#endif /* _NETINET6_MLD6_VAR_H_ */ |