Lines Matching refs:ExtHeaderId
1482 pub enum ExtHeaderId { enum
1492 impl From<ExtHeaderId> for IpProtocol {
1493 fn from(val: ExtHeaderId) -> Self { in from()
1495 ExtHeaderId::HopByHopHeader => Self::HopByHop, in from()
1496 ExtHeaderId::RoutingHeader => Self::Ipv6Route, in from()
1497 ExtHeaderId::FragmentHeader => Self::Ipv6Frag, in from()
1498 ExtHeaderId::DestinationOptionsHeader => Self::Ipv6Opts, in from()
1499 ExtHeaderId::MobilityHeader => Self::Unknown(0), in from()
1500 ExtHeaderId::Header => Self::Unknown(0), in from()
1501 ExtHeaderId::Reserved => Self::Unknown(0), in from()
1563 pub fn extension_header_id(&self) -> ExtHeaderId { in extension_header_id() argument
1565 0 => ExtHeaderId::HopByHopHeader, in extension_header_id()
1566 1 => ExtHeaderId::RoutingHeader, in extension_header_id()
1567 2 => ExtHeaderId::FragmentHeader, in extension_header_id()
1568 3 => ExtHeaderId::DestinationOptionsHeader, in extension_header_id()
1569 4 => ExtHeaderId::MobilityHeader, in extension_header_id()
1570 5 | 6 => ExtHeaderId::Reserved, in extension_header_id()
1571 7 => ExtHeaderId::Header, in extension_header_id()
1626 fn set_extension_header_id(&mut self, ext_header_id: ExtHeaderId) { in set_extension_header_id() argument
1628 ExtHeaderId::HopByHopHeader => 0, in set_extension_header_id()
1629 ExtHeaderId::RoutingHeader => 1, in set_extension_header_id()
1630 ExtHeaderId::FragmentHeader => 2, in set_extension_header_id()
1631 ExtHeaderId::DestinationOptionsHeader => 3, in set_extension_header_id()
1632 ExtHeaderId::MobilityHeader => 4, in set_extension_header_id()
1633 ExtHeaderId::Reserved => 5, in set_extension_header_id()
1634 ExtHeaderId::Header => 7, in set_extension_header_id()
1667 ext_header_id: ExtHeaderId,
2062 assert_eq!(packet.extension_header_id(), ExtHeaderId::RoutingHeader); in ext_header_nhc_fields()
2070 ext_header_id: ExtHeaderId::RoutingHeader, in ext_header_emit()
2082 assert_eq!(packet.extension_header_id(), ExtHeaderId::RoutingHeader); in ext_header_emit()