在 2007-3-20,下午8:[EMAIL PROTECTED] 写道:

Send freebsd-net mailing list submissions to
        freebsd-net@freebsd.org

To subscribe or unsubscribe via the World Wide Web, visit
        http://lists.freebsd.org/mailman/listinfo/freebsd-net
or, via email, send a message with subject or body 'help' to
        [EMAIL PROTECTED]

You can reach the person managing the list at
        [EMAIL PROTECTED]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of freebsd-net digest..."


Today's Topics:

   1. Re: Wireshark (Shteryana Shopova)
   2. Interface index hack in IP_ADD_MEMBERSHIP (Bruce M Simpson)
   3. Re: Interface index hack in IP_ADD_MEMBERSHIP (Eugene Grosbein)
   4. Re: [PATCH] bge(4) patch for -STABLE (Pete French)
   5. Re: Interface index hack in IP_ADD_MEMBERSHIP (Bruce M Simpson)
   6. Re: rc.order wrong (ipfw) (Doug Barton)
   7. Re: Wireshark (Randall Stewart)
   8. Re: [PATCH] bge(4) patch for -STABLE (Mike Tancsa)
   9. Re: [PATCH] bge(4) patch for -STABLE (Pete French)
  10. [PATCH] Multicast refcounting in network stack (Bruce M Simpson)
  11. Re: [PATCH] Multicast refcounting in network stack
      (Andre Oppermann)
  12. Re: netisr_direct (Keith Arner)
  13. networking code and splx() (Ignacio Rey)
  14. Re: rc.order wrong (ipfw) (David Gilbert)
  15. Re: networking code and splx() (Julian Elischer)
  16. Re: networking code and splx() (Bruce M. Simpson)
  17. Re: PMTU Discovery support (Kevin Lahey)
  18. Re: PMTU Discovery support (Kevin Lahey)
  19. Re: PMTU Discovery support (Bruce M. Simpson)
  20. Re: [PATCH] Multicast refcounting in network stack
      (Bruce M Simpson)
  21. ifstated behavior (Alexandre Biancalana)
  22. Re: networking code and splx() (John Hay)
  23. Re: networking code and splx() (Eygene Ryabinkin)
  24. "em" driver shuts down interface when "ifconfig media
      100baseTX" is        invoked (Infraservice hostmaster)


----------------------------------------------------------------------

Message: 1
Date: Mon, 19 Mar 2007 14:25:49 +0200
From: "Shteryana Shopova" <[EMAIL PROTECTED]>
Subject: Re: Wireshark
To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
Cc: Max Laier <[EMAIL PROTECTED]>, freebsd-net@freebsd.org
Message-ID:
        <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=UTF-8; format=flowed

On 3/19/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Max, correct me if I'm wrong but tcpdump will only give you the headers, is that correct? This is fine most of the time but sometimes I need to capture full frames.

Nope - that's not correct -

#tcpdump -s 0

will capture full frames.

Shteryana


Thanks
Manuel Ochoa   CCNP MCSA MCSE MCDBA




----- Original Message ----
From: Max Laier <[EMAIL PROTECTED]>
To: freebsd-net@freebsd.org
Cc: [EMAIL PROTECTED]
Sent: Saturday, March 17, 2007 2:05:06 PM
Subject: Re: Wireshark


On Saturday 17 March 2007 19:16, [EMAIL PROTECTED] wrote:
Can someone please explain the difference between Wireshark and
Wireshark-lite. I would like to install a packet sniffer on my FreeBSD
box for CLI only. Thanks,

What's wrong with tcpdump(8)? Other than that building either the real or
the -lite version with "WITHOUT_X11" defined will get you the
cli-version. "-lite" seems to just disable a couple of dissectors that
have a lot of external dependencies.

--
/"\  Best regards,                      | [EMAIL PROTECTED]
\ /  Max Laier                          | ICQ #67774661
X   http://pf4freebsd.love2party.net/  | [EMAIL PROTECTED]
/ \  ASCII Ribbon Campaign              | Against HTML Mail and News



_____________________________________________________________________ _______________
Expecting? Get great news right away with email Auto-Check.
Try the Yahoo! Mail Beta.
http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html
_______________________________________________
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net- [EMAIL PROTECTED]"



------------------------------

Message: 2
Date: Mon, 19 Mar 2007 14:28:52 +0000
From: Bruce M Simpson <[EMAIL PROTECTED]>
Subject: Interface index hack in IP_ADD_MEMBERSHIP
To: [EMAIL PROTECTED]
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Hi,

I plan to get rid of the ugly little ip_multicast_if() hack in the IP
stack.=
Before I do, is anyone actually using this?

RFC 3678 specifies a protocol independent API for socket group
memberships which allow joins on interfaces referenced by index. This is
intended to support IGMPv3 and MLDv2.

Regards,
BMS




------------------------------

Message: 3
Date: Mon, 19 Mar 2007 22:28:37 +0700
From: Eugene Grosbein <[EMAIL PROTECTED]>
Subject: Re: Interface index hack in IP_ADD_MEMBERSHIP
To: Bruce M Simpson <[EMAIL PROTECTED]>
Cc: [EMAIL PROTECTED]
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=us-ascii

On Mon, Mar 19, 2007 at 02:28:52PM +0000, Bruce M Simpson wrote:

I plan to get rid of the ugly little ip_multicast_if() hack in the IP
stack.=
Before I do, is anyone actually using this?

RFC 3678 specifies a protocol independent API for socket group
memberships which allow joins on interfaces referenced by index. This is
intended to support IGMPv3 and MLDv2.

I recall that routed and ripd used to utilize something similar
long time ago. I'm not sure if they have switched to another API.

Eugene


------------------------------

Message: 4
Date: Mon, 19 Mar 2007 16:28:58 +0000
From: Pete French <[EMAIL PROTECTED]>
Subject: Re: [PATCH] bge(4) patch for -STABLE
To: freebsd-net@FreeBSD.org, [EMAIL PROTECTED]
Cc: freebsd-stable@FreeBSD.org
Message-ID: <[EMAIL PROTECTED]>

I have made bge(4) patch for -STABLE (sorry, not suitable for
RELENG_6_2):

What dates stable is this relative to ? I am trying to apply your
patch to a cvsup of stable pulled on the day/time you sent your email,
but parts of it are failing for me unfortunately. I would like to test this
as I have a nmuber of bge interfaces running on some systems.

-pete.


------------------------------

Message: 5
Date: Mon, 19 Mar 2007 16:51:29 +0000
From: Bruce M Simpson <[EMAIL PROTECTED]>
Subject: Re: Interface index hack in IP_ADD_MEMBERSHIP
To: Eugene Grosbein <[EMAIL PROTECTED]>
Cc: [EMAIL PROTECTED]
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Eugene Grosbein wrote:

I recall that routed and ripd used to utilize something similar
long time ago. I'm not sure if they have switched to another API.

You're right -- this would break routed on point-to-point interfaces.

They didn't, unless it was updated at the upstream, i.e. rhyolite.com.

This means that the RFC1724 hack can't be safely deprecated without
breaking this use case, until routed is updated to use the RFC 3678
protocol-independent ASM API.

Linux uses a slightly different technique to work-around this; ip_mreq
is expanded to ip_mreqn internally, and the interface index is
explicitly passed around in the kernel.

The blocker in the FreeBSD case which prevents us simply adopting this
is the source interface selection logic in ip_output().

Regards,
BMS


------------------------------

Message: 6
Date: Mon, 19 Mar 2007 10:03:42 -0700
From: Doug Barton <[EMAIL PROTECTED]>
Subject: Re: rc.order wrong (ipfw)
To: Kian Mohageri <[EMAIL PROTECTED]>
Cc: freebsd-net@freebsd.org, Mark Andrews <[EMAIL PROTECTED]>,
        [EMAIL PROTECTED]
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Kian Mohageri wrote:

After re-reading your original idea, I think I understand a little
better what you mean to do. For clarification, are you proposing that the [early] firewall scripts do nothing if firewall_late_enable=YES, and then have all firewalling taken care of later in the boot process (i.e.
post-networking) by firewall_late?

I think I might have misunderstood your original proposal:)

I think so too. :) To be clear, what I'm suggesting is that we move
ipfw and pf to a spot in the rcorder that is ahead of netif, along
with ipfilter which is already there. I am not suggesting that we
change their functionality, just the ordering. As a completely
separate thing (although they could be done at the same time) I am
suggesting _adding_ a new script for "late" firewall rules (where
"late" is defined as after netif) so that people who want to do
firewall-related things that require netif (like cloned interfaces,
FQDN rules, etc.) will have a standard way to accomplish that.

Thanks for the opportunity to clarify,

Doug

--

     This .signature sanitized for your protection



------------------------------

Message: 7
Date: Mon, 19 Mar 2007 13:41:21 -0400
From: Randall Stewart <[EMAIL PROTECTED]>
Subject: Re: Wireshark
To: Shteryana Shopova <[EMAIL PROTECTED]>
Cc: Max Laier <[EMAIL PROTECTED]>,        "[EMAIL PROTECTED]"
        <[EMAIL PROTECTED]>, freebsd-net@freebsd.org
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Shteryana Shopova wrote:
On 3/19/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Max, correct me if I'm wrong but tcpdump will only give you the
headers, is that correct? This is fine most of the time but sometimes
I need to capture full frames.

Nope - that's not correct -

#tcpdump -s 0

will capture full frames.

But nothing IMO beats wireshark for being able
to go in and analyze a dump .. searching on various
condition's fields etc..

It does not matter to me generally how its collected
wireshark/tcpdump -s 0..

But to analyze it.. give me wireshark any day :-D

R


--
Randall Stewart
NSSTG - Cisco Systems Inc.
803-345-0369 <or> 803-317-4952 (cell)


------------------------------

Message: 8
Date: Mon, 19 Mar 2007 13:51:48 -0400
From: Mike Tancsa <[EMAIL PROTECTED]>
Subject: Re: [PATCH] bge(4) patch for -STABLE
To: Pete French <[EMAIL PROTECTED]>,
        freebsd-net@freebsd.org,        [EMAIL PROTECTED]
Cc: freebsd-stable@freebsd.org
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="us-ascii"; format=flowed

At 12:28 PM 3/19/2007, Pete French wrote:
I have made bge(4) patch for -STABLE (sorry, not suitable for
RELENG_6_2):

What dates stable is this relative to ? I am trying to apply your
patch to a cvsup of stable pulled on the day/time you sent your email, but parts of it are failing for me unfortunately. I would like to test this
as I have a nmuber of bge interfaces running on some systems.

Mine applied cleanly to sources from last Friday.  So far so good for
me in that I have not yet seen the watchdog timeout (previously once
every 4 days or so) but its too early to tell.  Still, I have not
seen any regressions with it yet since installing it last
Saturday.  This is a fairly busy recursive DNS server

         ---Mike



------------------------------

Message: 9
Date: Mon, 19 Mar 2007 18:08:23 +0000
From: Pete French <[EMAIL PROTECTED]>
Subject: Re: [PATCH] bge(4) patch for -STABLE
To: freebsd-net@freebsd.org, [EMAIL PROTECTED], [EMAIL PROTECTED]
Cc: freebsd-stable@freebsd.org
Message-ID: <[EMAIL PROTECTED]>

Mine applied cleanly to sources from last Friday.

O.K., that works (now I have the correct date in my supfile). Will
give it a shot...

-pete.


------------------------------

Message: 10
Date: Mon, 19 Mar 2007 18:52:32 +0000
From: Bruce M Simpson <[EMAIL PROTECTED]>
Subject: [PATCH] Multicast refcounting in network stack
To: freebsd-net@freebsd.org
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Hi,

A patch against -CURRENT is now available:
    http://people.freebsd.org/~bms/dump/multi_refcounting.diff

This is a fairly sweeping architectural change which should resolve
memory leaks and potential panics with the network stack as a whole, to
better support interface detach at runtime.

I'd like to check it in as soon as possible as it fixes the root cause
of the problems we have had with carp and pfsync in our stack. NetBSD
has implemented refcounting like this for some time now, so it does not
suffer from the same problems.

Regards,
BMS


------------------------------

Message: 11
Date: Mon, 19 Mar 2007 20:11:56 +0100
From: Andre Oppermann <[EMAIL PROTECTED]>
Subject: Re: [PATCH] Multicast refcounting in network stack
To: Bruce M Simpson <[EMAIL PROTECTED]>
Cc: freebsd-net@freebsd.org
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Bruce M Simpson wrote:
Hi,

A patch against -CURRENT is now available:
   http://people.freebsd.org/~bms/dump/multi_refcounting.diff

This is a fairly sweeping architectural change which should resolve
memory leaks and potential panics with the network stack as a whole, to
better support interface detach at runtime.

I'd like to check it in as soon as possible as it fixes the root cause
of the problems we have had with carp and pfsync in our stack. NetBSD
has implemented refcounting like this for some time now, so it does not
suffer from the same problems.

Patch looks good.  :-)

--
Andre



------------------------------

Message: 12
Date: Mon, 19 Mar 2007 15:54:55 -0400
From: "Keith Arner" <[EMAIL PROTECTED]>
Subject: Re: netisr_direct
To: "Robert Watson" <[EMAIL PROTECTED]>
Cc: [EMAIL PROTECTED]
Message-ID:
        <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

On 3/11/07, Robert Watson <[EMAIL PROTECTED]> wrote:


There are several ways we could start to reduce contention on that lock:

(3) Move towards greater granularity of locking for the tcbinfo: instead
of
     a single mutex, move to more than one locks, so that different
connections
processed simultaneously are likely to involve different locks. For
     listen sockets, we would have to have a special case, such as a
single
lock to serialize simultaneous lock acquisitions of multiple chain
locks
     (for example).


I've been thinking about this approach, and it does sound like the simplest
to
implement of the three proposed. However, the special case of the listen
socket
seems like it would complicate matters.

It seems to me, however, that the complication of the listen socket could be
simplified
if the listen sockets were maintained in a separate pcb list from the rest
of the TCP
sockets (the fully connected sockets). If the two types of sockets were
thus separated,
the code would acquire the lock on the bucket in the connect hash, and
search the connect
hash; if there was a miss, acquire the lock on the listen list and then
search the listen list.

The lock on the listen list should follow the locks on the connect buckets
in the locking
order. The connection bucket should be locked first, as delivery of data
would be
the common case. To create a new connection in the tcp_input path, both the
connect
bucket and the listen list would need to be locked (connect bucket as a new
entry would
be added to the list, and listen list as the accept socket would be
protected from going away).

Keith


------------------------------

Message: 13
Date: Mon, 19 Mar 2007 20:37:09 +0100
From: Ignacio Rey <[EMAIL PROTECTED]>
Subject: networking code and splx()
To: freebsd-net@freebsd.org
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=US-ASCII

Hello everyone,

I'm studying a bit the FreeBSD networking code.

I've read "TCP/IP illustrated vol 2" by G. R. Wright and W. R. Stevens,
which describes code in 4.4BSD-lite.

Now I'm taking a look at FreeBSD 6.2 release. Some things are different,
many others kept the same. What I'm confused about is that in 4.4BSD
there are many calls to the splx() family of functions, and I didn't see any of them in the networking code in FreeBSD. However the 'grep' program
showed me that they are used in other parts of the kernel.


The question is: Have calls to these functions been wrapped? or are they
simply not used in this context?


Thanks in advance,

Ignacio


------------------------------

Message: 14
Date: Mon, 19 Mar 2007 15:12:52 -0500
From: David Gilbert <[EMAIL PROTECTED]>
Subject: Re: rc.order wrong (ipfw)
To: Doug Barton <[EMAIL PROTECTED]>
Cc: freebsd-net@freebsd.org, Mark Andrews <[EMAIL PROTECTED]>,    Kian
        Mohageri <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=us-ascii

"Doug" == Doug Barton <[EMAIL PROTECTED]> writes:

Doug> Kian Mohageri wrote:
I agree VERY MUCH with this sort of approach.  It would be a much
cleaner solution than completely separate handling of all of these
different problems.  I'm trying to get an idea of what all of the
major problems with the current order are, and these are the ones
I'm aware of:

- ipfw blocks by default (names unresolvable, rtsol breaks) -
ipf/pf pass by default (services are unprotected)

I think a firewall_boot script (similar to what you've proposed)
could potentially solve all of these problems.

Doug> exception, not the rule.  Furthermore (and I'm betraying a
Doug> prejudice here) I think that firewall rules that rely on name
Doug> resolution are absolutely nuts, and I say that with many years
Doug> of experience as a professional DNS and system administrator.

I think you're misreading the above.  The poster is saying that
because ipfw's default behaviour is block, loading it at the wrong
time can break other startup items because they require name
resolution or the sending of packets (rtsol).

Dave.

--
====================================================================== ====== |David Gilbert, Independent Contractor. | Two things can be | |Mail: [EMAIL PROTECTED] | equal if and only if they | |http://daveg.ca | are precisely opposite. | =========================================================GLO========== ======


------------------------------

Message: 15
Date: Mon, 19 Mar 2007 13:23:17 -0700
From: Julian Elischer <[EMAIL PROTECTED]>
Subject: Re: networking code and splx()
To: Ignacio Rey <[EMAIL PROTECTED]>
Cc: freebsd-net@freebsd.org
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Ignacio Rey wrote:
Hello everyone,

I'm studying a bit the FreeBSD networking code.

I've read "TCP/IP illustrated vol 2" by G. R. Wright and W. R. Stevens,
which describes code in 4.4BSD-lite.

Now I'm taking a look at FreeBSD 6.2 release. Some things are different,
many others kept the same. What I'm confused about is that in 4.4BSD
there are many calls to the splx() family of functions, and I didn't see any of them in the networking code in FreeBSD. However the 'grep' program
showed me that they are used in other parts of the kernel.

There was a major change in the way that synchronization was done bewteen FreeBSD 4.x
and FreeBSD 5.X.
The changes were to support real multiprocessor operation and were extensive. The 'spl" method of operation was only able to protect operation on a single CPU.

You should probably get a copy of "The design of the FreeBSD (um 5.2 I think)
Operating System by Kirk McKusick and George Neville-Neil.
It goes into some of the changes. (many changes have happenned since then too).
the New locking largely depends on Mutexes.



The question is: Have calls to these functions been wrapped? or are they
simply not used in this context?


Thanks in advance,

Ignacio
_______________________________________________
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net- [EMAIL PROTECTED]"



------------------------------

Message: 16
Date: Mon, 19 Mar 2007 22:14:33 +0000
From: "Bruce M. Simpson" <[EMAIL PROTECTED]>
Subject: Re: networking code and splx()
To: Ignacio Rey <[EMAIL PROTECTED]>
Cc: freebsd-net@freebsd.org
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Ignacio Rey wrote:
...
The question is: Have calls to these functions been wrapped? or are they
simply not used in this context?

splx() and friends have been no-ops since FreeBSD 5.x was branched.
Synchronization is now done using other mechanisms such as mutexes and
spin locks. See the new man page locking(9) in -CURRENT.

Regards,
BMS


------------------------------

Message: 17
Date: Mon, 19 Mar 2007 14:54:22 -0700
From: Kevin Lahey <[EMAIL PROTECTED]>
Subject: Re: PMTU Discovery support
To: freebsd-net@freebsd.org
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=US-ASCII

On Tue, 6 Mar 2007 10:35:42 +0530
"aditya kiran" <[EMAIL PROTECTED]> wrote:

RFC 1191 says to increase the PMTU at some itnerval (15 minutes default)

10 minutes.

next time a packet is sent, this will be used... and if PMTU is really
increased,
no ICMP error will be recieved. that shows an increase in the PMTU. I'm
trying to
understand if this mechanism is there in freebsd. any on this is appreicated

It looks to me as though FreeBSD stores per-host MTU data in the
hostcache, which gets purged after five minutes of inactivity.  If
that's actually how it works, then, yes, FreeBSD should indeed
periodically probe for larger PMTUs.

Of course, the real test is to set up a few hosts and see what
happens, rather than speculating based on a quick perusal of the
code. :-)

Kevin
[EMAIL PROTECTED]


------------------------------

Message: 18
Date: Mon, 19 Mar 2007 17:21:56 -0700
From: Kevin Lahey <[EMAIL PROTECTED]>
Subject: Re: PMTU Discovery support
To: freebsd-net@freebsd.org
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=US-ASCII

On Mon, 19 Mar 2007 14:54:22 -0700
Kevin Lahey <[EMAIL PROTECTED]> wrote:

Of course, the real test is to set up a few hosts and see what
happens, rather than speculating based on a quick perusal of the
code. :-)

After my slap-dash read of the current FreeBSD code, I was a little
concerned that I'd missed something.  As penance, I set up a quick
experiment with four hosts connected in a line, A <-> B <-> C <-> D,
set the MTU on the links from B to C to 512, and ran ttcp from A to D.
PMTUD worked correctly.  Then I suspended the ttcp process, went away
for an hour, and resumed it. Watching tcpdump, it appears that 512
octet packets continued to be sent, with no attempt at probing.

That would seem to be a bug.

The boxes were running FreeBSD-6.1, but I can't really vouch for the
particular kernel configuration.  It could well be that the problem is
with the loose nut behind the wheel, rather than with FreeBSD. :-)

Kevin
[EMAIL PROTECTED]


------------------------------

Message: 19
Date: Tue, 20 Mar 2007 01:47:27 +0000
From: "Bruce M. Simpson" <[EMAIL PROTECTED]>
Subject: Re: PMTU Discovery support
To: Kevin Lahey <[EMAIL PROTECTED]>
Cc: freebsd-net@freebsd.org
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Kevin Lahey wrote:

The boxes were running FreeBSD-6.1, but I can't really vouch for the
particular kernel configuration. It could well be that the problem is
with the loose nut behind the wheel, rather than with FreeBSD. :-)


I believe PMTU measurements may only be relied upon for active TCP
connections, but it's been a while since I read this code.

It would be useful if non-TCP drivers such as gre(4) could be extended
to perform PMTU discovery and auto-tune their MTU based on this, as
manually setting the MTU is a bit random and can result in horrible
fragmentation when going across the big-I Internet.

I imagine doing this would require changes to the icmp input path and a
bit of abstraction.

Regards,
BMS


------------------------------

Message: 20
Date: Tue, 20 Mar 2007 01:48:00 +0000
From: Bruce M Simpson <[EMAIL PROTECTED]>
Subject: Re: [PATCH] Multicast refcounting in network stack
To: Andre Oppermann <[EMAIL PROTECTED]>
Cc: freebsd-net@freebsd.org
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Andre Oppermann wrote:
  http://people.freebsd.org/~bms/dump/multi_refcounting.diff
Patch looks good.  :-)
Committed, with some changes.

Regards,
BMS


------------------------------

Message: 21
Date: Tue, 20 Mar 2007 00:22:55 -0300
From: Alexandre Biancalana <[EMAIL PROTECTED]>
Subject: ifstated behavior
To: freebsd-net@freebsd.org
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Hi list,

First, excuse-me by the off-topic message, I asked this on - questions
but I don't have any answer.

  I'm trying to setup ifstated to check two links and if some go down,
do some actions like change pf rules and machine's route.

My doubt is about the execution order/repetition of the states body of
ifstated.conf, in all configs that I tried just the last check is
executed always, follow and example:

ifstated.conf:
==============================
loglevel debug

ping1 = '( "ping -q -c 1 -t 3 www.site1.com <http://www.site1.com> >
/dev/null" every 10 ) '
ping2 = '( "ping -q -c 1 -t 3 www.site2.com <http://www.site2.com> >
/dev/null" every 10 ) '

state one {
        if ! ( $ping1 && $ping2 ) {
                set-state two
        }
}

state two {

        init {
                run "logger -p console.notice -t ifstated 'Restarting
network !'"
        }

        if ( $ping && $ping2 ) {
                set-state one
        }
}

==============================

# ifstated -dv
ping1 = "( "ping -q -c 1 -t 3 www.site1.com <http://www.site1.com> >
/dev/null" every 10 ) "
ping2 = "( "ping -q -c 1 -t 3 www.site2.com <http://www.site2.com> >
/dev/null" every 10 ) "
ifstated: initial state: one
ifstated: changing state to one
ifstated: running ping -q -c 1 -t 3 www.site1.com <http:// www.site1.com>
/dev/null
ifstated: running ping -q -c 1 -t 3 www.site2.com <http:// www.site2.com>
/dev/null
ifstated: started
ifstated: changing state to two
ifstated: running ping -q -c 1 -t 3 www.site1.com <http:// www.site1.com>
/dev/null
ifstated: running ping -q -c 1 -t 3 www.site2.com <http:// www.site2.com>
/dev/null
ifstated: running ping -q -c 1 -t 3 www.site2.com <http:// www.site2.com>
/dev/null
ifstated: running ping -q -c 1 -t 3 www.site2.com <http:// www.site2.com>
/dev/null


As you can see, after change state ifstated execute only the *last*
check command of the statement (ping2) forever....

This is the expected behavior ?

I'm running 6-STABLE + ifstated-20050505 (instaled via
/usr/ports/net/ifstated)

Thanks for any help.

Alexandre


------------------------------

Message: 22
Date: Tue, 20 Mar 2007 09:31:50 +0200
From: John Hay <[EMAIL PROTECTED]>
Subject: Re: networking code and splx()
To: "Bruce M. Simpson" <[EMAIL PROTECTED]>
Cc: freebsd-net@freebsd.org
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=us-ascii

On Mon, Mar 19, 2007 at 10:14:33PM +0000, Bruce M. Simpson wrote:
Ignacio Rey wrote:
...
The question is: Have calls to these functions been wrapped? or are they
simply not used in this context?

splx() and friends have been no-ops since FreeBSD 5.x was branched.
Synchronization is now done using other mechanisms such as mutexes and
spin locks. See the new man page locking(9) in -CURRENT.

It does not seem to get installed:

Doing a grep for locking in /usr/src/share/man/man9/Makefile produce
nothing.

John
--
John Hay -- [EMAIL PROTECTED] / [EMAIL PROTECTED]


------------------------------

Message: 23
Date: Tue, 20 Mar 2007 10:40:51 +0300
From: Eygene Ryabinkin <[EMAIL PROTECTED]>
Subject: Re: networking code and splx()
To: John Hay <[EMAIL PROTECTED]>
Cc: freebsd-net@freebsd.org, "Bruce M. Simpson" <[EMAIL PROTECTED]>
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=koi8-r

John, good day.

Tue, Mar 20, 2007 at 09:31:50AM +0200, John Hay wrote:

splx() and friends have been no-ops since FreeBSD 5.x was branched.
Synchronization is now done using other mechanisms such as mutexes and
spin locks. See the new man page locking(9) in -CURRENT.

It does not seem to get installed:

The locking.9 is not the part of the current build as the comment
of the initial commit of that file says.

Doing a grep for locking in /usr/src/share/man/man9/Makefile produce
nothing.

But if you're running -CURRENT, then you can view the page from
the sources (assuming that you have the system sources in /usr/src/):
$ groff -Tascii -mandoc /usr/src/share/man/man9/locking.9 | less

Our you can download the locking.9 from
    http://www.freebsd.org/cgi/cvsweb.cgi/src/share/man/man9/locking.9
--
Eygene


------------------------------

Message: 24
Date: Tue, 20 Mar 2007 04:19:55 -0400 (EDT)
From: Infraservice hostmaster <[EMAIL PROTECTED]>
Subject: "em" driver shuts down interface when "ifconfig media
        100baseTX" is      invoked
To: freebsd-net@freebsd.org
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=us-ascii


FreeBSD cg-gw 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #10: Tue Jan 16 01:40:27 EST 2007 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/FW-YQ i386


I did:
"ifconfig em2 media 100baseTX mediaopt full-duplex"

ifconfig em2 now reports:
...
media: Ethernet 100baseTX <full-duplex> (autoselect)
status: no carrier

"ifconfig em2 media 100baseTX" also does this


We tried it on 2 different 100baseTX interfaces with the same result

"ifconfig em2 media autonegotiate" brings the interface back up


It doesn't seem to happen on another interface which autonegotiates
10baseT half-duplex, however


This seems to indicate there might be a driver problem since
the 2 interfaces connect to very different kinds of equipment


Any suggestions?



------------------------------

_______________________________________________
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

End of freebsd-net Digest, Vol 207, Issue 2
*******************************************

_______________________________________________
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to