summaryrefslogtreecommitdiffstats
path: root/usr.sbin/rtadvd/rrenum.c
Commit message (Collapse)AuthorAgeFilesLines
* Stop including if_var.h from userland.glebius2015-04-061-1/+0
| | | | Sponsored by: Nginx, Inc.
* - Use time_uptime instead of time_second in data structures forhrs2013-08-051-3/+6
| | | | | | | | | PF_INET6 in kernel. This fixes various malfunction when the wall time clock is changed. Bump __FreeBSD_version to 1000041. - Use clock_gettime(CLOCK_MONOTONIC_FAST) in userland utilities. MFC after: 1 month
* Fix a typo in an error message.eadler2013-05-061-1/+1
| | | | Obtained From: DragonFlyBSD (commit 66e72101cc32272ae370b895ca3d9e3e99c5c3a8)
* - Refactoring the interface list. It now supports dynamicallyhrs2011-07-141-5/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Fix various inconsistencies in symbol naming and data handling whichhrs2011-06-041-72/+75
| | | | | | | | | | | | | | made the logic behind them unnecessarily complicated. This change is a preparation to add support of dynamically-added/removed interfaces and the link status changes in a more reliable way. Changes include: - Use queue(3) for linked-list manipulation. - Use consistent variable names. - Use (AF_INET6, s, d, sizeof(d)) instead of (AF_INET6, s, a, INET6_ADDRSTRLEN) for inet_ntop(). - style(9) fixes. No functional change in this commit.
* - Fixes for WARNS=6.hrs2011-06-041-3/+3
| | | | - Use IFNAMSIZ for an interface name.
* - Use IANA reserved example.com domain for rtadvd.conf(5).hrs2011-06-041-3/+2
| | | | | | | | - Fix 8-octet boundary calculation. Extra 8 octets were added when it was already on an 8-octet boundary. - Typos and style(9) fixes. Submitted by: bz
* - Remove #ifdef RDNSS.hrs2011-05-311-18/+19
| | | | | - Style(9). - Define sin6_{linklocal,sitelocal}_all{nodes,routers} vars consistently.
* Implemnt RDNSS and DNSSL options (RFC 6106, IPv6 Router Advertisementhrs2011-05-291-0/+1
| | | | | | | | | | | | | | | | | Options for DNS Configuration) into rtadvd(8) and rtsold(8). DNS information received by rtsold(8) will go to resolv.conf(5) by resolvconf(8) script. Lifetime handling is not supported at this moment. Note: when receiving a link-local scope address rtsold(8) adds a scope id into addresses in the script arguments based on the received interface in a representation defined in RFC 4007 (e.g. fe80::1%bge0). However, there are some shell scripts using printf(1) (including resolvconf(8)) cannot process it properly because printf(1) can recognize the character % as special. Based on work by: J.R. Oldroyd PR: kern/156259
* Properly convert bit value to a bit field. Before we were storingimp2009-02-191-2/+2
| | | | | | | | | | values like 0x80 or 0x40 into a uint8_t foo:1 bitfield. This would result in the bit always being 0. One of these caused a warning for overflow (one that was 0x80), but the other didn't. They were both wrong. This is why I hate code that mixes c struct bitfields and #defines. The rest of the fields accessed by the program should be audited.
* Fixed a misspelling of 0 as NULL.bde2004-03-101-1/+1
|
* reduce #ifdef.ume2003-08-111-2/+0
| | | | MFC after: 1 week
* KNF, correct typos and cleanup spaces.ume2003-08-081-2/+2
| | | | | Obtained from: KAME MFC after: 1 week
* __FUNCTION__ --> __func__ume2003-08-081-19/+19
| | | | | Obtained from: KAME MFC after: 1 week
* Sync with recent KAME.ume2001-06-111-13/+83
| | | | | | | | | | | | | | | | | | This work was based on kame-20010528-freebsd43-snap.tgz and some critical problem after the snap was out were fixed. There are many many changes since last KAME merge. TODO: - The definitions of SADB_* in sys/net/pfkeyv2.h are still different from RFC2407/IANA assignment because of binary compatibility issue. It should be fixed under 5-CURRENT. - ip6po_m member of struct ip6_pktopts is no longer used. But, it is still there because of binary compatibility issue. It should be removed under 5-CURRENT. Reviewed by: itojun Obtained from: KAME MFC after: 3 weeks
* make it easier to handle $FreeBSD$ tags (amount of diff matters).itojun2001-01-211-2/+1
|
* Sync with latest KAMEkris2000-07-051-15/+19
| | | | Obtained from: KAME
* Added several socket close() which were mistakenly forgotten.shin2000-03-091-7/+8
| | | | Reported by: Hidetoshi Shimokawa <simokawa@sat.t.u-tokyo.ac.jp>
* libipsec and IPsec related apps. (and some KAME related man pages)shin2000-01-061-0/+414
Reviewed by: freebsd-arch, cvs-committers Obtained from: KAME project
OpenPOWER on IntegriCloud