Page MenuHomeFreeBSD

routing: simplify decompose_change_notification().
ClosedPublic

Authored by melifaro on Jun 25 2022, 8:01 PM.
Tags
None
Referenced Files
F142477595: D35598.id107439.diff
Tue, Jan 20, 6:34 AM
F142428000: D35598.id107386.diff
Mon, Jan 19, 9:21 PM
Unknown Object (File)
Sat, Jan 17, 8:29 PM
Unknown Object (File)
Nov 25 2025, 2:53 AM
Unknown Object (File)
Nov 23 2025, 9:08 AM
Unknown Object (File)
Nov 23 2025, 9:08 AM
Unknown Object (File)
Nov 23 2025, 9:08 AM
Unknown Object (File)
Nov 23 2025, 9:03 AM
Subscribers

Details

Summary

The function's goal is to compare old/new nhop/nhgrp for the route
and decompose it into the series of RTM_ADD/RTM_DELETE single-nhop
events, calling specified callback for each event.
Simplify by properly leveraging the fact that both old/new groups
are sorted nhop-# ascending.

MFC after: 2 weeks

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable