added debuggin for interface lookup
authorMartin Willi <martin@strongswan.org>
Thu, 1 Mar 2007 12:53:20 +0000 (12:53 -0000)
committerMartin Willi <martin@strongswan.org>
Thu, 1 Mar 2007 12:53:20 +0000 (12:53 -0000)
src/charon/threads/kernel_interface.c

index 261d215..1da82c0 100644 (file)
@@ -1653,8 +1653,11 @@ static int get_iface(private_kernel_interface_t *this, host_t* ip)
        }
        rta = (struct rtattr*)(NLMSG_DATA(hdr) + NLMSG_LENGTH(sizeof(struct rtmsg)));
 
+       DBG1(DBG_KNL, "listing attributes:");
        while(RTA_OK(rta, hdr->nlmsg_len))
        {
+               DBG1(DBG_KNL, "  found rtattr: %d, data %b", rta->rta_type,
+                        RTA_DATA(rta), rta->rta_len - 4);
                if(rta->rta_type == RTA_OIF)
                {
                        ifindex = *((int*)RTA_DATA(rta));