Look @ tthe source for ndd itself.

Shreyas Bhatewara <[email protected]> wrote:

>On Sat, Oct 2, 2010 at 12:20 PM, Garrett D'Amore <[email protected]> wrote:
>
>> On Fri, 2010-10-01 at 16:04 -0700, Shreyas Bhatewara wrote:
>> > Hello Folks,
>> >
>> > I have a NIC (Network) driver in which I am trying to add jumbo frame
>> support. What callback should be registered in the NIC driver to be able to
>> get a call when user changes MTU on the interface ?
>> >
>> > Eg: if someone calls the following -
>> > ifconfig em0 mtu 9000
>> >
>> > Where will the control come in the driver ? I tried ioctl with
>> SIOCSIFMTU, but it dows not get called. I tried defining propset in
>> mc_callbacks but it is not available in Solaris 10 u6. I just need an entry
>> point in driver when MTU is changed.
>> >
>> > Any help is appreciated.
>> >
>> > Thanks.
>>
>>
>> There is no standard way to do this on Solaris 10.  (The semi standard
>> way is to use the undocumented NDIOCTL interface for ndd.  I did this
>> for an older version of "afe" at one point.)
>>
>>
>
>Thanks for your response Garrett.
>
>I tried finding NDIOCTL, could not find any such symbol in the header files
>(/usr/include/sys) . I also tried using nd_load (with strings like
>"mtu_changes" or "enable_jumbo") but the 'nd_load' symbol also does not
>exist in Solaris u6.
>
>Can you please name some header file which I can search or point to
>implementation of the NDIOCTL anywhere ? All I need is a trigger in driver
>saying MTU was changed.
>
>Thanks.
>->Shreyas
>
>
>
>> One hackish way to do it for S10 is to use driver.conf properties.  This
>> was pretty common with drivers on S10.
>>
>> On OpenSolaris/Solaris Next/illumos you would see the setprop entry
>> point get called.
>>
>>        - Garrett
>>
>>
>>
_______________________________________________
networking-discuss mailing list
[email protected]

Reply via email to