mirror of
				https://git.proxmox.com/git/mirror_frr
				synced 2025-10-31 04:57:38 +00:00 
			
		
		
		
	eigrpd: Convert eigrp_hello.c to not use VRF_DEFAULT
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
		
							parent
							
								
									2ea6b572b5
								
							
						
					
					
						commit
						2d4592e4c3
					
				| @ -485,21 +485,15 @@ static uint16_t eigrp_tidlist_encode(struct stream *s) | ||||
|  * Part of conditional receive process | ||||
|  * | ||||
|  */ | ||||
| static uint16_t eigrp_sequence_encode(struct stream *s) | ||||
| static uint16_t eigrp_sequence_encode(struct eigrp *eigrp, struct stream *s) | ||||
| { | ||||
| 	uint16_t length = EIGRP_TLV_SEQ_BASE_LEN; | ||||
| 	struct eigrp *eigrp; | ||||
| 	struct eigrp_interface *ei; | ||||
| 	struct listnode *node, *node2, *nnode2; | ||||
| 	struct eigrp_neighbor *nbr; | ||||
| 	size_t backup_end, size_end; | ||||
| 	int found; | ||||
| 
 | ||||
| 	eigrp = eigrp_lookup(VRF_DEFAULT); | ||||
| 	if (eigrp == NULL) { | ||||
| 		return 0; | ||||
| 	} | ||||
| 
 | ||||
| 	// add in the parameters TLV
 | ||||
| 	backup_end = stream_get_endp(s); | ||||
| 	stream_putw(s, EIGRP_TLV_SEQ); | ||||
| @ -542,15 +536,10 @@ static uint16_t eigrp_sequence_encode(struct stream *s) | ||||
|  * Part of conditional receive process | ||||
|  * | ||||
|  */ | ||||
| static uint16_t eigrp_next_sequence_encode(struct stream *s) | ||||
| static uint16_t eigrp_next_sequence_encode(struct eigrp *eigrp, | ||||
| 					   struct stream *s) | ||||
| { | ||||
| 	uint16_t length = EIGRP_NEXT_SEQUENCE_TLV_SIZE; | ||||
| 	struct eigrp *eigrp; | ||||
| 
 | ||||
| 	eigrp = eigrp_lookup(VRF_DEFAULT); | ||||
| 	if (eigrp == NULL) { | ||||
| 		return 0; | ||||
| 	} | ||||
| 
 | ||||
| 	// add in the parameters TLV
 | ||||
| 	stream_putw(s, EIGRP_TLV_NEXT_MCAST_SEQ); | ||||
| @ -660,8 +649,8 @@ static struct eigrp_packet *eigrp_hello_encode(struct eigrp_interface *ei, | ||||
| 		length += eigrp_sw_version_encode(ep->s); | ||||
| 
 | ||||
| 		if (flags & EIGRP_HELLO_ADD_SEQUENCE) { | ||||
| 			length += eigrp_sequence_encode(ep->s); | ||||
| 			length += eigrp_next_sequence_encode(ep->s); | ||||
| 			length += eigrp_sequence_encode(ei->eigrp, ep->s); | ||||
| 			length += eigrp_next_sequence_encode(ei->eigrp, ep->s); | ||||
| 		} | ||||
| 
 | ||||
| 		// add in the TID list if doing multi-topology
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Donald Sharp
						Donald Sharp