From 3809bdac9052168c9fa6c0ef994fe2907a15481c Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Tue, 29 Nov 2022 17:56:40 +0100 Subject: [PATCH] farp: Remove unused variable --- src/libcharon/plugins/farp/farp_spoofer.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/libcharon/plugins/farp/farp_spoofer.c b/src/libcharon/plugins/farp/farp_spoofer.c index 2286056821..2493b2da3d 100644 --- a/src/libcharon/plugins/farp/farp_spoofer.c +++ b/src/libcharon/plugins/farp/farp_spoofer.c @@ -411,7 +411,6 @@ CALLBACK(handler_onarp, bool, farp_handler_t *handler, int fd, watcher_event_t event) { struct bpf_hdr *bh; - struct ether_header *eh; arp_t *a; host_t *lcl, *rmt; uint8_t *p = handler->bufdat; @@ -428,7 +427,6 @@ CALLBACK(handler_onarp, bool, while (p < handler->bufdat + n) { bh = (struct bpf_hdr*)p; - eh = (struct ether_header*)(p + bh->bh_hdrlen); a = (arp_t*)(p + bh->bh_hdrlen + sizeof(struct ether_header)); lcl = host_create_from_chunk(AF_INET, chunk_create(a->sender_ip, 4), 0); -- 2.47.2