SLOF/lib/libnet
Thomas Huth 8c6d468210 ipv6: Fix gcc9 warnings
GCC 9 introduced some new compiler warnings that occur when taking the
address of a packed struct, e.g.:

 lib/libnet/icmpv6.c:173:21: warning: taking address of packed member of
 ‘struct ip6hdr’ may result in an unaligned pointer value [-Waddress-of-packed-member]
  173 |  rtr = find_router (&(ip6h->src));
      |                     ^~~~~~~~~~~~

Since these warnings are mainly about the ip6_addr_t values that are
embedded in these packed structs, and ip6_addr_t is reasonable small
(just 128 bit), let's fix it by passing around the IPv6 addresses by
value instead of pointer, which looks a little bit nicer anyway.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
2019-10-22 14:35:36 +11:00
..
Makefile libnet: Add functions for downloading and parsing pxelinux.cfg files 2018-05-29 19:06:31 +10:00
args.c net: Move also files from clients/net-snk/app/netapps/ to lib/libnet/ 2016-06-27 12:31:06 +10:00
args.h net: Move also files from clients/net-snk/app/netapps/ to lib/libnet/ 2016-06-27 12:31:06 +10:00
bootp.c libnet: Get rid of unnecessary (char *) casts 2018-05-14 19:56:07 +10:00
dhcp.c libnet: Add support for DHCPv4 options 209 and 210 2018-05-29 19:06:59 +10:00
dhcp.h net: Remove remainders of the MTFTP code 2016-06-27 12:31:06 +10:00
dhcpv6.c libnet: Get rid of unnecessary (char *) casts 2018-05-14 19:56:07 +10:00
dhcpv6.h net: Move files from clients/net-snk/app/netlib/ to lib/libnet/ 2016-06-27 12:31:06 +10:00
dns.c net: Move files from clients/net-snk/app/netlib/ to lib/libnet/ 2016-06-27 12:31:06 +10:00
dns.h net: Move files from clients/net-snk/app/netlib/ to lib/libnet/ 2016-06-27 12:31:06 +10:00
ethernet.c net: Move files from clients/net-snk/app/netlib/ to lib/libnet/ 2016-06-27 12:31:06 +10:00
ethernet.h libnet: Move the external declaration of send_ip to ethernet.h 2017-07-07 16:40:53 +10:00
icmpv6.c ipv6: Fix gcc9 warnings 2019-10-22 14:35:36 +11:00
icmpv6.h net: Move files from clients/net-snk/app/netlib/ to lib/libnet/ 2016-06-27 12:31:06 +10:00
ipv4.c net: Move files from clients/net-snk/app/netlib/ to lib/libnet/ 2016-06-27 12:31:06 +10:00
ipv4.h libnet: Move the external declaration of send_ip to ethernet.h 2017-07-07 16:40:53 +10:00
ipv6.c ipv6: Fix gcc9 warnings 2019-10-22 14:35:36 +11:00
ipv6.h ipv6: Fix gcc9 warnings 2019-10-22 14:35:36 +11:00
libnet.code libnet: Get rid of unused huge_load and block_size parameters 2018-05-25 14:55:50 +10:00
libnet.in Add a Forth-to-C wrapper for the ping command, too 2016-10-17 11:02:15 +11:00
ndp.c ipv6: Fix gcc9 warnings 2019-10-22 14:35:36 +11:00
ndp.h ipv6: Fix gcc9 warnings 2019-10-22 14:35:36 +11:00
netapps.h libnet: Get rid of unused huge_load and block_size parameters 2018-05-25 14:55:50 +10:00
netload.c libnet: Correctly re-initialize the "ip_version" variable each time 2019-04-10 16:03:00 +10:00
ping.c libnet: Fix the check of the argument lengths of the "ping" command 2019-08-27 12:00:36 +10:00
pxelinux.c lib/libnet/pxelinux: Fix two off-by-one bugs in the pxelinux.cfg parser 2018-06-07 16:44:25 +10:00
pxelinux.h libnet: Support UUID-based pxelinux.cfg file names 2018-05-29 19:08:14 +10:00
tcp.c net: Move files from clients/net-snk/app/netlib/ to lib/libnet/ 2016-06-27 12:31:06 +10:00
tcp.h net: Move files from clients/net-snk/app/netlib/ to lib/libnet/ 2016-06-27 12:31:06 +10:00
tftp.c libnet: Put code for determing TFTP error strings into a separate function 2018-05-29 19:06:18 +10:00
tftp.h libnet: Add support for DHCPv4 options 209 and 210 2018-05-29 19:06:59 +10:00
time.h paflof: Provide get_timer() and set_timer() helper functions 2016-09-14 17:50:40 +10:00
udp.c net: Remove remainders of the MTFTP code 2016-06-27 12:31:06 +10:00
udp.h net: Remove remainders of the MTFTP code 2016-06-27 12:31:06 +10:00