]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Simplify if (lladdr) condition in nd6_cache_lladdr():
authormelifaro <melifaro@FreeBSD.org>
Sun, 4 Oct 2015 12:42:07 +0000 (12:42 +0000)
committermelifaro <melifaro@FreeBSD.org>
Sun, 4 Oct 2015 12:42:07 +0000 (12:42 +0000)
commit78672053553cdd4f366badf1c185c7b75d5eb6a5
treef6ad3475f63ea22f9e3a6ed2bd34b234c9e0d202
parent707e8db7f896a73ccaf66fc93eb2c33f822c9596
Simplify if (lladdr) condition in nd6_cache_lladdr():
  For case (7) (new entry) nothing has to be done except lle_event.
  Invoke this event directly from "create new lle" code block.
  For case (4) (existing entry, same mac) useless mac update was performed,
  along with LLENTRY_RESOLVED lle_event. There was no sense in doing that,
  since nothing really had changed. Simply avoid this condition instead.
  Given that, condition was simplified to (3),(5) states which can be merged
  with previous block.
sys/netinet6/nd6.c