new arp code snapshot for review...

Doug Rabson dfr at nlsystems.com
Tue May 18 06:10:14 PDT 2004


On Tue, 2004-05-18 at 09:48, Luigi Rizzo wrote:
> I will try to remove as many assumptions as possible.
> thanks for the feedback.

I think that in your prototype, the only assumption was in struct
llentry. I would suggest defining it as something like:

struct llentry {
        struct llentry *lle_next;
        struct mbuf     *la_hold;
        uint16_t        flags; /* see values in if_ether.h */
        uint8_t         la_preempt;
        uint8_t         la_asked;
        time_t          expire;
        struct in_addr  l3_addr;
	uint8_t		ll_addr[0];
};

Where the allocation of them uses something like 'malloc(sizeof(struct
llentry) + ifp->if_addrlen)'.





More information about the freebsd-current mailing list