Re: em0 hijacking traffic to port 623



"Jack Vogel" wrote:
On 5/21/07, Ian FREISLICH <ianf@xxxxxxxxxx> wrote:
Looking at the new source, I'm not sure it will stop this adaptor
gobbling port 623. It's a 82546EB, e1000_82546_rev_3 e1000_mac_type.
In em_init_manageability(), it looks like it's only disabled for
e1000_mac_type >= e1000_82571 which excludes this adaptor:

/* enable receiving management packets to the host */
if (adapter->hw.mac.type >= e1000_82571) {
manc |= E1000_MANC_EN_MNG2HOST;
#define E1000_MNG2HOST_PORT_623 (1 << 5)
#define E1000_MNG2HOST_PORT_664 (1 << 6)
manc2h |= E1000_MNG2HOST_PORT_623;
manc2h |= E1000_MNG2HOST_PORT_664;
E1000_WRITE_REG(&adapter->hw, E1000_MANC2H, manc2h)
;
}

I'll give the driver a whirl anyway. If it doesn't, is it safe to write
'manc |= E1000_MANC_EN_MNG2HOST' for adapter->hw.mac.type >= e1000_82546?

If you can test that would be useful.

FWIW, the new driver doesn't disable RCMP filtering on this NIC. :(

But, doing this to the new driver solves the immediate problem for me:

diff -u -d -r1.3 e1000_82540.c
--- e1000_82540.c 16 May 2007 00:14:23 -0000 1.3
+++ e1000_82540.c 22 May 2007 11:21:02 -0000
@@ -316,6 +316,7 @@
/* Disable HW ARPs on ASF enabled adapters */
manc = E1000_READ_REG(hw, E1000_MANC);
manc &= ~E1000_MANC_ARP_EN;
+ manc &= ~(E1000_MANC_RMCP_EN | E1000_MANC_0298_EN);
E1000_WRITE_REG(hw, E1000_MANC, manc);

E1000_WRITE_REG(hw, E1000_IMC, 0xffffffff);

If you can point me to the propper place or way to effect this. I
can see situations where someone would not want to turn this filtering
off - if they have the IPMI daughterboard on their motherboard.

Ian

--
Ian Freislich

_______________________________________________
freebsd-current@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: How do YOU react to being cut up?
    ... Intent to do what, exactly? ... It's only intended for the tailgating driver behind me. ... You're not doing it just to be safe, ...
    (uk.rec.driving)
  • Re: You have the Right to Drive Safely
    ... One may only exercise their Rights in a safe ... claim that driving skills were "innate". ... assumes virtually everyone has a safe driver ... attitude rather than a skill. ...
    (rec.autos.driving)
  • Re: Return of the eminent Josiah Jenkins, Esq. (was : Smarter Scots)
    ... and a safe journey--heed the words of Confucius: ... "Voyage of thousand miles begin with single step" so hit the road! ... and I'll need to go and pick it up sometime this month from Germany ... By this you can recognise driver from the continent on their first drive ...
    (soc.culture.scottish)
  • Re: tolls and parking charges opps!
    ... speed limits is that they're so low in most places that it is perfectly safe ... But that's not what it means in practice, due to the lowest common ... driver to exercise his own judgement in determing the safe speed according ... The lowest common denominator mentality has its ...
    (uk.rec.walking)
  • Re: Criminal With A Badge In Iron County Utah
    ... >>Because you are not a professional race driver, ... you don't have the qualifications to determine what is a ... >qualified to determine what is a safe speed for me. ...
    (rec.outdoors.rv-travel)