Simple test for listening
This commit is contained in:
parent
6388075d50
commit
a8d0d25355
1 changed files with 9 additions and 1 deletions
|
@ -127,6 +127,14 @@ int main(int argc, char **argv)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/* ====================================================================== */
|
||||||
|
|
||||||
|
/* We listens to the answer */
|
||||||
|
|
||||||
|
struct ether_arp *result = malloc(sizeof(struct ether_arp));
|
||||||
|
listen_arp_frame(sockfd, result);
|
||||||
|
|
||||||
|
|
||||||
exit(EXIT_SUCCESS);
|
exit(EXIT_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue