diff options
Diffstat (limited to 'zebra/rtadv.c')
| -rw-r--r-- | zebra/rtadv.c | 16 | 
1 files changed, 8 insertions, 8 deletions
diff --git a/zebra/rtadv.c b/zebra/rtadv.c index d0b821bfd2..c695b65660 100644 --- a/zebra/rtadv.c +++ b/zebra/rtadv.c @@ -95,7 +95,7 @@ static int rtadv_increment_received(struct zebra_ns *zns, ifindex_t *ifindex)  	return ret;  } -static int rtadv_recv_packet(struct zebra_ns *zns, int sock, u_char *buf, +static int rtadv_recv_packet(struct zebra_ns *zns, int sock, uint8_t *buf,  			     int buflen, struct sockaddr_in6 *from,  			     ifindex_t *ifindex, int *hoplimit)  { @@ -164,10 +164,10 @@ static void rtadv_send_packet(int sock, struct interface *ifp)  	int len = 0;  	struct zebra_if *zif;  	struct rtadv_prefix *rprefix; -	u_char all_nodes_addr[] = {0xff, 0x02, 0, 0, 0, 0, 0, 0, -				   0,    0,    0, 0, 0, 0, 0, 1}; +	uint8_t all_nodes_addr[] = {0xff, 0x02, 0, 0, 0, 0, 0, 0, +				    0,    0,    0, 0, 0, 0, 0, 1};  	struct listnode *node; -	u_int16_t pkt_RouterLifetime; +	uint16_t pkt_RouterLifetime;  	/*  	 * Allocate control message bufffer.  This is dynamic because @@ -315,7 +315,7 @@ static void rtadv_send_packet(int sock, struct interface *ifp)  #ifdef DEBUG  		{ -			u_char buf[INET6_ADDRSTRLEN]; +			uint8_t buf[INET6_ADDRSTRLEN];  			zlog_debug("DEBUG %s",  				   inet_ntop(AF_INET6, &pinfo->nd_opt_pi_prefix, @@ -452,7 +452,7 @@ static void rtadv_process_solicit(struct interface *ifp)  	rtadv_send_packet(zns->rtadv.sock, ifp);  } -static void rtadv_process_advert(u_char *msg, unsigned int len, +static void rtadv_process_advert(uint8_t *msg, unsigned int len,  				 struct interface *ifp,  				 struct sockaddr_in6 *addr)  { @@ -526,7 +526,7 @@ static void rtadv_process_advert(u_char *msg, unsigned int len,  } -static void rtadv_process_packet(u_char *buf, unsigned int len, +static void rtadv_process_packet(uint8_t *buf, unsigned int len,  				 ifindex_t ifindex, int hoplimit,  				 struct sockaddr_in6 *from,  				 struct zebra_ns *zns) @@ -596,7 +596,7 @@ static int rtadv_read(struct thread *thread)  {  	int sock;  	int len; -	u_char buf[RTADV_MSG_SIZE]; +	uint8_t buf[RTADV_MSG_SIZE];  	struct sockaddr_in6 from;  	ifindex_t ifindex = 0;  	int hoplimit = -1;  | 
