How to read ipi_ifindex/ip_pktinfo/in_pktinfo packet data?

L

Lincoln Yeoh

Hi,

On Linux, it seems to check which network interface a packet (e.g.
udp) is coming from one is supposed to set the necessary socket
options and then read the ip_pktinfo/in_pktinfo message and then
determine the ipi_ifindex value. A similar thing is supposed to be
done to choose which interface to send a packet out from.

But how does one do that in perl?

Why? I'm wondering whether it's possible to write a DHCP server in
perl, and one which works with multiple network interfaces. So far I
haven't seen one yet.

Cheerio!

Link.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,968
Messages
2,570,153
Members
46,699
Latest member
AnneRosen

Latest Threads

Top