]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
- Refactoring the interface list. It now supports dynamically
authorhrs <hrs@FreeBSD.org>
Thu, 14 Jul 2011 10:09:58 +0000 (10:09 +0000)
committerhrs <hrs@FreeBSD.org>
Thu, 14 Jul 2011 10:09:58 +0000 (10:09 +0000)
commitcdcbea6ad239dd44f37a01b119599e17dac4a5a8
treec97e2a5f6ba4790dc756b51374a4d00de9f4ecae
parent90aa2cef03ff2efa8e9af771632eb3d02d0df168
- Refactoring the interface list.  It now supports dynamically
  added/removed interfaces in a more consistent manner and reloading
  the configuration file.

- Add initial support for control socket.  RA information in the
  daemon can be obtained by rtadvctl(8) instead of SIGUSR1 in a similar
  manner to ifconfig(8).  The information dump has been removed in favor of it.

  (reload the configuration file)
  # rtadvctl reload

  (show RA messages being sent on each interfaces)
  # rtadvctl show
  em0: flags=<UP,CONFIGURED,PERSIST> status=<RA_SEND> mtu 1280
        DefaultLifetime: 30m
        MinAdvInterval/MaxAdvInterval: 3m20s/3m20s
        AdvLinkMTU: <none>, Flags: O, Preference: medium
        ReachableTime: 0s, RetransTimer: 0s, CurHopLimit: 64
        AdvIfPrefixes: yes

  (show RA messages being sent only on em0)
  # rtadvctl show em0

  (rtadvctl -v show provides additional information)
  # rtadvctl -v show em0
  em0: flags=<UP,CONFIGURED,PERSIST> status=<RA_SEND> mtu 1280
        DefaultLifetime: 30m
        MinAdvInterval/MaxAdvInterval: 3m20s/3m20s
        AdvLinkMTU: <none>, Flags: O, Preference: medium
        ReachableTime: 0s, RetransTimer: 0s, CurHopLimit: 64
        AdvIfPrefixes: yes
        Prefixes (1):
          2001:db8:1::/64 (CONFIG, vltime=30d, pltime=7d, flags=LA)
        RDNSS entries:
          2001:db8:1::128 (ltime=2m40s)

  (stop rtadvd)
  # rtadvctl shutdown

  A remaining issue when reloading the configuration file is that
  during that period rtadvd cannot communicate with rtadvctl due to some
  additional RA sending for graceful shutdown.  This will be fixed later.
25 files changed:
usr.sbin/Makefile
usr.sbin/rtadvctl/Makefile [new file with mode: 0644]
usr.sbin/rtadvctl/rtadvctl.8 [new file with mode: 0644]
usr.sbin/rtadvctl/rtadvctl.c [new file with mode: 0644]
usr.sbin/rtadvd/Makefile
usr.sbin/rtadvd/config.c
usr.sbin/rtadvd/config.h
usr.sbin/rtadvd/control.c [new file with mode: 0644]
usr.sbin/rtadvd/control.h [new file with mode: 0644]
usr.sbin/rtadvd/control_client.c [new file with mode: 0644]
usr.sbin/rtadvd/control_client.h [new file with mode: 0644]
usr.sbin/rtadvd/control_server.c [new file with mode: 0644]
usr.sbin/rtadvd/control_server.h [new file with mode: 0644]
usr.sbin/rtadvd/dump.c [deleted file]
usr.sbin/rtadvd/if.c
usr.sbin/rtadvd/if.h
usr.sbin/rtadvd/pathnames.h
usr.sbin/rtadvd/rrenum.c
usr.sbin/rtadvd/rtadvd.8
usr.sbin/rtadvd/rtadvd.c
usr.sbin/rtadvd/rtadvd.h
usr.sbin/rtadvd/timer.c
usr.sbin/rtadvd/timer.h
usr.sbin/rtadvd/timer_subr.c [new file with mode: 0644]
usr.sbin/rtadvd/timer_subr.h [moved from usr.sbin/rtadvd/dump.h with 66% similarity]