Skip to content

Commit

Permalink
net: ipv6: Make NA sending function public
Browse files Browse the repository at this point in the history
This is needed so that we can call it from module test
application.

Change-Id: I1e92d1a62af1db823e4f89f30783c94fd7edf324
Signed-off-by: Jukka Rissanen <[email protected]>
  • Loading branch information
jukkar committed Dec 2, 2016
1 parent 76623a5 commit 4aefda3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 3 additions & 5 deletions net/yaip/ipv6.c
Original file line number Diff line number Diff line change
Expand Up @@ -775,11 +775,9 @@ static inline void handle_ns_neighbor(struct net_buf *buf,
#define dbg_addr_sent_tgt(...)
#endif

static int net_ipv6_send_na(struct net_if *iface,
struct in6_addr *src,
struct in6_addr *dst,
struct in6_addr *tgt,
uint8_t flags)
int net_ipv6_send_na(struct net_if *iface, struct in6_addr *src,
struct in6_addr *dst, struct in6_addr *tgt,
uint8_t flags)
{
struct net_buf *buf, *frag;
uint8_t llao_len;
Expand Down
4 changes: 4 additions & 0 deletions net/yaip/ipv6.h
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,10 @@ int net_ipv6_send_ns(struct net_if *iface, struct net_buf *pending,
int net_ipv6_send_rs(struct net_if *iface);
int net_ipv6_start_rs(struct net_if *iface);

int net_ipv6_send_na(struct net_if *iface, struct in6_addr *src,
struct in6_addr *dst, struct in6_addr *tgt,
uint8_t flags);

/**
* @brief Create IPv6 packet in provided net_buf.
*
Expand Down

0 comments on commit 4aefda3

Please sign in to comment.