netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* ipv6: Should inet6_addr_del consider IFA_F_MANAGETEMPADDR?
@ 2014-04-08 18:26 Heiner Kallweit
  2014-04-08 19:08 ` Heiner Kallweit
  2014-04-08 20:14 ` Hannes Frederic Sowa
  0 siblings, 2 replies; 5+ messages in thread
From: Heiner Kallweit @ 2014-04-08 18:26 UTC (permalink / raw)
  To: netdev@vger.kernel.org

I stumbled accross the fact that inet6_addr_add as well as inet6_addr_modify
consider IFA_F_TEMPORARY whilst inet6_addr_del does not.

My understanding of IFA_F_MANAGETEMPADDR is that it allows userspace applications
to deal with temporary addresses w/o having to create / track (and possibly delete)
each and every temporary address.

This works fine when creating / modifying a global address. However when a
global address is deleted the orphaned temporary addresses remain.
Shouldn't the userspace be able to set IFA_F_MANAGETEMPADDR also for RTM_DELADDR
to signalize that the kernel should delete all related temporary addresses as well?

It would be a rather small extension to manage_tempaddrs to add a "delete" parameter
and set valid_lft=prefered_lft=0 for each temporary address if set.

Sorry if this was discussed before and I miss something.

Rgds,
Heiner

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-04-09 20:36 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-08 18:26 ipv6: Should inet6_addr_del consider IFA_F_MANAGETEMPADDR? Heiner Kallweit
2014-04-08 19:08 ` Heiner Kallweit
2014-04-08 20:14 ` Hannes Frederic Sowa
2014-04-09 19:38   ` Heiner Kallweit
2014-04-09 20:36     ` Hannes Frederic Sowa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).