Hi. In the latest LiS-2.6 I found the following lines were added to the
beginning of ip_strm_mod (line 35-53). These are almost exactly what I
want to do. However after some struggle I found my knowledge too limited
even to follow the instructions given so I would greatly appreciate it
if someone give me more detailed instructions:
* Open your DLPI stream file.
Does the DLPI stream file here mean /dev/ldl ?
* Push this module.
I believe this means ioctl(fd, I_PUSH, "ip_to_streams");
* Do DLPI attach and bind.
I guess this means calling do_attach() and do_bind() in
ldltest.c.
* Send SIOCSIFNAME ioctl with the desired interface name.
How do I do this exactly? Could someone please show me several
lines in C doing this?
In ip_strm_mod.h I see:
#define SIOCSIFNAME 0x89FF
while in linux-2.2.13/include/linux/sockios.h I see:
#define SIOCSIFNAME 0x8923
Which one should I use?
* The ioctl causes the module to register itself with IP as a network
* interface driver.
I guess this means I can see my own device name if I do
"/sbin/ifconfig -a", right?
* Do the appropriate ifconfig and route commands.
*
* You can tear down the IP side by doing ifconfig <name> off. You can
* tear down the whole thing by closing the streams file.
Hopefully I can work these out when the above steps are done.
Thanks a lot for your help in advance!
- Hao
----------------------- *THE_LIST_HAS_MOVED* -------------------------------
It is now hosted at gsyc.escet.urjc.es.
To (un)subscribe send a mail to <[EMAIL PROTECTED]>
To send a contribution send a mail to <[EMAIL PROTECTED]>
Web archives for lists can be found at http://gsyc.escet.urjc.es/lists