11-21-2011
Quote:
Originally Posted by
liklstar
Hi, all:
The physical network interface card should drop the packets if it doesn't match the MAC address of the NIC. In my PC, however, the packets which shoud be dropped trigger the interrupt function of my own driver and are recieved as skb to be transfered to the upper layer!
Why? How should I do to filter the packets at physical layer? I suspect that my NIC is working in hybridization mode?
Notes: my platform is linux 3.0.4 on x86.
li,kunlun
---------- Post updated at 08:08 AM ---------- Previous update was at 07:04 AM ----------
Excuse me: not "hybridization mode" but "promiscuous mode"!
Being a hardware thing what you want depends on the hardware. Read up on the chipset involved if you can.
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
I am running eMacs from another's users directory: ~sbuesr/emacs
but I can't get the CC-MODE or any other packages to work. If I work from that users' account, it's ok. If I use my account and run emacs, it's not working.
Any ideas please? (3 Replies)
Discussion started by: sierra_aar
3 Replies
2. UNIX for Dummies Questions & Answers
I got some job running on Sun Unix system, which sends the email to outlook client on windows after completion.
Few of the emails are coming with SUSPECT: prefixes.
I am using unix command mailx to send the message. Messages are simple text
Any idea on this
Thanks
Ashok (1 Reply)
Discussion started by: akrathi
1 Replies
3. Solaris
My solaris10 machine suddenly hanged and when i rebooted it gave me warnings like
"WARNING: Unexpected token ' ' on line 10 of /platform/sun4u/kernel/drv/sf.conf "
and many more.
I went into the single user mode by
#boot cdrom -s
I tried executing fsck -y there.But it did not work.
It does... (1 Reply)
Discussion started by: lydiaEd
1 Replies
4. Linux
I have a problem with a second NIC card - D-Link DGE 530T . I have modified the /etc/modprobe.conf file and added an eth1 entry as suggested by jim golding's post in article mentioned below. Running oracle's enterprise linux 4 update 5 software. Trying to install Oracle 10.2 RAC on my 3 pc's... (3 Replies)
Discussion started by: Corne
3 Replies
5. IP Networking
Hello,
I have windows 2000 on my pc and in order to capture network traffic it is required to to bring the NIC into promiscious mode.
Can any one please guide me what is required to achieve it?
thanks in advance. (2 Replies)
Discussion started by: sureshcisco
2 Replies
6. Shell Programming and Scripting
I bet this is really simple but I can only find silly long solutions.
Im trying to read the second word of each line in a file and pipe it out, in Win32 it looks something like:
for /F "tokens=2" %%b in (file.txt) do etc..
Sorry for the probably dumbass question! (1 Reply)
Discussion started by: joe19oo.c
1 Replies
7. UNIX for Dummies Questions & Answers
Right now I have a computer that I want to use as the monitor for my network. It's currently running Windows 7, and so as I understand it the NIC won't monitor all the traffic on the network. So my question is, if I install Linux on this computer will I be able to force the NIC card into... (1 Reply)
Discussion started by: iJeydon
1 Replies
8. Linux
dear all
in single user mode i want to change password in RHEL server 6.0 (Santiago)
i tired using passwd command it is not able to change.
how to change it.
thanks in advance (2 Replies)
Discussion started by: nikhil kasar
2 Replies
9. Red Hat
Hi Experts
I am facing a problem wherein Root Access not working as FileSystem in ReadOnly Mode.
Due to a Disk failure, my Filesystem went into Read-Only mode:
report@xx> grep root /proc/mounts
/dev/root / ext3 ro,data=ordered 0 0
Now, I am not able to login using root user on the... (5 Replies)
Discussion started by: navkanwal
5 Replies
10. Solaris
I want a solaris zone,wich can get ip from dhcp external server
i configure my zone
net:
address not specified
allowed-address not specified
configure-allowed-address: true
physical: vnic1
defrouter not specified
vnic is linked to net0
dladm
net0 ... (6 Replies)
Discussion started by: Linusolaradm1
6 Replies
LEARN ABOUT NETBSD
pcap_stats
PCAP_STATS(3) Library Functions Manual PCAP_STATS(3)
NAME
pcap_stats - get capture statistics
SYNOPSIS
#include <pcap/pcap.h>
int pcap_stats(pcap_t *p, struct pcap_stat *ps);
DESCRIPTION
pcap_stats() fills in the struct pcap_stat pointed to by its second argument. The values represent packet statistics from the start of the
run to the time of the call.
pcap_stats() is supported only on live captures, not on ``savefiles''; no statistics are stored in ``savefiles'', so no statistics are
available when reading from a ``savefile''.
A struct pcap_stat has the following members:
ps_recv
number of packets received;
ps_drop
number of packets dropped because there was no room in the operating system's buffer when they arrived, because packets
weren't being read fast enough;
ps_ifdrop
number of packets dropped by the network interface or its driver.
The statistics do not behave the same way on all platforms. ps_recv might count packets whether they passed any filter set with pcap_set-
filter(3) or not, or it might count only packets that pass the filter. It also might, or might not, count packets dropped because there
was no room in the operating system's buffer when they arrived. ps_drop is not available on all platforms; it is zero on platforms where
it's not available. If packet filtering is done in libpcap, rather than in the operating system, it would count packets that don't pass
the filter. Both ps_recv and ps_drop might, or might not, count packets not yet read from the operating system and thus not yet seen by
the application. ps_ifdrop might, or might not, be implemented; if it's zero, that might mean that no packets were dropped by the inter-
face, or it might mean that the statistic is unavailable, so it should not be treated as an indication that the interface did not drop any
packets.
RETURN VALUE
pcap_stats() returns 0 on success and returns -1 if there is an error or if p doesn't support packet statistics. If -1 is returned,
pcap_geterr() or pcap_perror() may be called with p as an argument to fetch or display the error text.
SEE ALSO
pcap(3), pcap_geterr(3)
7 September 2009 PCAP_STATS(3)