Converting Multicast Group IP into MAC.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • libra
    New Member
    • Aug 2007
    • 1

    Converting Multicast Group IP into MAC.

    There is an algorithm how to use 23 last bits of multicast IP address into mac address by adding 01-00-5e- to convert it into MAC address.

    I know how to do it in C, but need it in java. The C version
    uses unsigned int and java does not have it. I implemented it
    by using jni.

    Is anyone aware about pure java implementation?

    Thanks,
    Libra
  • prometheuzz
    Recognized Expert New Member
    • Apr 2007
    • 197

    #2
    Originally posted by libra
    There is an algorithm how to use 23 last bits of multicast IP address into mac address by adding 01-00-5e- to convert it into MAC address.

    I know how to do it in C, but need it in java. The C version
    uses unsigned int and java does not have it. I implemented it
    by using jni.

    Is anyone aware about pure java implementation?

    Thanks,
    Libra
    Just AND it with 0x7fffff.

    Comment

    Working...