Hey, I would like to have that test program as well. Could you please send me a
copy too?
thanks
Remco Nonhebel
"Mike A. Harris" wrote:
> On Fri, 25 Aug 2000, Jim Treadway wrote:
>
> >> reading methods, I have plenty of those allready. I'm wanting
> >> this so I can learn kernel interface functions, and doing it via
> >> other methods does not teach what I'm wanting to learn.
> >
> >I believe that I saw a code example for this in one of "the Stevens"
> >books, but I can't remember which one. "TCP/IP Illustrated, Vol. 2"
> >(Wright/Stevens) however describes the basic mechanism in Chapter 3.
> >
> >Basically, I think there's an ioctl to read a "struct ifreq", and the
> >particular field you want is "ifr_ifru.ifr_flags" where the "IFF_UP" flag
> >is set.
> >
> >I think all of this is defined in "/usr/src/linux/include/linux/if.h" and
> >"/usr/src/linux/net/core/dev.c".
> >
> >Not exactly a code sample, and not exactly portable across UN*X machines,
> >sorry. :)
> >
> >If you can't figure it out I'll try to dig up the exact book I saw this
> >in...
>
> Thanks, I'm ok now. I found out it was much simpler by
> ifnameindex()... I wrote a simple function called isifup() that
> wraps the call nicely. If you're interested, let me know and
> I'll send you a copy of the test program I wrote.
>
> TTYL
>
> --
> Mike A. Harris | Computer Consultant | Capslock Consulting
> Linux Advocate | Open Source Advocate | Red Hat Linux Fanatic
> "A Firewall is really much like a sophisticated traffic cop; it detects and
> stops unauthorized or suspicious movement in or out of the network. But
> security is more than a Firewall; it's a process. You can't just put in a
> Firewall and think you're secure."
>
> _______________________________________________
> Redhat-devel-list mailing list
> [EMAIL PROTECTED]
> https://listman.redhat.com/mailman/listinfo/redhat-devel-list
_______________________________________________
Redhat-devel-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-devel-list