[NTLUG:Discuss] tap[0-9]* modules?

Lee Heath madhat at unspecific.com
Wed Dec 8 07:53:05 CST 1999


Brian wrote:
> 
> Lee Heath wrote:
> >
> > from
> > /usr/src/linux/Documentation/networking/ethertap.txt
> 
> Having never heard of an "ethertap," your link was appreciated.  Checked
> the kernel configuration -- "ethertap network tap" is grayed out, which
> I assume means it has been disabled.  No /dev/tapxx devices either.
> 
> But now I know what I'm looking for!

I am not really sure what it is either, but I can tell you how I found
it...

Since you mentioned a device, I figured I would look in the kernel
sources first, so I just went to /usr/src/linux/Documentation, then I
did a 
# egrep tap0 `find . -type f -print`
So that it will return each line that contains "tap0" in all the files
(-type f) contained in or under my current location (find .).   (the
-print isn't necessary in more recent versions of find, but doesn't
hurt).  Those are backticks, btw...

the find will create a list of files for grep to search through, but you
have to be careful, because if the directory you are in is empty (and
you just didn't notice) it will just hang and never return anything, and
if there are too many files returned, it will error out with a message
that says "bash: /bin/egrep: Argument list too long" or something
similar.

Sorry, I like this trick and it seems a lot of people don't know it.  I
find it very usefull.

-- 
MadHat




More information about the Discuss mailing list