Skip to content

Commit

Permalink
Update set_bpf_filter prototypes
Browse files Browse the repository at this point in the history
  • Loading branch information
cardigliano committed Jun 24, 2024
1 parent f227628 commit 0e02261
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion userland/lib/pfring_zc.h
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ pfring_zc_adjust_device_clock(
int
pfring_zc_set_bpf_filter(
pfring_zc_queue *queue,
char *filter
const char *filter
);

/**
Expand Down
2 changes: 1 addition & 1 deletion userland/nbpf/nbpf_mod_rdif.c
Original file line number Diff line number Diff line change
Expand Up @@ -798,7 +798,7 @@ static int __nbpf_rdif_interface_clear(nbpf_rdif_handle_t *handle) {
* - 1 on success
*/
/* -------------------------------------------------- */
int nbpf_rdif_set_filter(nbpf_rdif_handle_t *handle, char *bpf) {
int nbpf_rdif_set_filter(nbpf_rdif_handle_t *handle, const char *bpf) {
#ifdef HAVE_REDIRECTOR_F
nbpf_tree_t *tree;
nbpf_rule_list_item_t *pun;
Expand Down
2 changes: 1 addition & 1 deletion userland/nbpf/nbpf_mod_rdif.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ typedef struct { // TODO add instance data here
int nbpf_rdif_reset(int unit); //TODO needs to be moved to driver init

nbpf_rdif_handle_t *nbpf_rdif_init(char *ifname);
int nbpf_rdif_set_filter(nbpf_rdif_handle_t *handle, char *bpf);
int nbpf_rdif_set_filter(nbpf_rdif_handle_t *handle, const char *bpf);
void nbpf_rdif_destroy(nbpf_rdif_handle_t *handle);

#endif

0 comments on commit 0e02261

Please sign in to comment.