Kieran Mansley wrote: > Mason wrote: > >> struct netif *netif_add(struct netif *netif, ip_addr_t *ipaddr, ip_addr_t >> *netmask, >> ip_addr_t *gw, void *state, netif_init_fn init, netif_input_fn input) >> >> My network interface is supposed to be configured by DHCP, >> so I have no appropriate value for addr, gw, mask. > > There's plenty of people using lwIP with DHCP without problems,
Please note that I didn't say I had any problem with DHCP. I was merely pointing out that when one is using DHCP to dynamically configure an interface, one has no appropriate initial value for addr, mask, and gw. Therefore, it seems natural for netif_add to accept NULL for the addr, mask, and gw parameters. And, in fact, it does accept NULL for mask and gw, but it fails when addr is NULL, because code was added that dereferences addr before checking it. I was proposing a patch to fix this issue. Do I need to send patches to lwip-devel instead of lwip-users? -- Regards. _______________________________________________ lwip-users mailing list lwip-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/lwip-users