Skip to content

Commit

Permalink
new pfring_ft_set_license API to set a license at runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
cardigliano committed Dec 24, 2018
1 parent 11e8553 commit 72cf27c
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 1 deletion.
Binary file modified userland/lib/libs/libpfring_ft_x86_64.a
Binary file not shown.
Binary file modified userland/lib/libs/libpfring_ft_x86_64.so
Binary file not shown.
Binary file modified userland/lib/libs/libpfring_ft_x86_64_core-avx2.a
Binary file not shown.
Binary file modified userland/lib/libs/libpfring_ft_x86_64_core-avx2_dl.a
Binary file not shown.
Binary file modified userland/lib/libs/libpfring_ft_x86_64_corei7-avx.a
Binary file not shown.
Binary file modified userland/lib/libs/libpfring_ft_x86_64_corei7-avx_dl.a
Binary file not shown.
Binary file modified userland/lib/libs/libpfring_ft_x86_64_corei7.a
Binary file not shown.
Binary file modified userland/lib/libs/libpfring_ft_x86_64_corei7_dl.a
Binary file not shown.
Binary file modified userland/lib/libs/libpfring_ft_x86_64_dl.a
Binary file not shown.
Binary file modified userland/lib/libs/libpfring_ft_x86_64_dl.so
Binary file not shown.
12 changes: 11 additions & 1 deletion userland/lib/pfring_ft.h
Expand Up @@ -535,7 +535,7 @@ pfring_ft_version(

/**
* Get license info.
* @param system_id A buffer (32 bytes long) where system id is returned. (out)
* @param system_id A buffer (32 bytes long) where system id is returned. (out)
* @param license_expiration A pointer to a time_t where license expiration is returned. (out)
* @param maintenance_expiration A pointer to a time_t where maintenance expiration is returned. (out)
* @return 1 if a valid license is installed, 0 otherwise.
Expand All @@ -547,6 +547,16 @@ pfring_ft_license(
time_t *maintenance_expiration
);

/**
* Install a PF_RING FT license key.
* @param license_key The license key.
* @return 1 if the license has been successfully installed, 0 otherwise (e.g. no permissions).
*/
int
pfring_ft_set_license(
const char *license_key
);

/**
* Enable debug mode
*/
Expand Down

0 comments on commit 72cf27c

Please sign in to comment.