Fix a typo introduced when refactoring the raw socket code.
This commit is contained in:
parent
4c1c1715fe
commit
3b5faebd6c
@ -302,7 +302,7 @@ static int create_raw_socket(struct sockaddr_ll *sa,
|
||||
|
||||
// Ignoring error since kernel may lack support for BPF.
|
||||
if (filter_prog && (setsockopt(fd, SOL_SOCKET, SO_ATTACH_FILTER,
|
||||
&filter_prog, sizeof filter_prog) >= 0))
|
||||
filter_prog, sizeof *filter_prog) >= 0))
|
||||
log_line("Attached filter to raw socket fd %d", fd);
|
||||
|
||||
int opt = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user