diff options
author | Tomek Mrugalski <tomek@isc.org> | 2022-01-19 20:14:16 +0100 |
---|---|---|
committer | Tomek Mrugalski <tomek@isc.org> | 2022-01-20 12:04:28 +0100 |
commit | f6b8f48d1665c4487dedbcfa4dca435a0d67ddeb (patch) | |
tree | 19926f31f56890bc8c7f5d3bc5b2e2c16b96794e /common/bpf.c | |
parent | 429a56d73c0f9f2edf400fd6313850a3ce4fd809 (diff) | |
download | isc-dhcp-f6b8f48d1665c4487dedbcfa4dca435a0d67ddeb.tar.gz |
[#189] Whitespace fixes in opened files
Diffstat (limited to 'common/bpf.c')
-rw-r--r-- | common/bpf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/common/bpf.c b/common/bpf.c index 775f70ae..7e511394 100644 --- a/common/bpf.c +++ b/common/bpf.c @@ -520,7 +520,7 @@ ssize_t receive_packet (interface, buf, len, from, hfrom) physical layer that supports this, but WTH), skip this packet. */ if (offset < 0) { - interface->rbuf_offset = + interface->rbuf_offset = BPF_WORDALIGN(interface->rbuf_offset + hdr.bh_caplen); continue; @@ -535,7 +535,7 @@ ssize_t receive_packet (interface, buf, len, from, hfrom) /* If the IP or UDP checksum was bad, skip the packet... */ if (offset < 0) { - interface->rbuf_offset = + interface->rbuf_offset = BPF_WORDALIGN(interface->rbuf_offset + hdr.bh_caplen); continue; @@ -614,7 +614,7 @@ get_hw_addr(const char *name, struct hardware *hw) { */ sa = NULL; for (p=ifa; (p != NULL) && (sa == NULL); p = p->ifa_next) { - if ((p->ifa_addr->sa_family == AF_LINK) && + if ((p->ifa_addr->sa_family == AF_LINK) && !strcmp(p->ifa_name, name)) { sa = (struct sockaddr_dl *)p->ifa_addr; } |