SUMMARY (first) how to modify /kernel/drv/ip parameters (with adb ?)

From: marc fradin (fradin@rsm.enst-bretagne.fr)
Date: Mon Mar 13 1995 - 06:14:46 CST


My question :
~~~~~~~~~~~~

Is it possible to modify, for example, the "default" value of ip_broadcast_ttl
in the
/kernel/drv/ip "object" file (like in /vmunix in SunOS ) ??

====================================

1)
The easiest way to modify, for example, the ip_broadcast_ttl parameter of
ip driver at boot time is to use "ndd" :
          ~~~~~~~~~~~~

        ndd -set /dev/ip ip_broadcast_ttl <VALUE>

and to put this command in a script e.g. /etc/rcS.d/S99change_ip_broadcast_ttl !

2)
another solution would be to set the good value in the /etc/system or
/kernel/ip/ip.conf :
        for example in /etc/system

                set ip:ip_broadcast_ttl = <VALUE>

but "ip_broadcast_ttl" is not a variable of the ip driver (just a string
used by ndd ) and ip.conf is undocumented in the official Sun
manuals ...

        maybe someone have useful documentation ?

3)
... solution 1 (and maybe 2 ?) does'nt solve my problem :

What I want to do is to boot a diskless station "accross" a (cisco) router !
That worked find in SunOS (because ip_broadcast_ttl whas greater than 1)
but not with solaris 2.4 (default value is 1) !

Is it why I would like to modify this value in the /kernel/drv/ip "object" file

I got this information :

> Yes, in the ip module there is an aray called "lcl_param_arr"
>
> This array constists of structs of the form:
>
> u_long min, u_long max, u_long value, char * name;
>
> Search thsi array for the tuple where the fourth parameter is
> a pointer to the string "ip_broadcast_ttl" and change the u_long
> before that value.

... but I just can find it in the core file of the kernel :

# adb -k -w /dev/ksyms /dev/mem
physmem 1e6d

adb > lcl_param_arr+0x160?DDDX
lcl_param_arr+0x160: 1 254 1
                fc17d0d0
adb > fc17d0d0?s
req_arr+0x268: ip_broadcast_ttl

.... not in the /kernel/drv/ip file (which is "relocatable" !?)

4)

        can someone help ?

thanks to :
~~~~~~~~~~~~~~~~

kevin@uniq.com.au
casper@fwi.uva.nl
jlf@medina.essi.fr
tkevans@eplrx7.es.duPont.com
Garry.Robbins@labatt.com
grobi@uni-paderborn.de
koen@ciminko.be
guy@netapp.com
see@uebemc.siemens.de
calum.mackay@mrc-bsu.cam.ac.uk

---
Marc Fradin                        Marc.Fradin@enst-bretagne.fr 
ENST BRETAGNE                      Phone : (33) 99 12 70 24
B.P. 78 		           Fax   : (33) 99 12 70 30
2 rue de la Chataigneraie          Telex : 741 906
35512 CESSON SEVIGNE - FRANCE



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:10:18 CDT