Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Aug 2005 18:29:14 -0400 (EDT)
From:      Paul Khavkine <paul@distributel.net>
To:        Julian Elischer <julian@elischer.org>
Cc:        freebsd-net@freebsd.org
Subject:   Re: Reading raw ethernet
Message-ID:  <20050819182437.R47954-100000@krusty.mtl.distributel.net>
In-Reply-To: <4306462A.2070500@elischer.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 19 Aug 2005, Julian Elischer wrote:

>Paul Khavkine wrote:
>> Hi guys.
>>
>>
>> I'm writing a small program to read raw ethernet frames out of netgraph
>> to capture Spannign Tree packets from the switch.
>>
>> Is it possible to pick up STP frames without putting the interface in
>> promiscuous mode ?
>
>If you don't put it in promiscuous mode, then you will only see broadcast
>packets and packets aimed at you specifically.
>
>If that's enough then there is nothing in netgraph that insists that
>you turn on promiscuous mode.

Well STP packets are sent to a well known MAC address (multicast?)
so i can't see it if the card is not in promisc mode.
I'm not exactly sure if it's good or not to leave it in promisc mode
all the time, is there any security/performance issues with that on a
busy server?
I want to read STP packets to monitor the link with the switch, if i can't
hear the switch for X amount oof time, failover to another NIC.
Is it possible to have more then one MAC on a NIC ? I have bge and em
cards.

>
>You should probably look at the ng_etf node too BTW.

How does ng_etf deal with that ?


Thanx
Paul

>
>
>>
>> Thanx
>> Paul
>>
>> ************************************************
>> Paul Khavkine
>> Networks/Systems Planning and Engineering
>> DISTRIBUTEL Communications.
>> 740 Notre Dame West, Suite 1135
>> Montreal, Quebec, Canada, H3C 3X6
>> +1-514-877-5505 x 263
>> http://www.distributel.net
>> ************************************************
>>
>> _______________________________________________
>> freebsd-net@freebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-net
>> To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"
>
>

************************************************
Paul Khavkine
Networks/Systems Planning and Engineering
DISTRIBUTEL Communications.
740 Notre Dame West, Suite 1135
Montreal, Quebec, Canada, H3C 3X6
+1-514-877-5505 x 263
http://www.distributel.net
************************************************




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050819182437.R47954-100000>