[PATCH 08/17] net: ipv6: Add implementation of main IPv6 functions
Simon Glass
sjg at chromium.org
Fri Sep 9 16:44:48 CEST 2022
oOn Thu, 8 Sept 2022 at 05:59, Viacheslav Mitrofanov
<v.v.mitrofanov at yadro.com> wrote:
>
> Functions that were exposed in "net: ipv6: Add IPv6 basic primitives"
> had only empty implementations and were exposed as API for futher
> patches. This patch add implementation of these functions. Main
> functions are: net_ip6_handler() - IPv6 packet handler for incoming
> packets; net_send_udp_packet6() - make up and send an UDP packet;
> csum_ipv6_magic() - compute checksum of IPv6 "psuedo-header" per RFC2460
> section 8.1; ip6_addr_in_subnet() - check if an address is in our
> subnet. Other functions are auxiliary.
>
> Series-changes: 3
> - Added comments
> - Fixed style problems
> - Fixed return codes instead of -1
>
> Signed-off-by: Viacheslav Mitrofanov <v.v.mitrofanov at yadro.com>
> ---
> include/net6.h | 161 +++++++++++++---------
> net/net6.c | 362 +++++++++++++++++++++++++++++++++++++++++++++++++
> 2 files changed, 459 insertions(+), 64 deletions(-)
Reviewed-by: Simon Glass <sjg at chromium.org>
I hope the magic function can be cut back, perhaps with a for loop,
perhaps a later enhancement.
More information about the U-Boot
mailing list