Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.
Since i could not make drbd 8.0pre3 work in centos 4.3-x86_64, I tried
the the svn trunk Revision 2306.
This version compiles just fine, but I had to change drbdadm a bit,
otherwise it whouldn't find my eth0's adress.
Perhaps the get_ifi_info() could be written in some other way?
anyway, here's my patch:
--- drbdadm_main.c.old 2006-07-28 16:23:25.000000000 +0200
+++ drbdadm_main.c 2006-07-28 16:16:20.000000000 +0200
@@ -1233,7 +1233,8 @@
break;
}
- ptr += sizeof(ifr->ifr_name) + len; /* for next one in buffer */
+ //ptr += sizeof(ifr->ifr_name) + len; /* for next one in buffer */
+ ptr += sizeof(struct ifreq);
if (ifr->ifr_addr.sa_family != family)
continue; /* ignore if not desired address family */
best regards,
/Håkan