Mason <[email protected]> wrote: > I don't think it's possible to use mem_malloc as a packet > buffer allocator, as there are other types of uses, e.g. > > dhcp = (struct dhcp *)mem_malloc(sizeof(struct dhcp)); > autoip = (struct autoip *)mem_malloc(sizeof(struct autoip));
These can be avoided by calling the appropriate init function where you can pass a preallocated struct dhcp/autoip. > What I'd like is to be able to "redirect" pbuf_alloc to use > my buffer allocator, but the pbuf struct and the payload buffer > would not be contiguous, which violates the implicit assumptions > of PBUF_RAM pbufs, IIUC. Well, that doesn't work, obviously. I thought you could place both the payload and the struct pbuf into your memory... BTW: I can't get my old ARM board running, so unfortunately, I can't test zero-copy on any hardware right now. :-( Simon _______________________________________________ lwip-users mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/lwip-users
