. HOME   . Linux   . 3DShooter   . Publications & Programming   . Bilder   . Gästebuch   . Links  

 

 

!! THIS WHOLE PAGE IS FOR EDUCATIONAL PURPOSE ONLY. USE THE INFOS ON UR OWN RISK !!


libsockip:
 

Overview: 
This is a functional shared library which can be used to change
the IP-Address sockets are bound to. This tool is only useful
if you have more than one IP-Address on your PC (eg. multi homed PCs).

For example this tool can be used to bind wget/links2/ftp to some other
than the default IP-Address.

How to use: 
0) open shell: eg "bash"
1) set LD_PRELOAD: "export LD_PRELOAD=/usr/lib/libsockip.so.1.0.1"
2) set LS_IP: "export LS_IP=x.x.x.x"
3) start program from current shell

Environment variables: 
LS_IP: IP Address to use.
LS_FORCE: Force bind() to not use parameter submitted IPs but instead LS_IP.
LS_DEBUG: Activate verbose messages.

Manual compilation: 
$ gcc -fPIC -rdynamic -g -c -Wall libsockip.c
$ gcc -shared -WI,-soname,libsockip.so.1 -o libsockip.so.1.0.1 libsockip.o -lc -ldl


Any comments/patches ? Just send them to me.


Sandhaas Tobias, sourceforge@ownz.de

Changelog:
[v1.0.1]  initial full working release

Credits:

Download:
Version Source 
1.0.1  libsockip.1.0.1.tar.gz 

2004