Commit 647e1b69 authored by Aurelio Colosimo's avatar Aurelio Colosimo

bug fix: posix_send_packet always used general port

parent 1b3c07b2
......@@ -66,7 +66,7 @@ int posix_send_packet(struct pp_instance *ppi, void *pkt, int len, int chtype,
struct sockaddr_in addr;
addr.sin_family = AF_INET;
addr.sin_port = htons(PP_GEN_PORT);
addr.sin_port = htons(chtype == PP_NP_GEN ? PP_GEN_PORT : PP_EVT_PORT);
if (!use_pdelay_addr)
addr.sin_addr.s_addr = NP(ppi)->mcast_addr;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment