nroute.inc 310 B

12345678910111213141516171819
  1. Function RT_ADDRCLASS(flags: u_int32_t): u_int32_t;
  2. begin
  3. Result:=flags shr 23;
  4. end;
  5. Function RT_TOS(tos: Integer): Integer;
  6. begin
  7. Result:=tos and IPTOS_TOS_MASK;
  8. end;
  9. Function RT_LOCALADDR(flags: u_int32_t): Boolean;
  10. begin
  11. Result:=(flags and RTF_ADDRCLASSMASK)=(RTF_LOCAL or RTF_INTERFACE);
  12. end;