CVSROOT:        /cvs
Module name:    src
Changes by:     m...@cvs.openbsd.org    2014/12/17 02:45:59

Modified files:
        sys/net        : if.c if_pfsync.c if_vxlan.c 
        sys/netinet    : igmp.c in_pcb.c ip_carp.c ip_mroute.c 
                         ip_output.c ip_var.h 
        sys/netinet6   : in6_src.c ip6_mroute.c ip6_output.c ip6_var.h 
                         mld6.c nd6_nbr.c nd6_rtr.c 

Log message:
Use an interface index instead of a pointer for multicast options.

Output interface (port) selection for multicast traffic is not done via
route lookups.  Instead the output ifp is registred when setsockopt(2)
is called with the IP{V6,}_MULTICAST_IF option.  But since there is no
mechanism to invalidate such pointer stored in a pcb when an interface
is destroyed/removed, it might lead your kernel to fault.

Prevent a fault upon resume reported by frantisek holop, thanks!

ok mikeb@, claudio@

Reply via email to