diff options
author | melifaro <melifaro@FreeBSD.org> | 2015-11-07 11:12:00 +0000 |
---|---|---|
committer | melifaro <melifaro@FreeBSD.org> | 2015-11-07 11:12:00 +0000 |
commit | 595bcb4ce105d94c91a9045beea8a59ae9a64f39 (patch) | |
tree | 814c7d157de580df906def7cdb0e62992bf93266 /sys/net/if_llatbl.c | |
parent | c2f5f67bd969f6441e91fc8cb611561eaef8426c (diff) | |
download | FreeBSD-src-595bcb4ce105d94c91a9045beea8a59ae9a64f39.zip FreeBSD-src-595bcb4ce105d94c91a9045beea8a59ae9a64f39.tar.gz |
Unify setting lladdr for AF_INET[6].
Diffstat (limited to 'sys/net/if_llatbl.c')
-rw-r--r-- | sys/net/if_llatbl.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/net/if_llatbl.c b/sys/net/if_llatbl.c index dbb9653..1c16b2d 100644 --- a/sys/net/if_llatbl.c +++ b/sys/net/if_llatbl.c @@ -277,6 +277,15 @@ lltable_drop_entry_queue(struct llentry *lle) return (pkts_dropped); } +void +lltable_set_entry_addr(struct ifnet *ifp, struct llentry *lle, + const char *lladdr) +{ + + bcopy(lladdr, &lle->ll_addr, ifp->if_addrlen); + lle->la_flags |= LLE_VALID; +} + /* * * Performes generic cleanup routines and frees lle. |