BINDING APPLICATIONS TO A SPECIFIC IP
I.e. for different network cards, virtual IPs for shared servers or just using WiFi and a wired network connection at the same time on a laptop.
daniel@server:~$ route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 192.0.2.1 0.0.0.0 U 0 0 0 eth0 0.0.0.0 192.0.2.2 0.0.0.0 U 0 0 0 eth1 0.0.0.0 192.0.2.3 0.0.0.0 U 0 0 0 eth2 0.0.0.0 192.0.2.4 0.0.0.0 U 0 0 0 eth3
cp -i bind.so /usr/lib/
- Daniel Ryde did not specify the -D_GNU_SOURCE in the comments section of bind.c. Modern glibc/gcc need that as he used RTLD_NEXT which is Unix98 and not POSIX. I amended the local copy of bind.c and sent him an email so he can update his.
- Both are IPv4 only, no IPv6 support.