Am 03.04.2020 um 15:42 schrieb Massimiliano Cialdi:
> On Fri, Apr 3, 2020 at 12:55 PM goldsi...@gmx.de wrote:
>>> And, if I understand correctly, when the ip is static I don't even
>>> need to set the link down when cable is unconnected.
>> No, you should still set the link down if you can detect
On Fri, Apr 3, 2020 at 12:55 PM goldsi...@gmx.de wrote:
> > And, if I understand correctly, when the ip is static I don't even
> > need to set the link down when cable is unconnected.
> No, you should still set the link down if you can detect it. It's not
> required, but it might improve *some*
Am 03.04.2020 um 12:46 schrieb Massimiliano Cialdi:
> On Fri, Apr 3, 2020 at 1:28 AM Sylvain Rochet wrote:
>> netif_set_up() and netif_set_down() is a software switch telling the
>> lwIP stack if you want the interface to be active or silent. If you
>> don't need to disable an interface at
On Fri, Apr 3, 2020 at 1:28 AM Sylvain Rochet wrote:
> netif_set_up() and netif_set_down() is a software switch telling the
> lwIP stack if you want the interface to be active or silent. If you
> don't need to disable an interface at runtime (with only one interface,
> you never need that!), you
rHi Massimiliano,
On Fri, Apr 03, 2020 at 12:40:43AM +0200, Massimiliano Cialdi wrote:
> On Thu, Apr 2, 2020 at 11:25 PM Sylvain Rochet wrote:
> > "ip link set up/down" is interface administrative state.
> >
> > Link state is whether the cable is plugged or unplugged, i.e. "ethtool"
> > for
On Thu, Apr 2, 2020 at 11:25 PM Sylvain Rochet wrote:
> "ip link set up/down" is interface administrative state.
>
> Link state is whether the cable is plugged or unplugged, i.e. "ethtool"
> for linux equivalent.
This answer confuses me.
I tried: on linux the link state and the admin state
Hi Massimiliano,
On Thu, Apr 02, 2020 at 11:17:36PM +0200, Massimiliano Cialdi wrote:
> On Thu, Apr 2, 2020 at 8:33 PM goldsi...@gmx.de wrote:
> > "Admin state" is "netif_set_up()".
> >
> > > How should the admin state be affected by the link state?
> > Not at all. Just call
On Thu, Apr 2, 2020 at 8:33 PM goldsi...@gmx.de wrote:
> "Admin state" is "netif_set_up()".
>
> > How should the admin state be affected by the link state?
> Not at all. Just call "netif_set_link_up()" or down when you found out a
> state change. Leave "netif_set_up()" as it is.
what's the linux
Am 31.03.2020 um 22:47 schrieb Massimiliano Cialdi:
> On Tue, Mar 31, 2020 at 10:11 PM Simon Goldschmidt wrote:
>> You're mixing link state with admin state here. That might work, but
>> might not work in some situations.
> It's not so clear to me.
> Which pattern should I adopt to keep the link
On Tue, Mar 31, 2020 at 10:11 PM Simon Goldschmidt wrote:
> You're mixing link state with admin state here. That might work, but
> might not work in some situations.
It's not so clear to me.
Which pattern should I adopt to keep the link status under control?
What do you mean by 'admin state'?
How
On 31.03.2020 21:34, Massimiliano Cialdi wrote:
I have a process that polls the PHY to find out if the link is up or
down. It calls netif_set_link_up()/netif_set_link_down(). I also have
the link callback calling netif_set_up()/netif_set_down().
You're mixing link state with admin state
I have a process that polls the PHY to find out if the link is up or
down. It calls netif_set_link_up()/netif_set_link_down(). I also have
the link callback calling netif_set_up()/netif_set_down().
I wonder what happens if the functions:
conn = netconn_new(NETCONN_UDP);
netconn_bind(conn,
12 matches
Mail list logo