sslug-teknik team mailing list archive
-
sslug-teknik team
-
Mailing list archive
-
Message #23436
Re: Linsniffer
Michael Reiche wrote:
>
> René Gram wrote:
> >
> > Hejsa!
> >
> > Efter at have læst på linux.com om sniffer tools, besluttede jeg mig for at
> > prøve dem selv.
> > Men jeg har et problem når jeg prøver at compile Linsniffer, følgende fejl
> > kommer:
> >
> > linsniffer.c: In function `openintf':
> > linsniffer.c:74: `SIOCGIFFLAGS' undeclared (first use in this function)
> > linsniffer.c:74: (Each undeclared identifier is reported only once
> > linsniffer.c:74: for each function it appears in.)
> > linsniffer.c:82: `SIOCSIFFLAGS' undeclared (first use in this function)
> >
> > hvad er SIOCSIFFLAGS? og er det noget som jeg kan slå til eller ?
> >
> > /rfg
>
> [root@mickey /root]# find /usr/include -name '*.h' -print | xargs grep
> SIOCGIFFLAGS
> /usr/include/bits/ioctls.h:#define SIOCGIFFLAGS 0x8913 /* get flags
> */
>
> linsniffer.c mangler at inkludere ioctls.h ! Eller mangler at inkludere
> en anden .h fil som inkluderer ioctls.h !
>
> Eventuelt kan du prøve at indsætte følgende øverst i linsniffer.c :
>
> #include <bits/ioctls.h>
>
> Mvh.
> Reiche
Well jeg prøvede lige at kontrollere om der var andre .h filer som
inkluderer bits/ioctls.h:
[root@mickey /root]# find /usr/include -name '*.h' -print | xargs grep
"bits/ioctls"
/usr/include/sys/ioctl.h:#include <bits/ioctls.h>
/usr/include/sys/ioctl.h: values). The code to generate
<bits/ioctls.h> has omitted these
/usr/include/bits/ioctls.h:# error "Never use <bits/ioctls.h> directly;
include <sys/ioctl.h> instead."
[root@mickey /root]#
Bemærk teksten "Never use <bits/ioctls.h> directly; include
<sys/ioctl.h> instead.". Dvs. at du skal prøve at indsætte følgende
linie i linsniffer.c :
#include <sys/ioctl.h>
Mvh.
Reiche
References