icmp6.c (a61b5cfbbfd54c51c9ba6cc9aa19907911fb3aa9) | icmp6.c (32af08ecad3fe435ee646791e345526b5bcb7795) |
---|---|
1/*- 2 * SPDX-License-Identifier: BSD-3-Clause 3 * 4 * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 590 unchanged lines hidden (view full) --- 599 * IPv6 HBH Router Alert option. 600 * As IPv6 HBH options are stripped in ip6_input() we must 601 * check an mbuf header flag. 602 * XXX Should we also sanity check that these messages 603 * were directed to a link-local multicast prefix? 604 */ 605 if ((ip6->ip6_hlim != 1) || (m->m_flags & M_RTALERT_MLD) == 0) 606 goto freeit; | 1/*- 2 * SPDX-License-Identifier: BSD-3-Clause 3 * 4 * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 590 unchanged lines hidden (view full) --- 599 * IPv6 HBH Router Alert option. 600 * As IPv6 HBH options are stripped in ip6_input() we must 601 * check an mbuf header flag. 602 * XXX Should we also sanity check that these messages 603 * were directed to a link-local multicast prefix? 604 */ 605 if ((ip6->ip6_hlim != 1) || (m->m_flags & M_RTALERT_MLD) == 0) 606 goto freeit; |
607 if (mld_input(m, off, icmp6len) != 0) { | 607 if (mld_input(&m, off, icmp6len) != 0) { |
608 *mp = NULL; 609 return (IPPROTO_DONE); 610 } 611 /* m stays. */ 612 break; 613 614 case ICMP6_WRUREQUEST: /* ICMP6_FQDN_QUERY */ 615 { --- 2158 unchanged lines hidden --- | 608 *mp = NULL; 609 return (IPPROTO_DONE); 610 } 611 /* m stays. */ 612 break; 613 614 case ICMP6_WRUREQUEST: /* ICMP6_FQDN_QUERY */ 615 { --- 2158 unchanged lines hidden --- |