Subject: [pim] I'm not understand the pim how to determine to send a RegisterStop message

From: "张文超" <[email-masked]>
Date: Tue, 8 Mar 2005 11:53:20 +0800

pimhello

I'm not understand   the pim  how to  determine to send a   RegisterStop message

4.4.2.  Receiving Register Messages at the RP
packet_arrives_on_rp_tunnel( pkt ) {
    if( outer.dst is not one of my addresses ) {
        drop the packet silently.
        # Note: this may be a spoofing attempt
    }
    if( I_am_RP(G) AND outer.dst == RP(G) ) {        
          sentRegisterStop = FALSE;                     ??????????????why
          if ( register.borderbit == TRUE ) {
               if ( PMBR(S,G) == unknown ) {
                    PMBR(S,G) = outer.src
               } else if ( outer.src != PMBR(S,G) ) {
                    send Register-Stop(S,G) to outer.src
                    drop the packet silently.
               }
          }
          if ( SPTbit(S,G) OR
           ( SwitchToSptDesired(S,G) AND ( inherited_olist(S,G) == NULL ))) {
            send Register-Stop(S,G) to outer.src
            sentRegisterStop = TRUE;
          }
          if ( SPTbit(S,G) OR SwitchToSptDesired(S,G) ) {
               if ( sentRegisterStop == TRUE ) {
                    restart KeepaliveTimer(S,G) to RP_Keepalive_Period;
               } else {
                    restart KeepaliveTimer(S,G) to Keepalive_Period;
               }
          }
          if( !SPTbit(S,G) AND ! pkt.NullRegisterBit ) {
               decapsulate and forward the inner packet to
               inherited_olist(S,G,rpt) # Note (+)
          }
    } else {
        send Register-Stop(S,G) to outer.src
        # Note (*)
    }
}

　　　　　　　　[email-masked]
　　　　　　　　　　2005-03-08

_______________________________________________
pim mailing list
[email-masked]
https://www1.ietf.org/mailman/listinfo/pim