]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
farp: Remove unused variable
authorTobias Brunner <tobias@strongswan.org>
Tue, 29 Nov 2022 16:56:40 +0000 (17:56 +0100)
committerTobias Brunner <tobias@strongswan.org>
Fri, 2 Dec 2022 13:56:38 +0000 (14:56 +0100)
src/libcharon/plugins/farp/farp_spoofer.c

index 228605682166b1d5fd3c1862c1019a69ac48c81d..2493b2da3de8807a9f4e5c570e7db5bc62662ca8 100644 (file)
@@ -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);