Lines Matching defs:eth
250 struct ethhdr *eth = ctx_ptr(ctx, data);
255 if (eth + 1 > ctx_ptr(ctx, data_end))
257 if (eth->h_proto != 0)
277 struct ethhdr *eth;
288 eth = (struct ethhdr *)data;
299 if (eth->h_proto != 0)
313 struct ethhdr *eth = ctx_ptr(ctx, data);
315 if (eth + 1 > ctx_ptr(ctx, data_end))
318 if (eth->h_proto != 0)
326 eth->h_proto = 42;
340 struct ethhdr *eth = ctx_ptr(ctx, data);
343 if (eth + 1 > ctx_ptr(ctx, data_end))
346 if (eth->h_proto != 0)
368 struct ethhdr *eth;
371 eth = bpf_dynptr_slice_rdwr(&data, 0, NULL, sizeof(*eth));
372 if (!eth)
375 if (eth->h_proto != 0)
384 eth->h_proto = 42;
399 const struct ethhdr *eth;
403 eth = bpf_dynptr_slice(&data, 0, NULL, sizeof(*eth));
404 if (!eth)
407 if (eth->h_proto != 0)
434 const struct ethhdr *eth;
437 eth = bpf_dynptr_slice(&data, 0, NULL, sizeof(*eth));
438 if (!eth)
441 if (eth->h_proto != 0)
470 const struct ethhdr *eth;
473 eth = bpf_dynptr_slice(&data, 0, NULL, sizeof(*eth));
474 if (!eth)
477 if (eth->h_proto != 0)