Re: [lwip-users] LLDP Implementation for lwIP

2016-08-12 Thread Amit Ashara
Hello Simon, I call the LLDP transmit function lldp_raw(struct netif *netif, const struct eth_addr *ethsrc_addr) with the MAC address of the port. So if there are multiple ports each with its MAC address, then that can be resolved by the 2nd argument of the function. Also if we put the use restri

Re: [lwip-users] LLDP Implementation for lwIP

2016-08-12 Thread goldsimon
Amit Ashara wrote: LLDP can use the same MAC address as being used by lwIP. It is not mandated that they be different. No, but if you have more than one port, it's typical to have one MAC per port. This helps to tell which port of a switch a device is connected to, for example (e.g. used in

Re: [lwip-users] LPC1769 ethernet problem

2016-08-12 Thread goldsi...@gmx.de
Fotis Panagiotopoulos wrote: As I see in wireshark, when my microcontroller sends an ARP request about my gateway it does not receive any response. It continues sending the same request for about 30 secs (the time I wasn't seeing any UDP traffic), and then it starts sending the UDP packet. So

Re: [lwip-users] LPC1769 ethernet problem

2016-08-12 Thread Chris Williams
Quoting Fotis Panagiotopoulos : Look at the wireshark ARP packet: It should send to the broadcast MAC address (ff:ff:ff:ff:ff:ff) Look at your send MAC address. This should be valid. I have seen problems if your MAC address is 0. Chris. Well, it seems I narrowed down the problem. As I see i

Re: [lwip-users] LLDP Implementation for lwIP

2016-08-12 Thread Amit Ashara
Hello Sergio, Simon, I finally got the LLDP basic frame to work. I am able to send the LLDP frame out of my device and see the same correctly on the wire-shark. However, do be able to make a proper source code out of it, I would need advise. The fields of the LLDP are static and not expected to c

Re: [lwip-users] LPC1769 ethernet problem

2016-08-12 Thread Fotis Panagiotopoulos
Well, it seems I narrowed down the problem. As I see in wireshark, when my microcontroller sends an ARP request about my gateway it does not receive any response. It continues sending the same request for about 30 secs (the time I wasn't seeing any UDP traffic), and then it starts sending the UDP

Re: [lwip-users] PPP MPPE "Optional" Support

2016-08-12 Thread Greg Smith
Hi, Sylvain. > -Original Message- > From: lwip-users > On Behalf Of Sylvain Rochet > Sent: Thursday, 11 August 2016 19:05 > On Thu, Aug 11, 2016 at 12:48:19AM +, Greg Smith wrote: > > > > I have a follow-on question. Below I said I was able to connect with > > MSCHAPv2 or no authentic

Re: [lwip-users] LPC1769 ethernet problem

2016-08-12 Thread Fotis Panagiotopoulos
OK I bought a managed switch, so I can now monitor the traffic on my network correctly. I set up the port mirroring function, to forward all traffic from the ethernet port the uC is connected, to the port that my PC is connected. I started wireshark but the problems persist. First my code starts L

Re: [lwip-users] PPP MPPE "Optional" Support

2016-08-12 Thread Greg Smith
Hi, Sylvain. Thank you for all the follow-up documentation. I definitely agree that using the *_ANY option allows for downgrade attacks and makes security weak/non-existent. But that's the trouble with having to support legacy while also trying to push ahead, isn't it? > It was enough for wha

Re: [lwip-users] PPP MPPE "Optional" Support

2016-08-12 Thread Greg Smith
> -Original Message- > From: lwip-users > On Behalf Of Sylvain Rochet > Sent: Thursday, 11 August 2016 18:34 > On Wed, Aug 10, 2016 at 07:49:03PM -0400, Patrick Klos wrote: > > > > but if I remember correctly, the sequence of PPP negotiations is LCP > > (which negotiates if/which authentica