Arpwatch vendor database doesn't work, upper/lower case bug.



  • I just installed the latest arpwatch package. The list of vendors in the database page, at https://x.x.x.x/arpwatch_database.php only works if the vendor MAC is all numeric digits. Any alpha hex characters stop it working. I fixed it by changing a line in massagevendor from
    vendor = row[1].lower()
    to
    vendor = row[1].upper()
    This keeps the hex in upper case in ethercodes.dat .
    Can anyone please point me in the direction where I can report this bug to the developer? Thanks.
    p.s. I know this isn't a 'proper' fix. But it was quick. The real bug is somewhere in arpwatch.inc

    Edit. Someone already reported it.
    https://redmine.pfsense.org/issues/10432
    I'll get my coat...


  • LAYER 8

    indeed someone asked for it on freenode. and i verified it was not working.
    we can set that to lower or to upper or set the preg_match case insensitive 🤷
    anyway it will be ok in a few days


Log in to reply