Packet formarion and MAC modification in C programme
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Packet formarion and MAC modification in C programme
Hi All,
I am writing a programme to autoconfigure a network element. The element has different ip address than the subnet. Suppose the element has address like 61.10.1.5, where as the subnet, it attached to, address is 192.160.10.0.
I want to send a multicast packet into the subnet it belongs to, but I can't able to send any data using either raw socket or any udp socket.
I am writing a programme to autoconfigure a network element. The element has different ip address than the subnet. Suppose the element has address like 61.10.1.5, where as the subnet, it attached to, address is 192.160.10.0.
I want to send a multicast packet into the subnet it belongs to, but I can't able to send any data using either raw socket or any udp socket.
Kindly help me.
Not sure how we can "kindly help you"....you don't post anything of your code, or what problems/errors you're getting, or tell us anything about your version/distro of Linux.
Great...since you came here for help, how about helping the rest of the community, and posting the solution?
I am really sorry for late.
You need to form the ethernet packet by hand [of course, dont use your hand , but write code to prepare the packet, instead of linux kernel to prepare for you] . the destination address will be the broadcast address of the subnet and source will be yours. then send using the raw socket.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.