AF_XDP-interaction: Enable AF_XDP code that reply to ICMPV6_ECHO_REQUEST

Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
This commit is contained in:
Jesper Dangaard Brouer
2021-11-04 15:54:21 +01:00
parent 173cc762fd
commit f46743a75f
2 changed files with 2 additions and 4 deletions

View File

@@ -101,9 +101,7 @@ int meta_add_mark(struct xdp_md *ctx, __u32 mark)
return 0;
}
/* FIXME: Use proper standard defines
* Neighbor Discovery in IPv6 - RFC4861
*/
/* Neighbor Discovery in IPv6 - Values taken from RFC4861 */
#define NDP_R_SOL 133 /* Router Solicitation */
#define NDP_R_ADV 134 /* Router Advertisement */
#define NDP_SOL 135 /* Neighbor Solicitation */

View File

@@ -542,7 +542,7 @@ static bool process_packet(struct xsk_socket_info *xsk,
* ICMPV6_ECHO_REPLY
* - Recalculate the icmp checksum */
if (false) {
if (true) {
int ret;
uint32_t tx_idx = 0;
uint8_t tmp_mac[ETH_ALEN];