Hi Pave did you call the check after opening the device? Alfredo
> On 20 Dec 2014, at 22:29, Pavel Odintsov <[email protected]> wrote: > > Hello, Alfredo! > > I switched to svn version of PF_RING and integrated > pfring_zc_check_license call to my tool > https://github.com/FastVPSEestiOu/fastnetmon/commit/3ab7bf50229148ff9cbc6cab4f0336305e85b308 > > <https://github.com/FastVPSEestiOu/fastnetmon/commit/3ab7bf50229148ff9cbc6cab4f0336305e85b308>. > > According to comments from pfring_zc.h: > "@return true if ZC is running with no demo limit" this function > should return non negative number only for case when it have valid > license. > > But for my tool running in demo mode and I got true for trial license: > pfring_zc_check_license return:1 > > Is it OK and I should interpret non zero as "trial" or it's bug? > > > On Tue, Dec 16, 2014 at 3:12 AM, Pavel Odintsov > <[email protected] <mailto:[email protected]>> wrote: >> WOW!!! Thank you soooooo much! You are the best ever and ever support! :) >> >> On Tue, Dec 16, 2014 at 3:05 AM, Alfredo Cardigliano >> <[email protected]> wrote: >>> Hi Pavel >>> there is a new API call pfring_zc_check_license() to check if trial or full >>> ZC is running, >>> you can terminate the application correctly handling SIGTERM. >>> >>> Alfredo >>> >>>> On 14 Dec 2014, at 19:19, Pavel Odintsov <[email protected]> wrote: >>>> >>>> Hello, folks! >>>> >>>> My tool woking with ZC. And sometimes customers use it with trial ZC >>>> license (only for 5 minutes). >>>> >>>> But I can't check from my tool if license is trial and correctly >>>> notify customer about it. Because this information about "this >>>> license is trial" logged only on console and I can't catch it. >>>> >>>> When trial time 5 minutes is expired my tool hangs without any errors >>>> in log file because it works in daemon mode and do not have any >>>> stdio/stderr. >>>> >>>> Even in interactive mode I can catch error "Demo time elapsed: please >>>> get a valid license" but it's impossible for production use. >>>> >>>> Finally, I suggest two features: >>>> 1) API call for checking "is this ZC license is valid or trial?" >>>> 2) Ability to provide callback for finishing my toolkit correctly when >>>> trial time is expired. >>>> >>>> Thank you for a great product! >>>> >>>> -- >>>> Sincerely yours, Pavel Odintsov >>>> _______________________________________________ >>>> Ntop-misc mailing list >>>> [email protected] >>>> http://listgateway.unipi.it/mailman/listinfo/ntop-misc >>> >>> _______________________________________________ >>> Ntop-misc mailing list >>> [email protected] >>> http://listgateway.unipi.it/mailman/listinfo/ntop-misc >> >> >> >> -- >> Sincerely yours, Pavel Odintsov > > > > -- > Sincerely yours, Pavel Odintsov > _______________________________________________ > Ntop-misc mailing list > [email protected] <mailto:[email protected]> > http://listgateway.unipi.it/mailman/listinfo/ntop-misc > <http://listgateway.unipi.it/mailman/listinfo/ntop-misc>
_______________________________________________ Ntop-misc mailing list [email protected] http://listgateway.unipi.it/mailman/listinfo/ntop-misc
