class Router { public:
Router();
~Router(); // Initialize the router, this has to be called before any other methods can // be called. It only needs to be called once.
Result init();
// Set the default route to |gateway| on the interface specified by // |interfaceIndex|. If the default route is already set up with the same // configuration then nothing is done. If another default route exists it // will be removed and replaced by the new one. If no default route exists // a route will be created with the given parameters.
Result setDefaultGateway(in_addr_t gateway, unsignedint interfaceIndex);
private:
Result sendNetlinkMessage(constvoid* data, size_t size);
// Netlink socket for setting up neighbors and routes int mSocketFd;
};
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.15 Sekunden
(vorverarbeitet am 2026-06-27)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.