mirror of
https://github.com/xdp-project/bpf-examples.git
synced 2024-05-06 15:54:53 +00:00
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:
@@ -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 */
|
||||
|
@@ -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];
|
||||
|
Reference in New Issue
Block a user