Find the answer to your Linux question:
Results 1 to 3 of 3
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Nov 2011
    Posts
    28

    I suspect that my NIC is working in hybridization mode?


    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

  2. #2
    Just Joined!
    Join Date
    Nov 2011
    Posts
    28
    Quote Originally Posted by liklstar View Post
    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

    Excuse me: not "hybridization mode" but "promiscuous mode"!

  3. #3
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,353
    You can verify if the device is in promiscuous mode with:

    Code:
    ip addr show dev ETH_N
    If is is, you'll see it like this:
    Code:
    3: wlan0: <NO-CARRIER,BROADCAST,MULTICAST,PROMISC,UP> mtu 1500 qdisc mq state DOWN qlen 1000
    you can disable promiscuous mode with:

    Code:
    ifconfig ETH_N -promisc

  4. $spacer_open
    $spacer_close

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •