oOn Thu, 8 Sept 2022 at 05:59, Viacheslav Mitrofanov <v.v.mitrofa...@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.mitrofa...@yadro.com> > --- > include/net6.h | 161 +++++++++++++--------- > net/net6.c | 362 +++++++++++++++++++++++++++++++++++++++++++++++++ > 2 files changed, 459 insertions(+), 64 deletions(-)
Reviewed-by: Simon Glass <s...@chromium.org> I hope the magic function can be cut back, perhaps with a for loop, perhaps a later enhancement.