mirror of
				https://git.proxmox.com/git/mirror_frr
				synced 2025-10-31 09:04:27 +00:00 
			
		
		
		
	bgpd: use mac2str() function utility to display mac address
VNC uses the prefix API to handle mac string. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
This commit is contained in:
		
							parent
							
								
									0362b0a7ec
								
							
						
					
					
						commit
						b2bc8e2331
					
				| @ -314,19 +314,7 @@ rfapiL2o2Qprefix (struct rfapi_l2address_option *l2o, struct prefix *pfx) | ||||
| char * | ||||
| rfapiEthAddr2Str (const struct ethaddr *ea, char *buf, int bufsize) | ||||
| { | ||||
|   int i; | ||||
|   char *p = buf; | ||||
| 
 | ||||
|   assert (bufsize > (3 * ETHER_ADDR_LEN)); | ||||
| 
 | ||||
|   for (i = 0; i <= ETHER_ADDR_LEN; ++i) | ||||
|     { | ||||
|       sprintf (p, "%02x", ea->octet[i]); | ||||
|       if (i < (ETHER_ADDR_LEN - 1)) | ||||
|         *(p + 2) = ':'; | ||||
|       p += 3; | ||||
|     } | ||||
|   return buf; | ||||
|   return mac2str (ea->octet, buf, bufsize); | ||||
| } | ||||
| 
 | ||||
| int | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Philippe Guibert
						Philippe Guibert