[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Support for setting ksdevice to the interface used for PXE



On 17/08/05, Alex Kiernan <alex kiernan gmail com> wrote:
> On 16/08/05, Jeremy Katz <katzj redhat com> wrote:
> > On Fri, 2005-08-12 at 13:56 +0100, Alex Kiernan wrote:
> > > +       } else if (!strncmp(argv[i], "BOOTIF=", 7)) {
> > > +           /* +10 so that we skip over the leading 01- */
> > > +            loaderData->bootIf = strdup(argv[i] + 10);
> > > +            loaderData->bootIf_set = 1;
> >
> > Where does the -01 come from?  I don't see anything obvious in the
> > pxelinux source that's making me understand where it comes from and I'd
> > rather have an idea of that instead of just blindly skipping.
> >
> 
> Its the hardware type (you get something along the lines of
> BOOTIF=01-00-0d-60-14-5b-a8). I guess it would be more correct to keep
> the hardware type and have the mac extraction code insert the ethernet
> type for ethernet type interfaces, then compare across the whole
> thing.
> 

It looks like you can pull this from ifr.ifr_addr.sa_family, so I
guess a backward compatible way to add it would be to insert the
hardware type into the generated addresses, and if the address you're
presented with is too only 6 octets, assume hardware type 1.

-- 
Alex Kiernan


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]