net: Refactor code to use new generic net_buf API
Change-Id: Id008bbf43062ca0641a76edaabef47c650287444 Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
This commit is contained in:
parent
5fc0533414
commit
2272312b8d
121 changed files with 1716 additions and 1537 deletions
|
@ -42,7 +42,7 @@
|
|||
* \author Mathilde Durvy <mdurvy@cisco.com>
|
||||
*/
|
||||
|
||||
#include <net/net_buf.h>
|
||||
#include <net/ip_buf.h>
|
||||
|
||||
#include <string.h>
|
||||
#include "net/ipv6/uip-ds6.h"
|
||||
|
@ -322,6 +322,8 @@ uip_icmp6_send(struct net_buf *buf, const uip_ipaddr_t *dest, int type, int code
|
|||
UIP_ICMP_BUF(buf)->icmpchksum = ~uip_icmp6chksum(buf);
|
||||
|
||||
uip_len(buf) = UIP_IPH_LEN + UIP_ICMPH_LEN + payload_len;
|
||||
net_buf_add(buf, uip_len(buf));
|
||||
|
||||
tcpip_ipv6_output(buf);
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue