mDNS issue

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

mDNS issue

1,678 次查看
dz
Contributor I

Hey guys,

 

    I am not able to send mDNS packet out. The address is "224.0.0.251". But if I send the same packet by using 255.255.255.255, then it works.

    Can anyone help me on this? Thanks.

    I am using MQX3.7.

 

Dan

标签 (1)
标记 (1)
0 项奖励
回复
2 回复数

1,240 次查看
Luis_Garabo
NXP TechSupport
NXP TechSupport

Hi Daniel,

From the RTCS user's guide I can see that you will need to join a multicast group. Here is the example from the user's guide:

uint_32 sock;

struct ip_mreq group;

group.imr_multiaddr = multicast_ip_address;

group.imr_interface = local_ip_address;

error = setsockopt(sock, SOL_IGMP, RTCS_SO_IGMP_ADD_MEMBERSHIP, &group, sizeof(group));

I hope this helps.

Regards,

-Garabo

1,240 次查看
BrianMoon
Contributor II

Hi Daniel,

I am working on a seemingly similar project. Have you been able to get your system to catch and interpret incoming multicast DNS probes? I'm listening on the mDNS multicast address, but something still isn't right because, so far, my system cannot hear any mDNS traffic.

-Brian

0 项奖励
回复