mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Kirill Ratkin <kratkin@yahoo.com>
To: " Rasmus_Bøg_Hansen " <moffe@amagerkollegiet.dk>,
	"Mehta, Phoram Kirtikumar (UMKC-Student)" <pkm722@umkc.edu>
Cc: linux-net@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: network device driver
Date: Mon, 15 Oct 2001 00:56:44 -0700 (PDT)	[thread overview]
Message-ID: <20011015075644.56437.qmail@web11907.mail.yahoo.com> (raw)
In-Reply-To: <Pine.LNX.4.33.0110150913370.1088-100000@grignard.amagerkollegiet.dk>

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=us-ascii, Size: 1898 bytes --]


--- Rasmus_Bøg_Hansen <moffe@amagerkollegiet.dk>
wrote:
> On Sun, 14 Oct 2001, Mehta, Phoram Kirtikumar
> (UMKC-Student) wrote:
> 
> > 1. how does ifconfig and netstat get teh net
> statistics, where can i get
> > the source to that funtion or source file.
> 
> They are from /proc/net/.
Yeah, here you can find src of network utilities:
http://www.tazenda.demon.co.uk/phil/net-tools/

> 
> > 2. is there any funtion in the network device
> driver source by accessing
> > which i can get the packets received or the type
> of packets. if not can
> > anybody gimme some tips on how can i write it.
> 
> You can use a packet filter.
> 
> > i am trying to write or modify the eth device
> driver(3c509.c) in such a
> > way that i can statistics of the traffic and then
> i also want to
> > identify teh traffic. in short i want to
> incorporate a function in my
> > driver which when acceseed would act as a
> sniffer/protocol analyzer .
> > any help or advise will be appreciated.
> 
> Do it in userspace with packet filters. Look at
> tcpdump for example 
> code.
Sure. Or ... to use netfilter hook functions (if you
can't use user space code)

> 
> Rasmus
> 
> -- 
> -- [ Rasmus 'Møffe' Bøg Hansen ]
> ---------------------------------------
> [...] Note that 120 sec is defined in the protocol
> as the maximum
> possible RTT.  I guess we'll have to use something
> other than TCP
> to talk to the University of Mars.
> --------------------------------- [ moffe at
> amagerkollegiet dot dk ] --
> 
> -
> To unsubscribe from this list: send the line
> "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at 
> http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/


__________________________________________________
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com

  reply	other threads:[~2001-10-15  7:56 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-10-14 21:09 Mehta, Phoram Kirtikumar (UMKC-Student)
2001-10-15  7:14 ` Rasmus Bøg Hansen
2001-10-15  7:56   ` Kirill Ratkin [this message]
2001-10-15 17:58 Mal hacker

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20011015075644.56437.qmail@web11907.mail.yahoo.com \
    --to=kratkin@yahoo.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-net@vger.kernel.org \
    --cc=moffe@amagerkollegiet.dk \
    --cc=pkm722@umkc.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®