eine kleine reminder

Eddie Kohler eddietwo at cag.lcs.mit.edu
Thu Jul 27 12:18:18 EDT 2000


One more thing -- you only need to call p->uniqueify() once per packet per
element, because the packet can't get shared until you pass it to another
element.

NOT NECESSARY:
	p = p->uniqueify();
	memcpy(p->data(), "xxx", 3);
	p = p->uniqueify();
	memcpy(p->data() + 10, "yyyy", 5);

THIS IS FINE:
	p = p->uniqueify();
	memcpy(p->data(), "xxx", 3);
	memcpy(p->data() + 10, "yyyy", 5);

love,
ed



More information about the click mailing list