Package: aoetools Version: 36-3 Tags: patch Dear maintainer,
we recently tested aoe on a newly created bullseye test system and noticed that aoe-sancheck did not detect any interfaces. Up to now, we used bios device names and had no problems with this whatsoever but the test system uses the default interface names (enp*). Looking into the source revealed that "eth" is hardcoded in aoe-sancheck.c to find valid interfaces. The trivial patch attached fixes the issue while still being able to correctly identify old interface names as well. We'd be very glad if this patch could still make it into bullseye... ;-) Thank you for your work! best regards, Adi Kriegisch
--- a/aoe-sancheck.c +++ b/aoe-sancheck.c @@ -513,7 +513,7 @@ ethlist(char **ifs, int nifs) ifr.ifr_ifindex = i; if (ioctl(s, SIOCGIFNAME, &ifr) < 0) continue; - if (strncmp(ifr.ifr_name, "eth", 3)) + if (strncmp(ifr.ifr_name, "e", 1)) continue; inserteth(ifs, nifs, ifr.ifr_name); n++;
signature.asc
Description: PGP signature