MCPcopy Create free account
hub / github.com/F-Stack/f-stack / lltable_set_entry_addr

Function lltable_set_entry_addr

freebsd/net/if_llatbl.c:308–318  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

306}
307
308void
309lltable_set_entry_addr(struct ifnet *ifp, struct llentry *lle,
310 const char *linkhdr, size_t linkhdrsize, int lladdr_off)
311{
312
313 memcpy(lle->r_linkdata, linkhdr, linkhdrsize);
314 lle->r_hdrlen = linkhdrsize;
315 lle->ll_addr = &lle->r_linkdata[lladdr_off];
316 lle->la_flags |= LLE_VALID;
317 lle->r_flags |= RLLE_VALID;
318}
319
320/*
321 * Tries to update @lle link-level address.

Callers 6

in_arpinputFunction · 0.85
in_lltable_allocFunction · 0.85
in6_lltable_allocFunction · 0.85
nd6_cache_lladdrFunction · 0.85
lla_rt_outputFunction · 0.85

Calls 1

memcpyFunction · 0.50

Tested by

no test coverage detected