ndppd: remove unused variables
Signed-off-by: Jiri Kosina <jkosina@suse.cz> Signed-off-by: Daniel Adolfsson <daniel@priv.nu>
This commit is contained in:
parent
8ee4758b41
commit
fe5fe8e894
@ -194,7 +194,7 @@ const std::string address::to_string() const
|
|||||||
bool address::parse_string(const std::string& str)
|
bool address::parse_string(const std::string& str)
|
||||||
{
|
{
|
||||||
char buf[INET6_ADDRSTRLEN],* b;
|
char buf[INET6_ADDRSTRLEN],* b;
|
||||||
int sz, pfx;
|
int sz;
|
||||||
|
|
||||||
sz = 0;
|
sz = 0;
|
||||||
b = buf;
|
b = buf;
|
||||||
|
@ -216,8 +216,6 @@ void conf::dump(int pri) const
|
|||||||
|
|
||||||
void conf::dump(logger& l, int level) const
|
void conf::dump(logger& l, int level) const
|
||||||
{
|
{
|
||||||
int i;
|
|
||||||
|
|
||||||
std::string pfx;
|
std::string pfx;
|
||||||
for (int i = 0; i < level; i++) {
|
for (int i = 0; i < level; i++) {
|
||||||
pfx += " ";
|
pfx += " ";
|
||||||
|
@ -282,7 +282,6 @@ ssize_t iface::read(int fd, struct sockaddr* saddr, uint8_t* msg, size_t size)
|
|||||||
{
|
{
|
||||||
struct msghdr mhdr;
|
struct msghdr mhdr;
|
||||||
struct iovec iov;
|
struct iovec iov;
|
||||||
char cbuf[256];
|
|
||||||
int len;
|
int len;
|
||||||
|
|
||||||
if (!msg || (size < 0))
|
if (!msg || (size < 0))
|
||||||
@ -350,9 +349,6 @@ ssize_t iface::read_solicit(address& saddr, address& daddr, address& taddr)
|
|||||||
struct ip6_hdr* ip6h =
|
struct ip6_hdr* ip6h =
|
||||||
(struct ip6_hdr* )(msg + ETH_HLEN);
|
(struct ip6_hdr* )(msg + ETH_HLEN);
|
||||||
|
|
||||||
struct icmp6_hdr* icmph =
|
|
||||||
(struct icmp6_hdr* )(msg + ETH_HLEN + sizeof( struct ip6_hdr));
|
|
||||||
|
|
||||||
struct nd_neighbor_solicit* ns =
|
struct nd_neighbor_solicit* ns =
|
||||||
(struct nd_neighbor_solicit* )(msg + ETH_HLEN + sizeof( struct ip6_hdr));
|
(struct nd_neighbor_solicit* )(msg + ETH_HLEN + sizeof( struct ip6_hdr));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user