Link [ NetBSD | NetBSD OpenGrok source search | PR fulltext-search | Summary of daily snapshot builds | history of daily build result | pkgsrc commit viewer ]


   
        usage: [branch:branch] [user:user] [path@revision] keyword [... [-excludekeyword [...]]] (e.g. branch:MAIN sys/arch/arm, if_wm.c@1.234 )




switch to index mode

recent branches: MAIN (9m)  netbsd-10 (4d)  netbsd-9 (4d)  netbsd-8 (9d) 

2024-05-20 19:46:15 UTC Now

2023-12-18 16:03:26 UTC MAIN commitmail json YAML

2023-12-18 15:52:37 UTC MAIN commitmail json YAML

2023-12-18 15:51:28 UTC MAIN commitmail json YAML

2023-10-19 11:27:57 UTC MAIN commitmail json YAML

Note import of dhcpcd-10.0.4

(roy)

2023-10-19 11:26:52 UTC MAIN commitmail json YAML

2023-10-06 08:53:14 UTC MAIN commitmail json YAML

Note update to dhcpcd-10.0.3

(roy)

2023-10-06 08:49:42 UTC MAIN commitmail json YAML

2023-07-19 13:59:02 UTC MAIN commitmail json YAML

Note import of dhcpcd-10.0.2

(roy)

2023-07-19 13:53:03 UTC MAIN commitmail json YAML

2023-06-27 17:10:15 UTC MAIN commitmail json YAML

Note update to openresolv-3.13.2

(roy)

2023-06-27 17:07:53 UTC MAIN commitmail json YAML

2023-04-27 13:21:59 UTC MAIN commitmail json YAML

dhcpcd: Fix non INET6 builds.

Thanks to J. Hannken-Illjes for the fix.

(roy)

2023-04-21 17:00:06 UTC MAIN commitmail json YAML

Note update to dhcpcd-10.0.1

(roy)

2023-04-21 16:54:26 UTC MAIN commitmail json YAML

2022-11-15 10:47:39 UTC MAIN commitmail json YAML

arp: Validate ARP source hardware address matches Ethernet source

RFC 5227 section 1.1 states that for a DaD ARP probe the sender hardware
address must match the hardware address of the interface sending the
packet.

We can now verify this by checking the mbuf tag PACKET_TAG_ETHERNET_SRC.

This fixes an obsure issue where an old router was sending out bogus
ARP probes.

Thanks to Ryo Shimizu <ryo@nerv.org> for the re-implementation.

(roy)

2022-11-15 09:15:44 UTC MAIN commitmail json YAML

2022-11-15 09:14:28 UTC MAIN commitmail json YAML

2022-11-15 09:13:43 UTC MAIN commitmail json YAML

Revert prior.

(roy)

2022-11-14 10:15:08 UTC MAIN commitmail json YAML

Adjust comment for new sizes.

Thanks to Kengo NAKAHARA <k-nakahara@iij.ad.jp>

(roy)

2022-11-14 09:32:21 UTC MAIN commitmail json YAML

arp: Validate L2 sender hardware address matches ARP probe

RFC 5227 section 1.1 states that for a DaD ARP probe the sender hardware
address must match the hardware address of the interface sending the
packet.

We can now verify this by checking the mbuf packet header.

This fixes an obsure issue where an old router was sending out bogus
ARP probes.

(roy)

2022-11-14 09:23:42 UTC MAIN commitmail json YAML

net: Store a pointer to the Layer 2 Sender Hardware address in mbuf

The BSD networking stack is designed around passing a mbuf down the chain
and each layer removes the part it's interested in before passing it to
the next. This makes it easy for each layer to do it's work,
but non trivial to work backwards.

As such we now store a pointer to the Senders Hardware address in the
mbuf packet header so that protocols can perform any required validation.

(roy)

2021-12-22 00:21:32 UTC MAIN commitmail json YAML

Handle the SIOCGNBRINFO ioctl for compat32.
arp -a works with compat32 now.

Credit to simonb@ for the ndp fix from which this is cribbed.

(roy)

2021-12-21 15:27:19 UTC MAIN commitmail json YAML

Fix build of xlint/line1 with OBJDIR set.

(roy)

2021-10-22 13:32:28 UTC MAIN commitmail json YAML

Note update to dhcpcd-9.4.1

(roy)

2021-10-22 13:25:58 UTC MAIN commitmail json YAML

2021-10-22 13:23:20 UTC MAIN commitmail json YAML

2021-10-19 20:01:09 UTC MAIN commitmail json YAML

netinet: Allow binding the unspecified address when no addresses exist

You should always be able to bind to the unspecified address even if
no addresses have been configured on any interface.

For example, a DHCP client could be started before the loopback interface
has been fully configured.

(roy)

2021-02-14 19:47:17 UTC MAIN commitmail json YAML

if_arp: Just KASSERT that arphrd is aligned

While here improve readability of checking ARP IEEE1394 matches interface.

(roy)

2021-02-14 19:35:38 UTC MAIN commitmail json YAML

if_ether: revert prior alignment checks

Apparently not needed as our drivers ensure this.

(roy)

2021-02-14 19:33:29 UTC MAIN commitmail json YAML

if_gre: Remove alignment checks in favour copying to stack

Makes the code a lot simpler, idea from dyoung@

(roy)

2021-02-13 13:00:16 UTC MAIN commitmail json YAML

2021-02-13 07:57:09 UTC MAIN commitmail json YAML

if_arp: Ensure that arphdr is aligned

(roy)

2021-02-13 07:28:05 UTC MAIN commitmail json YAML

if_ether: Ensure that ether_header is aligned

(roy)

2021-02-12 19:57:49 UTC MAIN commitmail json YAML

if_gre: Ensure that gre_h is aligned

(roy)

2021-02-03 18:13:14 UTC MAIN commitmail json YAML

2021-02-03 17:10:13 UTC MAIN commitmail json YAML

2021-02-03 12:11:34 UTC MAIN commitmail json YAML

if_llc.h: Replace __packed with CTASSERT

(roy)

2021-02-03 11:53:43 UTC MAIN commitmail json YAML

2021-02-03 11:52:23 UTC MAIN commitmail json YAML

tcp_debug: restore __packed

(roy)

2021-02-03 10:31:10 UTC MAIN commitmail json YAML

2021-02-03 06:51:26 UTC MAIN commitmail json YAML

tftp: no longer need packed member warning

(roy)

2021-02-03 06:50:08 UTC MAIN commitmail json YAML

rtadvd: no longer need packed member warning

(roy)

2021-02-03 06:49:18 UTC MAIN commitmail json YAML

traceroute: no longer need gcc packed member warning

(roy)

2021-02-03 06:46:27 UTC MAIN commitmail json YAML

ldpd: Discard warning about accessing packed member

I don't see a good way of fixing this right now.

(roy)

2021-02-03 06:42:50 UTC MAIN commitmail json YAML

2021-02-03 05:51:40 UTC MAIN commitmail json YAML

2021-01-31 08:27:49 UTC MAIN commitmail json YAML

ntpd: ignore errno EINTR on reads from the routing socket

(roy)

2021-01-31 08:26:47 UTC MAIN commitmail json YAML

ntpd: move route socket overflow message from LOG_ERR to LOG_DEBUG

While here stop caring about RTM_LOSING as that's purely informational.
If routing does change then we get RTM_ADD/DEL/CHANGE.
Also stop caring about RTM_IFANNOUNCE as we really only want addresses
and interface flag updates which we get by RTM_NEWADDR/DELADDR/CHGADDR and
RTM_IFINFO.

(roy)

2021-01-03 15:33:05 UTC MAIN commitmail json YAML

ntp: respect user's wishes to disable interface scanning

While here, disable periodic scanning by default on NetBSD as it's
no longer needed.
The user can still enable it though with a positive number to the -U
option.

kardel@ So far I see no other issues from the pitfalls I know of

(roy)

2021-01-01 23:24:31 UTC MAIN commitmail json YAML

libunbound: Enforce that mini_event isn't used by include/config.h

As I tire of fixing it to use libevent.

(roy)

2021-01-01 23:17:15 UTC MAIN commitmail json YAML

Revert prior

With the correct #defines mini_event.c and winsock_event.c are
compiled but practically unused.

What is exposed is not part of the public API, but appease the
peanut gallery.

(roy)

2021-01-01 20:38:36 UTC MAIN commitmail json YAML

libunbound: Now we use libevent, don't build mini_event or winsock_event.

(roy)

2021-01-01 20:16:16 UTC MAIN commitmail json YAML

libunbound: actually use libevent as we link to it

Would appreciate if people modify this file to actually test what
polling mechanism unbound uses as select(2) is pretty poor.

(roy)

2021-01-01 17:21:47 UTC MAIN commitmail json YAML

ntpd: In the event of route(4) overflow, update the interfaces

(roy)

2021-01-01 14:57:14 UTC MAIN commitmail json YAML

wpa: If route socket overflows, sync drivers to system interfaces

Messages such as RTM_IFNFO or RTM_IFANNOUNCE could have been lost.
As such, sync the state of our internal driver to the state of the
system interfaces as reported by getifaddrs(2).

This change requires the routing socket be placed in non-blocking
mode. While here, set the routing and inet sockets to close on exec.

(roy)

2020-12-28 13:59:50 UTC MAIN commitmail json YAML

Note update to dhcpcd-9.4.0

(roy)

2020-12-28 13:57:40 UTC MAIN commitmail json YAML

2020-12-27 18:28:25 UTC MAIN commitmail json YAML

Note openresolv-3.12.0 update

(roy)

2020-12-27 18:26:50 UTC MAIN commitmail json YAML

2020-12-13 00:37:43 UTC MAIN commitmail json YAML

t_ossaudio was installed for clang, so remove gcc marking

(roy)

2020-12-13 00:04:40 UTC MAIN commitmail json YAML

diffutils: execl requires a NULL sentinel

(roy)

2020-11-28 14:29:25 UTC MAIN commitmail json YAML

Note update to dhcpcd-9.3.4

(roy)

2020-11-28 14:27:20 UTC MAIN commitmail json YAML

2020-11-20 13:33:07 UTC MAIN commitmail json YAML

Note import of dhcpcd-9.3.3

(roy)

2020-11-20 13:24:58 UTC MAIN commitmail json YAML

2020-11-02 12:14:59 UTC MAIN commitmail json YAML

bridge: revert prior

It's of little use.
If we need to do this in the future, consider a sysctl to do it for all
interfaces in the bridge and not just the one being added.

(roy)

2020-11-01 14:25:48 UTC MAIN commitmail json YAML

2020-11-01 14:24:01 UTC MAIN commitmail json YAML

2020-10-25 08:18:39 UTC MAIN commitmail json YAML

l2tp: call if_link_state_change rather then directly setting it.

This allows protocols to do their thing.

(roy)

2020-10-25 08:15:54 UTC MAIN commitmail json YAML

l2tp: Revert prior

It proves I can't read comments and that if_initialize should not be used.

(roy)

2020-10-24 14:45:06 UTC MAIN commitmail json YAML

2020-10-24 14:43:53 UTC MAIN commitmail json YAML

libossaudio: return newfd here as we return retval elsewhere

(roy)

2020-10-20 18:17:58 UTC MAIN commitmail json YAML

le(4): add link status change reporting to drivers which support it

Reviewed by thorpej@
Tested by martin@

(roy)

2020-10-16 16:17:23 UTC MAIN commitmail json YAML

wg: Fix tests by sprinkling ifconfig -w 10

So protocols have time to finish setup.

(roy)

2020-10-15 10:20:44 UTC MAIN commitmail json YAML

net: remove IFEF_NO_LINK_STATE_CHANGE

This flag was only set for virtual interfaces.
All virtual interfaces have a means of knowing if they are going to work
or not and as such now support link state changes.

If we want this flag back, it should be used as an indicator that
the interfaces does not support link state changes that userland can use
so it can make a decision on what to do when the link state is UNKNOWN.

(roy)

2020-10-15 10:09:50 UTC MAIN commitmail json YAML

wg: with no peers, the link status is DOWN, otherwise UP

This mirrors the recent changes to gif(4) where the link is UP when a
tunnel is set, otherwise DOWN.

(roy)

2020-10-15 02:54:10 UTC MAIN commitmail json YAML

l2tp: Set the link state UP if we have a tunnel, otherwise DOWN.

(roy)

2020-10-14 18:48:05 UTC MAIN commitmail json YAML

ipsecif: Set the link state UP if we have a tunnel, otherwise DOWN.

(roy)

2020-10-14 16:10:32 UTC MAIN commitmail json YAML

loop: set LINK_STATE_UP a touch earlier

(roy)

2020-10-14 15:55:49 UTC MAIN commitmail json YAML

loop: this interface's link state cannot be anything other than UP

Let's not pretend it's UNKNOWN anymore.

(roy)

2020-10-14 15:22:17 UTC MAIN commitmail json YAML

gif: Set the link state UP if we have a tunnel, otherwise DOWN.

(roy)

2020-10-14 13:43:56 UTC MAIN commitmail json YAML

carp: Don't set a link level address if vhid == -1

Link level address for carp is dervied from vhid.
Until vhid is set, carp is useless, so don't give it a link level address
until a vhid is set.

This fixes recent test case breakage where carp was fixed to actually
print the ethernet address set by default. Note that neither carp nor
the test case itself was actually broken as the error is the common
ATF net code assuming that a cloned interface's link level address is
unique upon creation.

(roy)

2020-10-14 13:37:14 UTC MAIN commitmail json YAML

ifconfig: go back to using direct ioctls rather than data from getifaddrs

AF_LINK may not be the first address returned for the interface.
Technically, it *might* not even exist on the interface even though
other families do.
This is likely a driver bug if this really is the case though.

As such it's just easier to use direct ioctls rather than thump around
getifaddrs results. As it stands, the code makes a lot of getifaddrs
calls anyway, so an extra ioctl or two won't break the bank.

(roy)

2020-10-12 16:54:43 UTC MAIN commitmail json YAML

powerd: Stop crashing if entries are not found in the dictionary

If the first three are not found, log a diagnostic and do nothing.
If the latter two are not found, set them to NULL rather than garbage.

(roy)

2020-10-12 15:18:48 UTC MAIN commitmail json YAML

carp: link state is DOWN until it becomes a MASTER

This is consitent with other BSD's handling of CARP and means
we don't have to carry a custom flag for it.

(roy)

2020-10-12 14:10:38 UTC MAIN commitmail json YAML

Note update to dhcpcd-9.3.1

(roy)

2020-10-12 14:09:03 UTC MAIN commitmail json YAML

2020-10-12 11:07:27 UTC MAIN commitmail json YAML

carp: Set ethernet address just before interface registation

Otherwise ifconfig reports SIOCGLIFADDR errors.

(roy)

2020-10-11 21:32:37 UTC MAIN commitmail json YAML

ifconfig: if SIOCGLIFADDR fails, continue to the next address

(roy)

2020-10-09 08:10:41 UTC MAIN commitmail json YAML

carp: Remove media, software should use link status.

carp literally has no media just like ppp, vlan, etc.

(roy)

2020-10-06 23:51:06 UTC MAIN commitmail json YAML

net80211: Initialise the interface with a decent link state.

Link state transitions to UP when a node is joined and DOWN when left.
This means that with the interface UP, the link state could be UNKNOWN
for a while, implying it can be used in BSS mode.
Which is of course false.

Add a function to set an initial link state based on the operating mode.
Also call this when the operating mode changes.

Basically in BSS and MONITOR it starts off down.
BSS will transition UP and DOWN as before, MONITOR will stay down.
IBSS, AHDEMO and HOSTAP will remain as link unknown because the state is
..... unknown.

(roy)

2020-10-05 17:29:22 UTC MAIN commitmail json YAML

Minor correction to prior

(roy)

2020-10-05 16:17:05 UTC MAIN commitmail json YAML

ifconfig: Warn once more if media supported but no types

This reverts media.c -r1.7

(roy)

2020-10-05 16:11:25 UTC MAIN commitmail json YAML

ppp: Remove media

There is none after all.
Applications should be using ifi_link_state and not checking media.

(roy)

2020-10-05 16:04:11 UTC MAIN commitmail json YAML

Note import of dhcpcd-9.3.0

(roy)

2020-10-05 16:02:15 UTC MAIN commitmail json YAML

2020-10-05 08:38:18 UTC MAIN commitmail json YAML

soreadable() should consider so_rerror

(roy)

2020-10-04 20:36:32 UTC MAIN commitmail json YAML

ifwatchd: Enable SO_RERROR to re-sync interface state.

Interface arrival, departure and link state changes will sync
and if different will be actioned.

Currently we do not track addresses, so any changes there are still lost.

(roy)

2020-09-30 20:20:53 UTC MAIN commitmail json YAML

Add if_tap directory for DEBUG builds.

(roy)

2020-09-30 17:14:11 UTC MAIN commitmail json YAML

Be like other tests and speciy the binary name we install

(roy)

2020-09-30 17:05:59 UTC MAIN commitmail json YAML

2020-09-30 14:54:33 UTC MAIN commitmail json YAML

2020-09-30 14:43:15 UTC MAIN commitmail json YAML

tap(4): update the test so that we can open the tap to ping across a bridge

ping with tap closed to ensure it fails
ping with tap open to ensure it works

(roy)

2020-09-29 19:41:48 UTC MAIN commitmail json YAML

2020-09-29 19:33:36 UTC MAIN commitmail json YAML

inet: Treat LINK_STATE_UNKNOWN as LINK_STATE_UP when changing

It's something we have always done.
it's really rare for anything to transition to UNKNOWN from either
UP or DOWN, but technically it is possible.

(roy)

2020-09-29 18:33:23 UTC MAIN commitmail json YAML

2020-09-29 18:31:31 UTC MAIN commitmail json YAML

libtap: Improve comment

(roy)

2020-09-29 16:35:42 UTC MAIN commitmail json YAML

2020-09-29 16:34:08 UTC MAIN commitmail json YAML

2020-09-29 12:04:48 UTC MAIN commitmail json YAML

xinstall: define MAKE_NATIVE so our make parts compile

(roy)

2020-09-28 13:50:22 UTC MAIN commitmail json YAML

ifconfig: Just look at if_data->ifi_link_state for carrier

It should be the sole source of truth.
if_data is also carried in ifa_data from getifaddrs(3) which saves
more ioctl calls.

(roy)

2020-09-27 19:55:22 UTC MAIN commitmail json YAML

ifwatchd: remove SIOCGIFDATA and SIOCGIFMEDIA ioctls

getifaddrs(3) and route(4) provide all the data we need.

(roy)

2020-09-27 19:36:54 UTC MAIN commitmail json YAML

Note that opening and closing the tun/tap devices affects link state.

And how this influences Duplicate Address Detection.

(roy)

2020-09-27 19:25:54 UTC MAIN commitmail json YAML

tun: Report link state based on if the interface has been opened or not

This mirrors tap(4).

(roy)

2020-09-27 19:16:28 UTC MAIN commitmail json YAML

bridge: When an interface joins then mark addresses on it as tentative

The exact flow is detatch addresses, join bridge and then mark detached
addresses as tentative.
This ensures that Duplicate Address Detection for the joining interface
are performed across all members of the bridge.

(roy)

2020-09-27 19:08:11 UTC MAIN commitmail json YAML

Wups, forgot to commit this with vether.

(roy)

2020-09-27 15:42:48 UTC MAIN commitmail json YAML

bridge(4): Note that the bridge does not allow assignment of IP addresses

Document using vether(4) instead to get the same effect.

(roy)

2020-09-27 15:19:04 UTC MAIN commitmail json YAML

tap(4): Improve the description to differentiate from vether(4)

(roy)

2020-09-27 13:48:55 UTC MAIN commitmail json YAML

2020-09-27 13:46:19 UTC MAIN commitmail json YAML

Note import of vether(4)

(roy)

2020-09-27 13:44:47 UTC MAIN commitmail json YAML

tap: Report link state based on if the interface has been opened or not

While a nice addition, it does render tap(4) useless as a bridge(4)
endpoint. We now have vether(4) for use as bridge endpoint.

(roy)

2020-09-27 13:31:04 UTC MAIN commitmail json YAML

vether: Implement a virtual ethernet interface

The vether interface simulates a normal Ethernet interface by encapsulating
standard network frames with an Ethernet header, specifically for use as
a member in a bridge(4).

To use vether the administrator needs to configure an address onto the
interface so that packets can be routed to it. An Ethernet header will
be prepended and, if the vether interface is a member of a bridge(4),
the frame will show up there.

Taken from OpenBSD.

(roy)

2020-09-27 00:34:44 UTC MAIN commitmail json YAML

rump: Add weak alias for bridge_calc_link_state

(roy)

2020-09-27 00:32:17 UTC MAIN commitmail json YAML

bridge: Calculate link state as the best link state of any member

If any member is LINK_STATE_UP then it's LINK_STATE_UP.
Otherwise if any member is LINK_STATE_UNKNOWN then it's LINK_STATE_UNKNOWN.
Otherwise it's LINK_STATE_DOWN.

(roy)

2020-09-27 00:17:56 UTC MAIN commitmail json YAML

2020-09-26 23:43:26 UTC MAIN commitmail json YAML

ifconfig: We already have struct if_data in ifa_data.

So let's not bother with an ioctl we don't need.

(roy)

2020-09-26 19:38:45 UTC MAIN commitmail json YAML

tap: Remove media from this virtual interface

It serves no purpose at all.

(roy)

2020-09-26 18:38:09 UTC MAIN commitmail json YAML

vlan: match the interface link state with that of the parent

Now addresses on a vlan will detach and undergo duplicate address
dectection on link state changes just as on a standard interface.

(roy)

2020-09-26 18:35:12 UTC MAIN commitmail json YAML

net: Add a callback to ifnet to notify of link state changes

(roy)

2020-09-26 11:57:05 UTC MAIN commitmail json YAML

net: Fix the setting of if_link_state

Link state changes are not dependant on the interface being up, but we also
need to guard against more link state changes being scheduled when the
interface is being detached.

We do this by clearing the link queue but keeping if_link_sheduled = true.
We can check for this in both if_link_state_change() and
if_link_state_change_work() to abort early as there is no point in doing
anything if the interface is being detached because if_down() is called
in if_detach() after the workqueue has been drained to the same overall
effect.

(roy)

2020-09-23 10:48:12 UTC MAIN commitmail json YAML

ifconfig: test cases want LINK_STATE_UNKNOWN to be treated as up.

(roy)

2020-09-23 02:32:04 UTC MAIN commitmail json YAML

ifwatchd: Check link state if no media is supported on initial ups.

We can check this via SIOCGIFDATA and ifi_link_state.

(roy)

2020-09-23 02:09:18 UTC MAIN commitmail json YAML

ifconfig: teach carrier test about ifi_link_state from SIOCGIFDATA

Because not all interfaces support media.

(roy)

2020-09-22 14:14:17 UTC MAIN commitmail json YAML

ifconfig: Report link state even if media is not supported

For AF_LINK addrs from getifaddrs(2), ifa_data is struct if_data.
This in turn holds ifi_link_state which we can use to report
link status if the interface does not support media where it's normally
reported.

Based on OpenBSD.

(roy)

2020-09-18 16:33:49 UTC MAIN commitmail json YAML

arp tests: Delete ARP entry after failed ping test

As it might hang around in WAITDELETE for a few seconds.

(roy)

2020-09-17 11:56:35 UTC MAIN commitmail json YAML

ndp_rtm: Only ping once

Pointless doing 3 pings.
On a slow system, it's possible that many RTM_MISS messages could
overflow into the next test.

(roy)

2020-09-17 11:51:01 UTC MAIN commitmail json YAML

arp_rtm: Only ping once

Pointless doing 10 pings.
On a slow system, it's possible that many RTM_MISS messages could
overflow into the next test.

(roy)

2020-09-16 13:47:00 UTC MAIN commitmail json YAML

Note ND changes for ARP and RFC 7048.

(roy)

2020-09-16 13:42:05 UTC MAIN commitmail json YAML

9.99.73 welcomes SIOCGNBRINFO

(roy)

2020-09-15 23:40:03 UTC MAIN commitmail json YAML

nd: give missed a default of ND_LLINFO_NOSTATE

It's impossible to miss from this state, where-as 0 is ND_LLINFO_INCOMPLETE
which we can miss from.

(roy)

2020-09-15 11:19:10 UTC MAIN commitmail json YAML

Don't check lifetime when testing published

(roy)

2020-09-15 11:14:16 UTC MAIN commitmail json YAML

arp: Permanence is from the llentry, not the route

(roy)

2020-09-15 10:11:36 UTC MAIN commitmail json YAML

2020-09-15 10:11:15 UTC MAIN commitmail json YAML

2020-09-15 10:05:37 UTC MAIN commitmail json YAML

Implement RFC 7048, making Neighbor Unreachability Detection less impatient

RFC 7048 Section 3 says in the UNREACHABLE state packets continue to be
sent to the link-layer address and then backoff exponentially.
We adjust this slightly and move to the INCOMPLETE state after
`nd_mmaxtries` probes and then start backing off.

This results in simpler code whilst providing a more robust model which
doubles the time to failure over what we did before.
We don't want to be back to the old ARP model where no unreachability
errors are returned because very few applications would look at
unreachability hints provided such as ND_LLINFO_UNREACHABLE or RTM_MISS.

(roy)

2020-09-14 15:09:57 UTC MAIN commitmail json YAML

nd: Name l3addr union of llentry and use in-place of nd_addr.

Probably makes more sense and makes nd.h less messy.

(roy)

2020-09-13 14:36:32 UTC MAIN commitmail json YAML

arp test: Use the ndp cache expiration test in place of the old one

As the logic is the same.
While here, GC some variables and comment out a redundant sleep.

(roy)

2020-09-13 11:48:45 UTC MAIN commitmail json YAML

nd needs arp or inet6. inet is not enough.

(roy)

2020-09-13 11:47:12 UTC MAIN commitmail json YAML

inet: Fix build without ARP

(roy)

2020-09-12 12:11:19 UTC MAIN commitmail json YAML

2020-09-12 10:44:32 UTC MAIN commitmail json YAML

rump: Add nd.c to libnet

(roy)

2020-09-12 01:36:26 UTC MAIN commitmail json YAML

kdump: include netinet/in_var.h to access in_nbrinfo

(roy)

2020-09-11 15:28:29 UTC MAIN commitmail json YAML

2020-09-11 15:22:13 UTC MAIN commitmail json YAML

inet: Add SIOCGNBRINFO to retrieve neighbor state about an address

(roy)

2020-09-11 15:19:31 UTC MAIN commitmail json YAML

in: No need to set expire here anymore

(roy)

2020-09-11 15:16:49 UTC MAIN commitmail json YAML

sysctl: Adjust man page for new ARP sysctl ND settings

(roy)

2020-09-11 15:16:00 UTC MAIN commitmail json YAML

ARP: Use ND rather than our own.

This brings the benefit of Neighbour Unreachability Detection which is
something ARP sorely lacks.

The new timings mirror those of IPv6 and are adjustable via sysctl(8).
Unlike IPv6 ND, these are global and not per interface.

(roy)

2020-09-11 15:08:25 UTC MAIN commitmail json YAML

tcp_input: Adjust for ND changes

(roy)

2020-09-11 15:03:33 UTC MAIN commitmail json YAML

inet6: Use generic Neighor Detection rather than IPv6 specific

No functional change intended.

(roy)

2020-09-11 15:01:27 UTC MAIN commitmail json YAML

if_llatbl.c: adjust for nd changes

(roy)

2020-09-11 14:59:22 UTC MAIN commitmail json YAML

Implement address agnostic Neighbor Detection.

This is heavily based on IPv6 Neighbor Detection and allows per protocol
timers which also facilitate Neighor Unreachability Detection.

(roy)

2020-09-06 14:58:53 UTC MAIN commitmail json YAML

2020-09-06 14:57:18 UTC MAIN commitmail json YAML

2020-09-06 14:55:34 UTC MAIN commitmail json YAML

2020-08-20 11:01:02 UTC MAIN commitmail json YAML

2020-07-27 14:52:55 UTC MAIN commitmail json YAML

icmp6: Remove __packed attribute from icmp6 structures

They should naturally align.
Add compile time assertations to icmp6.c to prove this.

(roy)

2020-07-27 14:06:58 UTC MAIN commitmail json YAML

ip6: Remove __packed attribute from ip6 structures

They should naturally align.
Add compile time assertations to ip6_input.c to prove this.

(roy)

2020-07-22 19:05:14 UTC MAIN commitmail json YAML

mdnsd: Make the unable to parse resolv.conf message informative

resovconf will SIGHUP mdnsd when resolv.conf changes so this message
should not be an error.

(roy)

2020-07-22 19:03:15 UTC MAIN commitmail json YAML

2020-07-22 19:02:02 UTC MAIN commitmail json YAML

2020-07-22 19:00:20 UTC MAIN commitmail json YAML

2020-07-22 13:19:17 UTC MAIN commitmail json YAML

2020-07-21 14:11:39 UTC MAIN commitmail json YAML

mdnsd: starting and stopping are informational messages

(roy)

2020-07-21 14:04:07 UTC MAIN commitmail json YAML

2020-07-21 13:18:58 UTC MAIN commitmail json YAML

wpa_supplicant: Matching unspecified interfaces should not log driver fails

If there is no matching interface given, but interface matching is enabled
then all interfaces on the system will try to be initialized.

Non wireless interfaces will fail and the loopback device will be one
of these, so just log a diagnostic rather than an error.

(roy)

2020-07-21 12:19:52 UTC MAIN commitmail json YAML

wpa_supplicant: Don't report an error when there are no op classes to add

Instead, log a diagnostic so that noise to the user is reduced.

(roy)

2020-07-21 10:34:16 UTC MAIN commitmail json YAML

wpa_supplicant: don't log SIOCG80211 errors during interface setup

Unless debugging.
wpa_supplicant will log it failed to initialized the driver for the
interface anyway so this just silences some noise for users.

(roy)

2020-07-03 12:53:27 UTC MAIN commitmail json YAML

unbreak build, put /var/db/dhcpcd into the set lists

(roy)

2020-07-03 11:03:42 UTC MAIN commitmail json YAML

Add /var/db/dhcpcd back

(roy)

2020-07-03 10:47:29 UTC MAIN commitmail json YAML

Note import of dhcpcd-9.1.4

(roy)

2020-07-03 10:46:45 UTC MAIN commitmail json YAML

2020-07-02 17:15:00 UTC MAIN commitmail json YAML

2020-07-02 14:02:04 UTC MAIN commitmail json YAML

Note import of dhcpcd-9.1.3

(roy)

2020-07-02 13:59:19 UTC MAIN commitmail json YAML

2020-06-26 15:53:59 UTC MAIN commitmail json YAML

Adjust prior to enforce minimum socket length includes sa_family

Not that the code strictly needs it, but if the macro is ever used
elsewhere then it makes sense as every sockaddr must have it.
The rest of the structure is dictated by the family and in some cases,
truncated on purpose so this is fine.

(roy)

2020-06-24 12:27:51 UTC MAIN commitmail json YAML

Ensure sockaddrs have valid lengths for RO_MISSFILTER.

Thanks to maxv@ for spotting this.

(roy)

2020-06-21 15:05:23 UTC MAIN commitmail json YAML

libterminfo: cast to uint16/32_t before conversion to preserve negativity

Otherwise the ABSENT_NUMERIC(-1) or CANCELLED_NUMERIC(-2) will be converted
incorrectly to size_t and then down to uint16/32_t.
Picked up by DIAGNOSTIC builds.

Thanks to Michael Forney for the fix for PR lib/52293.

(roy)

2020-06-15 23:41:35 UTC MAIN commitmail json YAML

icmp6.h: #define ND_RA_FLAG_PROXY

RFC 4389, experimental. Maybe someone will implement it one day.

(roy)

2020-06-15 23:38:17 UTC MAIN commitmail json YAML

icmp6.h: #define ND_OPT_PI_FLAG_ROUTER

We already define ND_RA_FLAG_HOME_AGENT and that kind of requires
ND_OPT_PI_FLAG_ROUTER.

(roy)

2020-06-15 17:04:03 UTC MAIN commitmail json YAML

Note import of dhcpcd-9.1.2

(roy)

2020-06-15 17:02:58 UTC MAIN commitmail json YAML

dhcpcd: Build privsep resource limited sandbox.

(roy)

2020-06-15 16:59:05 UTC MAIN commitmail json YAML

2020-06-14 14:26:18 UTC MAIN commitmail json YAML

inet6: Allow addresses to be marked AUTOCONF from userland

(roy)

2020-06-13 01:41:59 UTC MAIN commitmail json YAML

SCTP: Use ifp->if_mtu rather than ND_IFINFO(ifp)->linkmtu

(roy)

2020-06-12 21:08:02 UTC MAIN commitmail json YAML

ndp: Sync usage and SYNPOSIS with reality

(roy)

2020-06-12 15:25:27 UTC MAIN commitmail json YAML

Add nd6.h compat header

(roy)

2020-06-12 14:12:20 UTC MAIN commitmail json YAML

Revert accidental part of prior

(roy)

2020-06-12 11:09:49 UTC MAIN commitmail json YAML

9.99.66 welcomes the removal of in-kernel RA handling

(roy)

2020-06-12 11:07:43 UTC MAIN commitmail json YAML

Note removal of RA handling.

(roy)

2020-06-12 11:04:46 UTC MAIN commitmail json YAML

Remove in-kernel handling of Router Advertisements

This is much better handled by a user-land tool.
Proposed on tech-net here:
https://mail-index.netbsd.org/tech-net/2020/04/22/msg007766.html

Note that the ioctl SIOCGIFINFO_IN6 no longer sets flags. That now
needs to be done using the pre-existing SIOCSIFINFO_FLAGS ioctl.

Compat is fully provided where it makes sense, but trying to turn on
RA handling will obviously throw an error as it no longer exists.

Note that if you use IPv6 temporary addresses, this now needs to be
turned on in dhcpcd.conf(5) rather than in sysctl.conf(5).

(roy)