mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-04 00:00:14 -04:00
farp: Remove unused variable
This commit is contained in:
parent
4b8eb6e8d9
commit
3809bdac90
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user