On 28/12/10 08:44, Alibek Bolatov wrote:
Hello. Do I have a problem for which you need write MAC-addresses to log-files. I do not know very well the C-language itself to make such changes in the source code could not. I understand that I need to make changes to the file access_log.c, the function accessLogCustom or accessLogCommon, using an object AccessLogEntry * al. I can get client address with al->cache.caddr, but how to get the MAC-address, I do not know. Tell me what changes must be made in the source code to a log-files to be stored MAC-addresses of clients? Sincerely, Alibek.
It's a bit tricky to add. Try 3.2 which has EUI logging and controls already. (NP: 3.2.0.4 beta will need building with --disable-cpu-profiling due to a bug)
Amos -- Please be using Current Stable Squid 2.7.STABLE9 or 3.1.10 Beta testers wanted for 3.2.0.4