Added address to line script

This commit is contained in:
M66B 2016-01-22 21:03:44 +01:00
parent f5564607a1
commit bc8150700a
2 changed files with 1 additions and 2 deletions

1
.gitignore vendored
View File

@ -6,4 +6,3 @@
.DS_Store
/build
/captures
/*.sh

View File

@ -936,7 +936,7 @@ jboolean handle_udp(const struct arguments *args, const uint8_t *buffer, uint16_
else {
// Check for broacast
uint32_t broadcast = INADDR_BROADCAST;
if (memcmp(&iphdr->saddr, &broadcast, sizeof(broadcast)) == 0) {
if (memcmp(&iphdr->daddr, &broadcast, sizeof(broadcast)) == 0) {
log_android(ANDROID_LOG_WARN, "UDP broadcast");
int on = 1;
if (setsockopt(u->socket, SOL_SOCKET, SO_BROADCAST, &on, sizeof(on)))