Hi, I have corrected IP conversion problem .Now it is converting the IP correctly.
(gdb) p inet_ntoa(16885952) $5 = 0x2aaaaaae3128 "192.168.1.1" Also default route is pointing to the correct IGMP port.Still socket parameter api is getting failed. DBGvpp# show ip fib Table 0, fib_index 0, flow hash: src dst sport dport proto Destination Packets Bytes Adjacency 192.168.1.0/24 0 0 weight 1, index 3 192.168.1.1/24 192.168.1.1/32 2 196 weight 1, index 4 192.168.1.1/24 192.168.1.2/32 0 0 weight 1, index 5 tap-0 Regards, Deepak -----Keith Burns <[email protected]> wrote: ----- To: "Dave Barach (dbarach)" <[email protected]>, Deepak Jain4 <[email protected]> From: Keith Burns <[email protected]> Date: 11/23/2016 06:10PM Cc: "[email protected]" <[email protected]> Subject: Re: [vpp-dev] Problem while setting socket parameter Potentially a couple of things wrong: 1. 3756520960 == 223.231.246.0 575366855 == 34.75.102.199 192.168.1.1 == 3232235777 Maybe some Endian badness going on here? 2. Where is the default route pointing at ? I’ve seen IGMP issues where if the default route isn’t pointing at the desired IGMP interface… From: Deepak Jain4 <[email protected]> Reply: Deepak Jain4 <[email protected]> Date: November 23, 2016 at 1:44:18 AM To: Dave Barach (dbarach) <[email protected]> Cc: [email protected] <[email protected]> Subject: Re: [vpp-dev] Problem while setting socket parameter HI, No requested ip (192.168.1.1/24 ) is not assigned.please find the output in attached file. Regards, Deepak -----"Dave Barach (dbarach)" <[email protected]> wrote: ----- To: Deepak Jain4 <[email protected]>, "[email protected]" <[email protected]> From: "Dave Barach (dbarach)" <[email protected]> Date: 11/21/2016 06:42PM Subject: RE: [vpp-dev] Problem while setting socket parameter Is the requested address already assigned? “netstat -ln”... Thanks… Dave From: [email protected] [mailto:[email protected]] On Behalf Of Deepak Jain4 Sent: Sunday, November 20, 2016 11:12 PM To: [email protected] Subject: [vpp-dev] Problem while setting socket parameter HI Team, system call setsockopt(socket, IPPROTO_IP, MRT_ADD_VIF, (char *)&vc, sizeof(vc)) system call is getting fail with error "GigabitEthernet0: Cannot assign requested address". socket has been created with socket(AF_INET, SOCK_RAW, IPPROTO_IGMP) API. vc having following values (gdb) p vc $2 = {vifc_vifi = 14, vifc_flags = 0 '\000', vifc_threshold = 0 '\000', vifc_rate_limit = 0, {vifc_lcl_addr = {s_addr = 3756520960}, vifc_lcl_ifindex = 4}, vifc_rmt_addr = {s_addr = 575366855}}. can anyone suggest what could be the problem here. Regards, Deepak =====-----=====-----===== Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you _______________________________________________ vpp-dev mailing list [email protected] https://lists.fd.io/mailman/listinfo/vpp-dev
igmp gdb
Description: Binary data
_______________________________________________ vpp-dev mailing list [email protected] https://lists.fd.io/mailman/listinfo/vpp-dev
