[Oisf-devel] Suricata 1.2.1 + OpenBSD

Henri Wahl h.wahl at ifw-dresden.de
Fri Apr 27 10:28:35 UTC 2012


Hi
> Can you try to find what hdr file the definition of "struct ifreq" is in
> on your system?
> 

It is in /usr/include/net/if.h, as of OpenBSD 4.9 from line 582:

/*
577  * Interface request structure used for socket
578  * ioctl's.  All interface ioctl's must have parameter
579  * definitions which begin with ifr_name.  The
580  * remainder may be interface specific.
581  */
582 struct  ifreq {
583         char    ifr_name[IFNAMSIZ];             /* if name, e.g.
"en0" */
584         union {
585                 struct  sockaddr ifru_addr;
586                 struct  sockaddr ifru_dstaddr;
587                 struct  sockaddr ifru_broadaddr;
588                 short   ifru_flags;
589                 int     ifru_metric;
590                 caddr_t ifru_data;
591         } ifr_ifru;
592 #define ifr_addr        ifr_ifru.ifru_addr      /* address */
593 #define ifr_dstaddr     ifr_ifru.ifru_dstaddr   /* other end of
p-to-p link */
594 #define ifr_broadaddr   ifr_ifru.ifru_broadaddr /* broadcast address */
595 #define ifr_flags       ifr_ifru.ifru_flags     /* flags */
596 #define ifr_metric      ifr_ifru.ifru_metric    /* metric */
597 #define ifr_mtu         ifr_ifru.ifru_metric    /* mtu (overload) */
598 #define ifr_media       ifr_ifru.ifru_metric    /* media options
(overload) */
599 #define ifr_rdomainid   ifr_ifru.ifru_metric    /* VRF instance
(overload) */
600 #define ifr_data        ifr_ifru.ifru_data      /* for use by
interface */
601 };

Regards


-- 
Henri Wahl

IT Department
Leibniz-Institut für Festkörper- u.
Werkstoffforschung Dresden

tel. (03 51) 46 59 - 797
email: h.wahl at ifw-dresden.de
http://www.ifw-dresden.de

Nagios status monitor for your desktop:
http://nagstamon.ifw-dresden.de

IFW Dresden e.V., Helmholtzstraße 20, D-01069 Dresden
VR Dresden Nr. 1369
Vorstand: Prof. Dr. Ludwig Schultz, Dr. h.c. Dipl.-Finw. Rolf Pfrengle

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4706 bytes
Desc: S/MIME Kryptografische Unterschrift
URL: <http://lists.openinfosecfoundation.org/pipermail/oisf-devel/attachments/20120427/520dfd12/attachment.bin>


More information about the Oisf-devel mailing list