pmacct-discussion  

[pmacct-discussion] Duplicate keys

Sander Hoentjen
Sun, 09 Mar 2008 05:09:06 -0700

Hi,

I get the follow (ip-address changed) in my logs:

ERROR ( in/mysql ): Duplicate entry '55.55.55.55-0-ipv6-c-2008-03-09 00:00:00' 
for key 1

Now I thought that it would update my current record instead of trying
to insert a new one. Can this be because ip_proto is actually ipv6-crypt
instead of ipv6-c?
If this is the case maybe the default length of the mysql field should
be larger (10?) or the names should be truncated in pmacct-data.h?
If it is a different problem altogether please ignore my comments.

What would be the best way to handle this problem?

Kind regards,

Sander Hoentjen


_______________________________________________
pmacct-discussion mailing list
http://www.pmacct.net/#mailinglists