Hi, aoecfg & aoeping expects the answer to be at least 60 bytes. But when the interface is a VLAN, the kernel strips the VLAN tag, making read() return only 56 bytes. The following patch fixes this:
diff -u -r aoetools-30/aoecfg.c aoetools-30.new/aoecfg.c --- aoetools-30/aoecfg.c 2009-03-03 22:58:24.000000000 +0100 +++ aoetools-30.new/aoecfg.c 2009-12-29 18:24:43.000000000 +0100 @@ -140,7 +140,7 @@ perror("read network"); exit(1); } - if (n < 60) + if (n < 56) continue; h = (Aoehdr *) buf; if (ntohs(h->type) != AOE_ETH_PROTO) diff -u -r aoetools-30/aoeping.c aoetools-30.new/aoeping.c --- aoetools-30/aoeping.c 2009-03-03 23:04:35.000000000 +0100 +++ aoetools-30.new/aoeping.c 2009-12-29 18:24:55.000000000 +0100 @@ -128,7 +128,7 @@ perror("read network"); exit(EXIT_FAILURE); } - if (n < 60) + if (n < 56) continue; h = (Aoehdr *) buf; if (ntohs(h->type) != AOE_ETH_PROTO @@ -161,7 +161,7 @@ perror("read network"); exit(EXIT_FAILURE); } - if (n < 60) + if (n < 56) continue; h = (Aoehdr *) buf; if (ntohs(h->type) != AOE_ETH_PROTO Gabor -- --------------------------------------------------------- MTA SZTAKI Computer and Automation Research Institute Hungarian Academy of Sciences --------------------------------------------------------- ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ Aoetools-discuss mailing list Aoetools-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/aoetools-discuss