/// Handle a timer event firing in the IP layer.
Handle a timer event firing in the IP layer.
Handle a timer event firing in the IP layer .
pub(crate) fn handle_timer<D: EventDispatcher>(ctx: &mut Ctx<D>, id: IpLayerTimerId) {
    match id {
        IpLayerTimerId::ReassemblyTimeoutv4(key) => ctx.handle_timer(key),
        IpLayerTimerId::ReassemblyTimeoutv6(key) => ctx.handle_timer(key),
        IpLayerTimerId::PmtuTimeout(IpVersion::V4) => {
            ctx.handle_timer(PmtuTimerId::<Ipv4>::default())
        }
        IpLayerTimerId::PmtuTimeout(IpVersion::V6) => {
            ctx.handle_timer(PmtuTimerId::<Ipv6>::default())
        }
    }
}
pub ( crate ) fn handle_timer < D : EventDispatcher > ( ctx : & mut Ctx < D > , id : IpLayerTimerId ) { match id { IpLayerTimerId :: ReassemblyTimeoutv4 ( key ) => ctx . handle_timer ( key ) , IpLayerTimerId :: ReassemblyTimeoutv6 ( key ) => ctx . handle_timer ( key ) , IpLayerTimerId :: PmtuTimeout ( IpVersion :: V4 ) => { ctx . handle_timer ( PmtuTimerId :: < Ipv4 > :: default ( ) ) } IpLayerTimerId :: PmtuTimeout ( IpVersion :: V6 ) => { ctx . handle_timer ( PmtuTimerId :: < Ipv6 > :: default ( ) ) } } }
Handle a timer event firing in the IP layer.
Handle a timer event firing in the IP layer .
ctx
&mut Ctx<D>
id
IpLayerTimerId