1
0
mirror of https://github.com/DigitalDevices/octonet.git synced 2023-10-10 13:36:52 +02:00

only use sendto_port with reply to notify

This commit is contained in:
Ralph Metzler 2016-01-04 21:16:39 +01:00
parent ebcf94e9e2
commit d050978d3e

View File

@ -266,8 +266,8 @@ static int send_reply_msearch(struct os_ssdp *ss, int mc, int send_id, int nr)
insadr.sin_addr.s_addr = inet_addr("239.255.255.250"); insadr.sin_addr.s_addr = inet_addr("239.255.255.250");
res = sendto(s, buf, len, 0, (struct sockaddr *) &insadr, sizeof(insadr)); res = sendto(s, buf, len, 0, (struct sockaddr *) &insadr, sizeof(insadr));
} else } else
//res = sendto(s, buf, len, 0, &ss->cadr, sizeof(struct sockaddr)); res = sendto(s, buf, len, 0, &ss->cadr, sizeof(struct sockaddr));
res = sendto_port(s, buf, len, &ss->cadr, ss->csport); //res = sendto_port(s, buf, len, &ss->cadr, ss->csport);
return res; return res;
} }