Browse Source

gnrc ipv6: make address parameters const

pr/gpio
Oleg Hahm 7 years ago
parent
commit
32af3f962e
  1. 4
      sys/include/net/gnrc/ipv6/hdr.h
  2. 4
      sys/net/gnrc/network_layer/ipv6/hdr/gnrc_ipv6_hdr.c

4
sys/include/net/gnrc/ipv6/hdr.h

@ -43,8 +43,8 @@ extern "C" {
* @return The an IPv6 header in packet buffer on success.
* @return NULL on error.
*/
gnrc_pktsnip_t *gnrc_ipv6_hdr_build(gnrc_pktsnip_t *payload, ipv6_addr_t *src,
ipv6_addr_t *dst);
gnrc_pktsnip_t *gnrc_ipv6_hdr_build(gnrc_pktsnip_t *payload, const ipv6_addr_t *src,
const ipv6_addr_t *dst);
#ifdef __cplusplus
}

4
sys/net/gnrc/network_layer/ipv6/hdr/gnrc_ipv6_hdr.c

@ -32,8 +32,8 @@ static char addr_str[IPV6_ADDR_MAX_STR_LEN];
#define HDR_NETTYPE (GNRC_NETTYPE_UNDEF)
#endif
gnrc_pktsnip_t *gnrc_ipv6_hdr_build(gnrc_pktsnip_t *payload, ipv6_addr_t *src,
ipv6_addr_t *dst)
gnrc_pktsnip_t *gnrc_ipv6_hdr_build(gnrc_pktsnip_t *payload, const ipv6_addr_t *src,
const ipv6_addr_t *dst)
{
gnrc_pktsnip_t *ipv6;
ipv6_hdr_t *hdr;

Loading…
Cancel
Save