浏览代码

fix: IPv6-hbb: discard as indicated by hbh type

Discard the packet if the Hop-by-Hop header type is 0b11 and the packet
destination address is multicast.
Thibaut Vandervelden 5 月之前
父节点
当前提交
32f81a77f5
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/iface/interface/ipv6.rs

+ 2 - 0
src/iface/interface/ipv6.rs

@@ -291,6 +291,8 @@ impl InterfaceInner {
                         Ipv6OptionFailureType::DiscardSendUnicast => {
                             if !ipv6_repr.dst_addr.is_multicast() {
                                 return HopByHopResponse::Discard(param_problem());
+                            } else {
+                                return HopByHopResponse::Discard(None);
                             }
                         }
                     }