DL6ER
|
3bb0fe98be
|
Fix subdirectory include paths. This is only to be explicit, the relative search finds them otherwise as well
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2020-09-03 20:46:01 +02:00 |
|
DL6ER
|
101f14a6a7
|
Increase robustness of custom SQL subnet_match() function against invalid input.
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2020-05-19 10:30:34 +02:00 |
|
DL6ER
|
e1c56f754d
|
Add support for specifying clients by their host names.
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2020-05-18 10:54:57 +02:00 |
|
DL6ER
|
c08b7358e0
|
Remove IP addresses not seen for more than 24 hours to clean the network table from dead addresses
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2020-05-13 19:58:54 +02:00 |
|
DL6ER
|
8d24d20782
|
Implement MAC address support.
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2020-05-13 19:10:02 +02:00 |
|
DL6ER
|
f6be58b285
|
Return early in subnet_match() if first argument is a MAC address
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2020-05-13 19:10:02 +02:00 |
|
DL6ER
|
7317fe5bfd
|
Implement isMAC() SQL subroutine.
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2020-05-13 19:09:59 +02:00 |
|
DL6ER
|
8133752224
|
Always chose most suitable (= maximum) subnet for clients. This allows to configure specific settings for a whole range of devices but still exclude others. Complain softly (no error) if multiple configured subnets match with the same number of relevant bits.
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2020-05-11 20:03:28 +02:00 |
|
DL6ER
|
b2bea818f0
|
Fix bit-order in subnet mask generation.
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2020-05-08 11:26:25 +02:00 |
|
DL6ER
|
fdb8664f4a
|
Check arguments are of type SQLITE3_TEXT
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2020-04-02 15:17:00 +00:00 |
|
DL6ER
|
6d612678e6
|
Also return NO MATCH when invoking subnet_match() with non-TEXT arguments.
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2020-04-02 15:16:58 +00:00 |
|
DL6ER
|
1636a81041
|
Explicitly log failures in creating the new sqlite3 function.
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2020-04-02 15:15:55 +00:00 |
|
DL6ER
|
e596c55b66
|
Simplify SQLite 3 database extension
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2020-03-25 11:30:37 +01:00 |
|
DL6ER
|
8f349e1c56
|
Add more comments, only print debugging output when DEBUG_DATABASE is enabled.
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2020-03-25 10:47:19 +01:00 |
|
DL6ER
|
0b8915a321
|
Improve debugging output, reduce code duplication.
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2020-03-04 17:37:43 +00:00 |
|
DL6ER
|
351f5f67dd
|
Invalid IP addresses in the database should just cause a NO MATCH condition.
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2020-03-03 23:53:42 +00:00 |
|
DL6ER
|
6baaf4b0f7
|
Use defined macro to access 8 bit values.
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2020-03-03 23:43:00 +00:00 |
|
DL6ER
|
0ac6b5cb69
|
Implement new SQLite3 subroutine which can interpret IP addresses that may use Classless Inter-Domain Routing (CIDR) notation. This is also known as variable-length subnet masking (VLSM) technique.
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2020-03-03 23:35:27 +00:00 |
|