K 10 svn:author V 2 ae K 8 svn:date V 27 2013-12-17T10:03:04.667014Z K 7 svn:log V 767 Application can specify outgoing interface using setsockopt, this way affects all packets on the socket. This also called "sticky" options. And second way - specify the same options using ancillary data (using sendmsg(2)). This method overrides sticky options and affects only those datagrams, for which it was specified. Ancillary data can be used only with UDP and RAW sockets. Make sin6_scope_id check and initialization a bit later, when ancillary data is already parsed and we know specified outgoing interface. Also rename sa6_checkzone_pcb() function into sa6_checkzone_opts(), and use output options determined from sticky socket option or from ancillary data. Move sa6_checkzone_opts() declaration into ip6_var.h. Reported by: melifaro Tested with: rtadvd END