<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">//
// $Copyright$
//
// Packet definition for DAD and Address Configuration Test
//
// $Id: DAD.def,v 1.1.1.1 2000/10/31 22:39:23 sekiya Exp $

#ifndef DADDEF
#define DADDEF

// FEM_ADDRCONF_dadns
//    for dadns_from_NUT,chkconf_dadns_to_NUT

#define FEM_ADDRCONF_dadns(_pNAME, _pETHER, _oHDR_IPV6, _oICMPV6_NS) \
FEM_icmp6_ns(  _pNAME, _pETHER, \
            {  _SRC(v6(_UNSPEC_ADDR)); \
	       HopLimit=255; \
               _oHDR_IPV6 \
            }, \
            { \
               _oICMPV6_NS \
            } \
)


// FEM_ADDRCONF_dadna
//    for chkconf_dadna_from_NUT

#define FEM_ADDRCONF_dadna(_pNAME, _pETHER, _oHDR_IPV6, _oICMPV6_NA) \
FEM_icmp6_na(  _pNAME, _pETHER, \
	    {  \
	       _DST(v6(_ALLNODES_MCAST_ADDR)); \
	       HopLimit=255; \
               _oHDR_IPV6 \
            }, \
            {  RFlag=0; \
	       SFlag=0; \
	       OFlag=1; \
               _oICMPV6_NA \
            } \
)


// FEM_ADDRCONF_ra
//    for usolra

#define FEM_ADDRCONF_ra(_pNAME, _pETHER, _oHDR_IPV6, _oICMPV6_RA) \
FEM_icmp6_ra(  _pNAME, _pETHER, \
            {  _SRC(v6src()); \
	       _DST(v6(_ALLNODES_MCAST_ADDR)); \
	       HopLimit=255; \
               _oHDR_IPV6 \
            }, \
            {  CurHopLimit=64; \
	       LifeTime=1805; \
	       ReachableTime=30005; \
	       RetransTimer=1005; \
               _oICMPV6_RA \
	   } \
)


// _PRFXOPT_define
//
#ifndef _PRFXOPT_define
#define _PRFXOPT_define(_pNAME, _pPRFX, _pPRFXLEN, _oOpt_ICMPv6_Prefix) \
Opt_ICMPv6_Prefix _pNAME { \
	PrefixLength=64; \
	LFlag=1; \
	AFlag=1; \
	ValidLifetime=10000; \
	PreferredLifetime=10000; \
	Prefix=_pPRFX; \
        _oOpt_ICMPv6_Prefix \
}
#endif


// common definition
#define LINK0STATIC_ROUTER_UCAST_ADDR v6merge(_GLOBAL0_UCAST_PRFX, _GLOBAL0_UCAST_PRFXLEN, nutv6())

#endif //DADDEF

//end

</pre></body></html>