[RFC] script for binding ARP <-> IP pairs

Adrian Penisoara ady at freebsd.ady.ro
Tue Aug 11 00:01:37 UTC 2009


Hi,

On Mon, Aug 10, 2009 at 8:13 PM, Adrian Penisoara <ady at freebsd.ady.ro>wrote:

> Hi,
>
> On Mon, Aug 10, 2009 at 7:34 AM, Doug Barton <dougb at freebsd.org> wrote:
>
>> On Sun, 9 Aug 2009, Xin LI wrote:
>>
>>  Hi, Doug,
>>>
>>> Doug Barton wrote:
>>>
>>>> Xin LI wrote:
>>>>
>>>>  Thanks for your comments, I have put together the revised patch, along
>>>>> with rc.conf.5 and defaults/rc.conf changes.
>>>>>
>>>>
>>>> Glad to help. This looks fine except that you need an entry for
>>>> static_arp_enable in defaults rc.conf and rc.conf.5.
>>>>
>>>
>>> This script does not require the enable knob.  If the static_arp_pairs
>>> is not empty then the script would add the entries, otherwise it will
>>> not do that.  Do you think we need an "enable" knob for it?  I can add
>>> it but I don't feel strongly for the idea, since it would make a
>>> redundant entry to represent the same semantic.
>>>
>>
>> I missed the fact that you're not using rcvar. I'm sort of ambivalent
>> about that, as I prefer things to be
>
>
> I guess you could compare this to the cloned_interfaces rcvar...
>
>

I stand corrected: it's rather more similar to the "static_routes /
route_xxx" concept. I guess we have an entire class of such rc subroutines
which are not $name_enable'd.

Regards,
Adrian.


More information about the freebsd-rc mailing list