summaryrefslogtreecommitdiffstats
path: root/src/squark-auth-snmp.c
Commit message (Collapse)AuthorAgeFilesLines
* fix overlapped memcpyTimo Teräs2015-06-031-1/+1
|
* all: report errors if calls to write() failAlex Dowad2014-04-251-1/+3
| | | | This also quiets compiler warnings for "ignored return values".
* all: unified framework for reporting errors/warnings/info messages to ↵Alex Dowad2014-04-251-39/+25
| | | | stderr/syslog
* auth-snmp: use ifIndex as ifName if that MIB entry is not supportTimo Teräs2013-02-261-13/+43
| | | | E.g. HP ProCurve 1800 does not seem to support ifName.
* auth-snmp: allow specifying management network prefixTimo Teräs2013-02-061-2/+28
| | | | | So we don't go and try querying untrusted LLDP capable devices in non-managed subnets.
* auth-snmp: fix a crashTimo Teräs2012-02-141-9/+14
| | | | | Can't call blob_push_formatted_username unless authentication is successfully completed.
* auth-snmp: commit login only if credentials are not validTimo Teräs2012-01-101-12/+19
| | | | | | This makes sure the other session things are not reset when the squid helper cache needs revalidation. Fixes premature reset of override timestamp amongst other issues.
* auth-snmp: fix q-bridge-mib vlan queriesv0.3Timo Teräs2011-09-051-11/+35
| | | | | | The queries use Q-BRIDGE-MIB's qVlanId which is switch specific mapping. Exception seems to be 1810G's which use the real VLAN index.
* auth-snmp: implement Q-BRIDGE-MIB FIB queriesTimo Teräs2011-07-191-26/+49
| | | | | | | | Certain switches seem to export FIB of tagged VLANs only in the Q-BRIDGE-MIB only. Detect if switch support Q-BRIDGE-MIB during information discovery, and prefer it over the older BRIDGE-MIB. Q-BRIDGE-MIB should be used anyway, since it's the only reliable way to trace MAC properly when it appears in multiple VLANs.
* auth-snmp: option to syslog authentication requestsTimo Teräs2010-11-091-3/+51
| | | | Including some information where it fails.
* all: check error for sqdb_open and adb_openTimo Teräs2010-11-071-5/+20
| | | | | so we don't crash on startup if essential files are missing. fixes #454
* build: use build system from apk-tools/opennhrpTimo Teräs2010-11-071-4/+4
|
* squark: reorganize sources to src directoryTimo Teräs2010-11-071-0/+1152