diff options
Diffstat (limited to 'packages/libc/src/nroute.inc')
-rw-r--r-- | packages/libc/src/nroute.inc | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/packages/libc/src/nroute.inc b/packages/libc/src/nroute.inc new file mode 100644 index 0000000000..b865cda700 --- /dev/null +++ b/packages/libc/src/nroute.inc @@ -0,0 +1,19 @@ + +Function RT_ADDRCLASS(flags: u_int32_t): u_int32_t; + +begin + Result:=flags shr 23; +end; + + +Function RT_TOS(tos: Integer): Integer; + +begin + Result:=tos and IPTOS_TOS_MASK; +end; + +Function RT_LOCALADDR(flags: u_int32_t): Boolean; + +begin + Result:=(flags and RTF_ADDRCLASSMASK)=(RTF_LOCAL or RTF_INTERFACE); +end; |