Fix a typo introduced when refactoring the raw socket code.

This commit is contained in:
Nicholas J. Kain 2011-06-29 19:17:32 -04:00
parent 4c1c1715fe
commit 3b5faebd6c

View File

@ -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;