lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] [patch #8994] dhcp: add support for vendor specific options


From: Jan Breuer
Subject: [lwip-devel] [patch #8994] dhcp: add support for vendor specific options 43 and 60
Date: Tue, 24 May 2016 10:48:34 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36

Follow-up Comment #7, patch #8994 (project lwip):

> So the only real fix would be to statically allocate a maximum-sized buffer,
I guess...

It can be hunderds of bytes. Thats a waste of RAM. There is no need to keep
the vendor specific data buffer in memory after processing.

> Hmm, that's not a good reason to do it in lwIP. The problem is that a) you
reserve the buffer for all netifseven if not used (also the loopback netif or
PPP) and b) you need the buffer for every netif, even if you probably request
the same vendor id on all netifs

I forget loopback, PPP and multi-netif! So it needs to be done differently. It
should be buffer managed by the user and all DHCPs should have const ptr to
it.

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?8994>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]