Menu

#12 Add the ability to get the destination IP of packet

open
nobody
None
5
2007-12-12
2007-12-12
tjm
No

These patches add the ability to get the destination IP address of received packets. This is useful when a UDP socket has joined multiple multicast groups. By examining the destination IP address, an application can determine which multicast group this packet was sent to.

This patch has been tested on Linux and Windows. I think it will work on other Unixes, but I have not tested that yet.

These patches add additional tests to test this functionality. Since I noticed that the tests did not test the multicast functionality at all, I have also added tests to cover that.

These patches also include the fixes for these bug reports:
1848365 - The -mcastloop boolean option
1838467 - Crash during Tcl exit with multicast groups open
1838459 - Crash with -mcastadd with a shared object
1828920 - Crash with udp_peek

Discussion

  • tjm

    tjm - 2007-12-12

    Patch to udp_tcl.c and udp_tcl.h

     
  • tjm

    tjm - 2007-12-12

    Logged In: YES
    user_id=114531
    Originator: YES

    File Added: udp_tcl_dstip_tests.diff

     
  • tjm

    tjm - 2007-12-12

    Patch to the tests

     
  • tjm

    tjm - 2007-12-12

    Patch to docs

     
  • tjm

    tjm - 2007-12-12

    Logged In: YES
    user_id=114531
    Originator: YES

    File Added: udp_tcl_dstip_doc.diff

     

Log in to post a comment.