troglobit / pimd

PIM-SM/SSM multicast routing for UNIX and Linux
http://troglobit.com/projects/pimd/
BSD 3-Clause "New" or "Revised" License
194 stars 86 forks source link

Make SSM virtual RP address endian-independent #99

Closed jp-t closed 7 years ago

jp-t commented 7 years ago

Replace the hard-coded byte-inverted hex code for 169.254.0.1, which is 0x0100fea9, with htonl(0xa9fe0001) to support big-endian architectures.

This is needed since add_rp_grp_entry() ultimately passes the address to inet_valid_host() and ntohl().

Signed-off-by: Jean-Pierre Tosoni jp.tosoni@acksys.fr

jp-t commented 7 years ago

This is my first time creating a pull request - please forgive my mistakes!

troglobit commented 7 years ago

Looks great, thanks! :)