Commit 01427d3f authored by Ondřej Zajíček's avatar Ondřej Zajíček

Remove some runaway debug messages and typos.

parent 391931d4
...@@ -46,8 +46,8 @@ struct iface { ...@@ -46,8 +46,8 @@ struct iface {
#define IF_SHUTDOWN 0x10 /* Interface disappeared */ #define IF_SHUTDOWN 0x10 /* Interface disappeared */
#define IF_LOOPBACK 0x20 #define IF_LOOPBACK 0x20
#define IF_IGNORE 0x40 /* Not to be used by routing protocols (loopbacks etc.) */ #define IF_IGNORE 0x40 /* Not to be used by routing protocols (loopbacks etc.) */
#define IF_ADMIN_UP 0x80 /* Administrative up (e.q. IFF_UP in Linux) */ #define IF_ADMIN_UP 0x80 /* Administrative up (e.g. IFF_UP in Linux) */
#define IF_LINK_UP 0x100 /* Link available (e.q. IFF_LOWER_UP in Linux) */ #define IF_LINK_UP 0x100 /* Link available (e.g. IFF_LOWER_UP in Linux) */
#define IA_PRIMARY 0x10000 /* This address is primary */ #define IA_PRIMARY 0x10000 /* This address is primary */
#define IA_SECONDARY 0x20000 /* This address has been reported as secondary by the kernel */ #define IA_SECONDARY 0x20000 /* This address has been reported as secondary by the kernel */
......
...@@ -285,8 +285,6 @@ nl_parse_link(struct nlmsghdr *h, int scan) ...@@ -285,8 +285,6 @@ nl_parse_link(struct nlmsghdr *h, int scan)
u32 mtu; u32 mtu;
unsigned int fl; unsigned int fl;
debug("nl_parse_link %d\n", new);
if (!(i = nl_checkin(h, sizeof(*i))) || !nl_parse_attrs(IFLA_RTA(i), a, sizeof(a))) if (!(i = nl_checkin(h, sizeof(*i))) || !nl_parse_attrs(IFLA_RTA(i), a, sizeof(a)))
return; return;
if (!a[IFLA_IFNAME] || RTA_PAYLOAD(a[IFLA_IFNAME]) < 2 || if (!a[IFLA_IFNAME] || RTA_PAYLOAD(a[IFLA_IFNAME]) < 2 ||
...@@ -299,8 +297,6 @@ nl_parse_link(struct nlmsghdr *h, int scan) ...@@ -299,8 +297,6 @@ nl_parse_link(struct nlmsghdr *h, int scan)
name = RTA_DATA(a[IFLA_IFNAME]); name = RTA_DATA(a[IFLA_IFNAME]);
memcpy(&mtu, RTA_DATA(a[IFLA_MTU]), sizeof(u32)); memcpy(&mtu, RTA_DATA(a[IFLA_MTU]), sizeof(u32));
debug("nl_parse_link name %s index %d flags %x\n", name, i->ifi_index, i->ifi_flags);
ifi = if_find_by_index(i->ifi_index); ifi = if_find_by_index(i->ifi_index);
if (!new) if (!new)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment