The NetBSD Project

CVS log for src/sys/net/if_spppsubr.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / net

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.266 / (download) - annotate - [select for diffs], Sat Sep 3 02:47:59 2022 UTC (5 months ago) by thorpej
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10, bouyer-sunxi-drm-base, bouyer-sunxi-drm, HEAD
Changes since 1.265: +6 -28 lines
Diff to previous 1.265 (colored)

Garbage-collect the remaining vestiges of netisr.

Revision 1.265 / (download) - annotate - [select for diffs], Sat Sep 3 00:31:02 2022 UTC (5 months ago) by thorpej
Branch: MAIN
Changes since 1.264: +9 -4 lines
Diff to previous 1.264 (colored)

Only use configured RPS hash functions for IPv4 and IPv6 packets.

This is NFC change now because only IPv4 and IPv6 use pktqueue,
but that will change in future commits.

Revision 1.264 / (download) - annotate - [select for diffs], Sat Aug 27 19:25:35 2022 UTC (5 months, 1 week ago) by thorpej
Branch: MAIN
Changes since 1.263: +5 -2 lines
Diff to previous 1.263 (colored)

Ensure that all queues passed to ifq_enqueue2() have a valid ifq_lock.

Revision 1.263 / (download) - annotate - [select for diffs], Sat Aug 27 19:21:23 2022 UTC (5 months, 1 week ago) by thorpej
Branch: MAIN
Changes since 1.262: +4 -4 lines
Diff to previous 1.262 (colored)

Use IFQ_SET_MAXLEN() rather than open-coding it.

Revision 1.262 / (download) - annotate - [select for diffs], Mon Mar 7 04:06:20 2022 UTC (11 months ago) by knakahara
Branch: MAIN
Changes since 1.261: +3 -3 lines
Diff to previous 1.261 (colored)

Don't change ifp->if_link_state directly.  Pointed out by yamaguchi@n.o.

Revision 1.261 / (download) - annotate - [select for diffs], Mon Oct 25 02:10:56 2021 UTC (15 months, 2 weeks ago) by knakahara
Branch: MAIN
Changes since 1.260: +2 -12 lines
Diff to previous 1.260 (colored)

kpreempt_disable() before sppp_get_{ip,ip6}_addrs() are unnecessary now.

Revision 1.260 / (download) - annotate - [select for diffs], Mon Oct 25 02:06:29 2021 UTC (15 months, 2 weeks ago) by knakahara
Branch: MAIN
Changes since 1.259: +8 -4 lines
Diff to previous 1.259 (colored)

Fix missing curlwp_bind() for ifa_release(), ok'ed by yamaguchi@n.o.

This causes the following KASSERT failure in pppoe server.
    - sppp_rcr_event()
      - sppp_ipcp_confreq()
        - sppp_get_ip_addrs()
          - psref_release()

After if_spppsubr.c:1.227, sppp_ipcp_confreq() is done in workqueue
instead of softint.

Revision 1.259 / (download) - annotate - [select for diffs], Mon Oct 11 05:13:11 2021 UTC (15 months, 4 weeks ago) by knakahara
Branch: MAIN
Changes since 1.258: +7 -3 lines
Diff to previous 1.258 (colored)

Make pktq_rps_hash() pluggable for each interface type.  Reviewed by gdt@n.o, thorpej@n.o, and riastradh@n.o, thanks.

Revision 1.220.2.2 / (download) - annotate - [select for diffs], Thu Jun 17 04:46:35 2021 UTC (19 months, 3 weeks ago) by thorpej
Branch: thorpej-i2c-spi-conf
Changes since 1.220.2.1: +800 -875 lines
Diff to previous 1.220.2.1 (colored) next main 1.221 (colored)

Sync w/ HEAD.

Revision 1.258 / (download) - annotate - [select for diffs], Wed Jun 2 00:47:59 2021 UTC (20 months, 1 week ago) by yamaguchi
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-futex2-base, thorpej-futex2, thorpej-cfargs2-base, thorpej-cfargs2, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x
Changes since 1.257: +9 -2 lines
Diff to previous 1.257 (colored)

Added missing definition of sppp_ipv6cp_tld

Fixed build without INET6

Revision 1.257 / (download) - annotate - [select for diffs], Tue Jun 1 05:22:57 2021 UTC (20 months, 1 week ago) by yamaguchi
Branch: MAIN
Changes since 1.256: +3 -3 lines
Diff to previous 1.256 (colored)

Fix the wrong timeout event handler for PAP

sppp_auth_to_event() is a implementation of TO+/TO- event for
authentication protocol and it drops TO+ event in Ack-rcvd state.

Revision 1.256 / (download) - annotate - [select for diffs], Tue Jun 1 05:16:46 2021 UTC (20 months, 1 week ago) by yamaguchi
Branch: MAIN
Changes since 1.255: +41 -33 lines
Diff to previous 1.255 (colored)

Send Up event in tlu action of LCP

When LCP is stopping, the layer send Down event and Close event
(Down -> Close). To align the sequence, Up event is moved
before Open event.

Revision 1.255 / (download) - annotate - [select for diffs], Tue Jun 1 05:11:22 2021 UTC (20 months, 1 week ago) by yamaguchi
Branch: MAIN
Changes since 1.254: +6 -2 lines
Diff to previous 1.254 (colored)

Added logs when IPCP and IPv6CP are up or down

Revision 1.254 / (download) - annotate - [select for diffs], Tue Jun 1 05:08:46 2021 UTC (20 months, 1 week ago) by yamaguchi
Branch: MAIN
Changes since 1.253: +369 -449 lines
Diff to previous 1.253 (colored)

Added SPPP_LOG() for refactoring around log

Revision 1.253 / (download) - annotate - [select for diffs], Tue Jun 1 05:04:06 2021 UTC (20 months, 1 week ago) by yamaguchi
Branch: MAIN
Changes since 1.252: +37 -5 lines
Diff to previous 1.252 (colored)

Send RTM_IFINFO when a network configuration protocol
is up or down

Revision 1.252 / (download) - annotate - [select for diffs], Tue Jun 1 04:59:50 2021 UTC (20 months, 1 week ago) by yamaguchi
Branch: MAIN
Changes since 1.251: +12 -2 lines
Diff to previous 1.251 (colored)

Drop the Open event of LCP to stop the interface
even a reconnection is scheduled

The queue for events in if_spppsubr.c is not possible
to enqueue the same event. So, The close event caused
while a close event and open event are enqueued for
reconnection is not possible to stop interface.
To solve this issue, The open event after
"ifconfig pppoe? down" is dropped.

Revision 1.251 / (download) - annotate - [select for diffs], Tue Jun 1 04:55:55 2021 UTC (20 months, 1 week ago) by yamaguchi
Branch: MAIN
Changes since 1.250: +67 -277 lines
Diff to previous 1.250 (colored)

remove PP_CISCO that was used in obsoleted drivers e.g. lmc(4)

Revision 1.250 / (download) - annotate - [select for diffs], Tue Jun 1 04:45:22 2021 UTC (20 months, 1 week ago) by yamaguchi
Branch: MAIN
Changes since 1.249: +14 -13 lines
Diff to previous 1.249 (colored)

Remove open event on tlf of PAP/CHAP when retry of them is over
to prevent that LCP stops at Starting state.

And also remove retry counter check on tls of LCP because of
unnecessary.

Revision 1.249 / (download) - annotate - [select for diffs], Tue Jun 1 04:19:57 2021 UTC (20 months, 1 week ago) by yamaguchi
Branch: MAIN
Changes since 1.248: +8 -21 lines
Diff to previous 1.248 (colored)

Do not if_down() when a down event of the lower layer of LCP is happened
since the layer try to reconnect.

Revision 1.248 / (download) - annotate - [select for diffs], Tue Jun 1 03:51:33 2021 UTC (20 months, 1 week ago) by yamaguchi
Branch: MAIN
Changes since 1.247: +22 -12 lines
Diff to previous 1.247 (colored)

Fix not to do if_down() before reconnect

Almost network interface do not use if_down() even when there is no
connectivity. So, pppoe(4) is also made be not used it.
This behavior can be rollbacked by SPPP_IFDOWN_RECONNECT option.

Revision 1.247 / (download) - annotate - [select for diffs], Tue Jun 1 03:27:23 2021 UTC (20 months, 1 week ago) by yamaguchi
Branch: MAIN
Changes since 1.246: +46 -35 lines
Diff to previous 1.246 (colored)

restart LCP when loopback packets are detected

In if_spppsubr.c down and up do not mean that LCP is stopping
or running, but mean that the lower layer of LCP is up or down.
And, restarting of LCP is had to use close event and open event.

Revision 1.230.2.1 / (download) - annotate - [select for diffs], Mon May 31 22:15:21 2021 UTC (20 months, 1 week ago) by cjep
Branch: cjep_staticlib_x
Changes since 1.230: +389 -142 lines
Diff to previous 1.230 (colored) next main 1.231 (colored)

sync with head

Revision 1.246 / (download) - annotate - [select for diffs], Wed May 19 02:14:19 2021 UTC (20 months, 3 weeks ago) by yamaguchi
Branch: MAIN
CVS Tags: cjep_staticlib_x-base1
Changes since 1.245: +196 -99 lines
Diff to previous 1.245 (colored)

Make functions that use for logging MP-safe

There is no change in behavior.

Revision 1.245 / (download) - annotate - [select for diffs], Wed May 19 02:07:20 2021 UTC (20 months, 3 weeks ago) by yamaguchi
Branch: MAIN
Changes since 1.244: +5 -3 lines
Diff to previous 1.244 (colored)

Added clear of dns addresses when IPCP is closed

Revision 1.244 / (download) - annotate - [select for diffs], Wed May 19 02:02:46 2021 UTC (20 months, 3 weeks ago) by yamaguchi
Branch: MAIN
Changes since 1.243: +17 -8 lines
Diff to previous 1.243 (colored)

Added logs on dropping IPCP and IPv6CP packets

Revision 1.243 / (download) - annotate - [select for diffs], Wed May 19 01:54:09 2021 UTC (20 months, 3 weeks ago) by yamaguchi
Branch: MAIN
Changes since 1.242: +3 -3 lines
Diff to previous 1.242 (colored)

remove a wrong ntohs().

The variable is already host-byte-order.

Revision 1.242 / (download) - annotate - [select for diffs], Wed May 19 01:42:35 2021 UTC (20 months, 3 weeks ago) by yamaguchi
Branch: MAIN
Changes since 1.241: +7 -2 lines
Diff to previous 1.241 (colored)

Added a log about rejection of IPCP address option

Revision 1.241 / (download) - annotate - [select for diffs], Fri May 14 08:41:25 2021 UTC (20 months, 3 weeks ago) by yamaguchi
Branch: MAIN
Changes since 1.240: +24 -2 lines
Diff to previous 1.240 (colored)

Add a parameter to change keepalive interval in each PPPoE I/F

Revision 1.240 / (download) - annotate - [select for diffs], Fri May 14 08:31:14 2021 UTC (20 months, 3 weeks ago) by yamaguchi
Branch: MAIN
Changes since 1.239: +7 -3 lines
Diff to previous 1.239 (colored)

Added SPPP_NORECV_TIME option to change pp_max_noreceive

Revision 1.239 / (download) - annotate - [select for diffs], Fri May 14 08:11:08 2021 UTC (20 months, 3 weeks ago) by yamaguchi
Branch: MAIN
Changes since 1.238: +4 -3 lines
Diff to previous 1.238 (colored)

Send echo request even while user data is received
if pp_max_noreceive is 0

Revision 1.238 / (download) - annotate - [select for diffs], Fri May 14 08:06:32 2021 UTC (20 months, 3 weeks ago) by yamaguchi
Branch: MAIN
Changes since 1.237: +10 -5 lines
Diff to previous 1.237 (colored)

Introduce SPPP_KEEPALIVE_INTERVAL option
to change the interval between LCP echo requests

Revision 1.220.2.1 / (download) - annotate - [select for diffs], Thu May 13 00:47:33 2021 UTC (20 months, 3 weeks ago) by thorpej
Branch: thorpej-i2c-spi-conf
Changes since 1.220: +402 -207 lines
Diff to previous 1.220 (colored)

Sync with HEAD.

Revision 1.237 / (download) - annotate - [select for diffs], Tue May 11 06:42:42 2021 UTC (20 months, 4 weeks ago) by yamaguchi
Branch: MAIN
Changes since 1.236: +43 -15 lines
Diff to previous 1.236 (colored)

clear authentication protocol when SPPP_AUTHPROTO_NONE is specified

Revision 1.236 / (download) - annotate - [select for diffs], Tue May 11 06:33:17 2021 UTC (20 months, 4 weeks ago) by yamaguchi
Branch: MAIN
Changes since 1.235: +14 -2 lines
Diff to previous 1.235 (colored)

Drop packets that have no NCP not to start auto-dial

Revision 1.235 / (download) - annotate - [select for diffs], Tue May 11 06:27:18 2021 UTC (20 months, 4 weeks ago) by yamaguchi
Branch: MAIN
Changes since 1.234: +29 -7 lines
Diff to previous 1.234 (colored)

Added missing if_oerror incrementing

Revision 1.234 / (download) - annotate - [select for diffs], Tue May 11 06:21:28 2021 UTC (20 months, 4 weeks ago) by yamaguchi
Branch: MAIN
Changes since 1.233: +15 -11 lines
Diff to previous 1.233 (colored)

Move RCA event after RCR event

A authentication failed by TO+ event between RCA and RCR events
 1. RCA event in REQ-SENT state
   - REQ-SENT => ACK-RCVD
 2. TO+ event
   - ACK-RCVD => REQ-SENT
 3. RCR+ event
   - REQ-SENT => ACK-SENT

By moving RCA after RCR, the state is transisted to OPENED
 1. RCR event
   - REQ-SENT => ACK-SENT
 2. TO+ event
   - state is not changed
 3. RCA event
   - ACK-SENT => OPENED

Revision 1.233 / (download) - annotate - [select for diffs], Tue May 11 01:27:45 2021 UTC (20 months, 4 weeks ago) by yamaguchi
Branch: MAIN
Changes since 1.232: +44 -8 lines
Diff to previous 1.232 (colored)

Added ioctl commands for configuring NCP of pppoe(4)

Revision 1.232 / (download) - annotate - [select for diffs], Tue May 11 01:15:11 2021 UTC (20 months, 4 weeks ago) by yamaguchi
Branch: MAIN
Changes since 1.231: +6 -42 lines
Diff to previous 1.231 (colored)

Revert previous commit because of mistake of commit log

back to r1.230(if_spppsubr.c) and r1.31(if_sppp.h)

Revision 1.231 / (download) - annotate - [select for diffs], Tue May 11 01:00:49 2021 UTC (20 months, 4 weeks ago) by yamaguchi
Branch: MAIN
Changes since 1.230: +44 -8 lines
Diff to previous 1.230 (colored)

Added keywords that are ipcp, noipcp, ipv6cp, noipv6cp
for configuring NCP

Revision 1.230 / (download) - annotate - [select for diffs], Thu May 6 06:18:16 2021 UTC (21 months ago) by yamaguchi
Branch: MAIN
CVS Tags: cjep_staticlib_x-base
Branch point for: cjep_staticlib_x
Changes since 1.229: +5 -3 lines
Diff to previous 1.229 (colored)

do not clear destination address if there is no saved address
and add initialization of saved_hisaddr for safety

0.0.0.0 was sometimes configured to destination address when
ipcp close was occurred before ipcp tlu.
Following messages will be appeared when the issue is encountered and
debug for pppoe(4) is enabled.

tc-so:[     1.890005] pppoe0: ipcp close(starting)
(snip)
tc-so:[     1.890005] pppoe0: ipcp_open(): no IP interface

Revision 1.229 / (download) - annotate - [select for diffs], Thu May 6 02:05:09 2021 UTC (21 months ago) by yamaguchi
Branch: MAIN
Changes since 1.228: +11 -2 lines
Diff to previous 1.228 (colored)

Added m_freem for safety

pointed out by knakahara@, thanks.

Revision 1.228 / (download) - annotate - [select for diffs], Wed Apr 28 09:39:39 2021 UTC (21 months, 1 week ago) by yamaguchi
Branch: MAIN
Changes since 1.227: +47 -39 lines
Diff to previous 1.227 (colored)

Introduce a pointer to refer sp->scp[cp->protoidx]

There is no functional difference.

Revision 1.227 / (download) - annotate - [select for diffs], Wed Apr 28 09:36:24 2021 UTC (21 months, 1 week ago) by yamaguchi
Branch: MAIN
Changes since 1.226: +161 -134 lines
Diff to previous 1.226 (colored)

Move paese of conf-req, conf-nak and conf-rej into workqueue
from softint context

When the pases were processed in softint, the state machine
in if_spppsubr.c had been broken by simultaneous events
on rare occasions.

Example:
 1. Do ifconfig pppoe* up
    - lcp open event is enqueued to workqueue
 2. Receive conf-ack, and parse the packet
    - save mru to sp->lcp.their_mru
    - lcp RCR+ event is enqueued to workqueue
 3. Process lcp open event
    - initialize data including sp->lcp.their_mru
 4. Process lcp RCR+ event
    - Use sp->lcp.their_mru
        - but it was initialized

Revision 1.226 / (download) - annotate - [select for diffs], Mon Apr 26 08:45:57 2021 UTC (21 months, 2 weeks ago) by yamaguchi
Branch: MAIN
Changes since 1.225: +28 -11 lines
Diff to previous 1.225 (colored)

Fix the wrong CHAP option length in conf-nak

RFC 1994 defines that the CHAP option length in conf-nak is 5.
However, 4 was used when CHAP is cofigured and PPP is proposed
by a peer.

Revision 1.225 / (download) - annotate - [select for diffs], Mon Apr 26 08:42:19 2021 UTC (21 months, 2 weeks ago) by yamaguchi
Branch: MAIN
Changes since 1.224: +6 -4 lines
Diff to previous 1.224 (colored)

Avoid updating of the state if the state is not changed
not to reset the timer for state machine

Revision 1.224 / (download) - annotate - [select for diffs], Mon Apr 26 08:37:54 2021 UTC (21 months, 2 weeks ago) by yamaguchi
Branch: MAIN
Changes since 1.223: +3 -2 lines
Diff to previous 1.223 (colored)

Reset LCP fail counter when doing "ifconfig pppoe* up"

Revision 1.223 / (download) - annotate - [select for diffs], Mon Apr 26 08:34:22 2021 UTC (21 months, 2 weeks ago) by yamaguchi
Branch: MAIN
Changes since 1.222: +4 -2 lines
Diff to previous 1.222 (colored)

Added ipcp option name for logging

Revision 1.222 / (download) - annotate - [select for diffs], Mon Apr 26 08:31:21 2021 UTC (21 months, 2 weeks ago) by yamaguchi
Branch: MAIN
Changes since 1.221: +24 -8 lines
Diff to previous 1.221 (colored)

Ignore 0.0.0.0 offered from PPPoE server

Revision 1.221 / (download) - annotate - [select for diffs], Mon Apr 26 02:36:45 2021 UTC (21 months, 2 weeks ago) by yamaguchi
Branch: MAIN
Changes since 1.220: +11 -2 lines
Diff to previous 1.220 (colored)

Fix locking order since IFNET_LOCK must be held
before acquiring SPPP_LOCK

Revision 1.220 / (download) - annotate - [select for diffs], Fri Apr 23 03:36:13 2021 UTC (21 months, 2 weeks ago) by yamaguchi
Branch: MAIN
Branch point for: thorpej-i2c-spi-conf
Changes since 1.219: +65 -28 lines
Diff to previous 1.219 (colored)

Adjust mtu at LCP instead at IPCP

The adjustment must be done at LCP when a PPPoE connection
does not use IPCP.

Revision 1.219 / (download) - annotate - [select for diffs], Fri Apr 23 03:31:33 2021 UTC (21 months, 2 weeks ago) by yamaguchi
Branch: MAIN
Changes since 1.218: +21 -4 lines
Diff to previous 1.218 (colored)

Fix to set mtu even if it is bigger than mru notified at LCP

Revision 1.218 / (download) - annotate - [select for diffs], Fri Apr 23 01:13:25 2021 UTC (21 months, 2 weeks ago) by yamaguchi
Branch: MAIN
Changes since 1.217: +10 -2 lines
Diff to previous 1.217 (colored)

Introduct a new flag to accept different authentication protocol
in myauthproto and hisauthproto

When the flag is enabled, a authentication protocol notified
at LCP negotiation is used as my authentication protocol.
When the flags is NOT enabled, my authentication protoco is
not changed at LCP negotiation.

Revision 1.215.2.1 / (download) - annotate - [select for diffs], Sat Apr 17 17:26:21 2021 UTC (21 months, 3 weeks ago) by thorpej
Branch: thorpej-cfargs
Changes since 1.215: +9 -5 lines
Diff to previous 1.215 (colored) next main 1.216 (colored)

Sync with HEAD.

Revision 1.217 / (download) - annotate - [select for diffs], Fri Apr 16 02:12:00 2021 UTC (21 months, 3 weeks ago) by yamaguchi
Branch: MAIN
CVS Tags: thorpej-cfargs-base
Changes since 1.216: +2 -5 lines
Diff to previous 1.216 (colored)

Remove unnecessaly lock holdings to avoid dead lock

The locks were held while callout_halt() and workqueue_wait()
without reason.
And the locks also were held at callout and workqueue handler
so that the handler kicked by those function couldn't acquire
the lock.

The reasons why those are unneccesary are:
 - Items of callout_t are protected by callout_lock
 - Items of struct workqueue and struct work are protected
   by q_mutex in struct workqueue
 - Items of struct sppp_work protected by atomic_cas(3)
 - struct pppoe_softc does not free before workqueue_wait() and
   callout_halt() even if the locks are not held

Revision 1.216 / (download) - annotate - [select for diffs], Fri Apr 16 02:05:37 2021 UTC (21 months, 3 weeks ago) by yamaguchi
Branch: MAIN
Changes since 1.215: +9 -2 lines
Diff to previous 1.215 (colored)

Fix not to put the wrong error message

Revision 1.190.2.1 / (download) - annotate - [select for diffs], Mon Dec 14 14:38:15 2020 UTC (2 years, 1 month ago) by thorpej
Branch: thorpej-futex
Changes since 1.190: +1919 -1613 lines
Diff to previous 1.190 (colored) next main 1.191 (colored)

Sync w/ HEAD.

Revision 1.215 / (download) - annotate - [select for diffs], Fri Nov 27 03:37:11 2020 UTC (2 years, 2 months ago) by yamaguchi
Branch: MAIN
CVS Tags: thorpej-futex-base
Branch point for: thorpej-cfargs
Changes since 1.214: +16 -4 lines
Diff to previous 1.214 (colored)

Fix missing disable of kpreempt while getting interface address

Revision 1.214 / (download) - annotate - [select for diffs], Wed Nov 25 10:44:53 2020 UTC (2 years, 2 months ago) by yamaguchi
Branch: MAIN
Changes since 1.213: +27 -2 lines
Diff to previous 1.213 (colored)

add KASSERT(!cpu_softintr_p());

pointed out by knakahara@n.o., thanks.

Revision 1.213 / (download) - annotate - [select for diffs], Wed Nov 25 10:30:51 2020 UTC (2 years, 2 months ago) by yamaguchi
Branch: MAIN
Changes since 1.212: +120 -45 lines
Diff to previous 1.212 (colored)

Add commands to refer params of control protocols in if_spppsubr.c

reviewed by knakahara@n.o.

Revision 1.212 / (download) - annotate - [select for diffs], Wed Nov 25 10:27:18 2020 UTC (2 years, 2 months ago) by yamaguchi
Branch: MAIN
Changes since 1.211: +25 -2 lines
Diff to previous 1.211 (colored)

Reconnect when a down event caused by tlf caught

Revision 1.211 / (download) - annotate - [select for diffs], Wed Nov 25 10:25:22 2020 UTC (2 years, 2 months ago) by yamaguchi
Branch: MAIN
Changes since 1.210: +30 -29 lines
Diff to previous 1.210 (colored)

Move code related to module to bottom

Revision 1.210 / (download) - annotate - [select for diffs], Wed Nov 25 10:23:33 2020 UTC (2 years, 2 months ago) by yamaguchi
Branch: MAIN
Changes since 1.209: +3 -2 lines
Diff to previous 1.209 (colored)

Reconnect lcp after authentication or network phase finish

Revision 1.209 / (download) - annotate - [select for diffs], Wed Nov 25 10:18:49 2020 UTC (2 years, 2 months ago) by yamaguchi
Branch: MAIN
Changes since 1.208: +8 -10 lines
Diff to previous 1.208 (colored)

Close lcp when the lower layer down if the interface is passive or on-demand

reivewed by knakahara@n.o.

Revision 1.208 / (download) - annotate - [select for diffs], Wed Nov 25 10:12:03 2020 UTC (2 years, 2 months ago) by yamaguchi
Branch: MAIN
Changes since 1.207: +4 -75 lines
Diff to previous 1.207 (colored)

Update ip addresses in the workqueue for control protocols

reviewed by knakahara@n.o.

Revision 1.207 / (download) - annotate - [select for diffs], Wed Nov 25 10:08:22 2020 UTC (2 years, 2 months ago) by yamaguchi
Branch: MAIN
Changes since 1.206: +14 -2 lines
Diff to previous 1.206 (colored)

 Add the id check for TERM_ACK

Revision 1.206 / (download) - annotate - [select for diffs], Wed Nov 25 10:05:40 2020 UTC (2 years, 2 months ago) by yamaguchi
Branch: MAIN
Changes since 1.205: +2 -14 lines
Diff to previous 1.205 (colored)

remove double newlines

Revision 1.205 / (download) - annotate - [select for diffs], Wed Nov 25 10:03:38 2020 UTC (2 years, 2 months ago) by yamaguchi
Branch: MAIN
Changes since 1.204: +210 -165 lines
Diff to previous 1.204 (colored)

change function name(RCR => parse_confreq)

reviewed by knakahara@n.o.

Revision 1.204 / (download) - annotate - [select for diffs], Wed Nov 25 09:59:52 2020 UTC (2 years, 2 months ago) by yamaguchi
Branch: MAIN
Changes since 1.203: +17 -30 lines
Diff to previous 1.203 (colored)

Add a function to initialize parameters

Revision 1.203 / (download) - annotate - [select for diffs], Wed Nov 25 09:57:26 2020 UTC (2 years, 2 months ago) by yamaguchi
Branch: MAIN
Changes since 1.202: +2 -7 lines
Diff to previous 1.202 (colored)

Remove unused and unimplemented code related to CP_QUAL

Revision 1.202 / (download) - annotate - [select for diffs], Wed Nov 25 09:55:01 2020 UTC (2 years, 2 months ago) by yamaguchi
Branch: MAIN
Changes since 1.201: +129 -468 lines
Diff to previous 1.201 (colored)

Simplify commonly used functions

reviewed by knakahara@n.o.

Revision 1.201 / (download) - annotate - [select for diffs], Wed Nov 25 09:46:05 2020 UTC (2 years, 2 months ago) by yamaguchi
Branch: MAIN
Changes since 1.200: +621 -475 lines
Diff to previous 1.200 (colored)

implement auth protocols on the state-machine of control protocols

reviewed by knakahara@n.o.

Revision 1.200 / (download) - annotate - [select for diffs], Wed Nov 25 09:41:20 2020 UTC (2 years, 2 months ago) by yamaguchi
Branch: MAIN
Changes since 1.199: +8 -6 lines
Diff to previous 1.199 (colored)

Insert an entry after initialization

Revision 1.199 / (download) - annotate - [select for diffs], Wed Nov 25 09:38:39 2020 UTC (2 years, 2 months ago) by yamaguchi
Branch: MAIN
Changes since 1.198: +16 -7 lines
Diff to previous 1.198 (colored)

call if_down() in workqueue instead of callout(9)

Revision 1.198 / (download) - annotate - [select for diffs], Wed Nov 25 09:35:23 2020 UTC (2 years, 2 months ago) by yamaguchi
Branch: MAIN
Changes since 1.197: +344 -171 lines
Diff to previous 1.197 (colored)

Change a state of control protocol in thread context

reviewed by knakahara@n.o.

Revision 1.197 / (download) - annotate - [select for diffs], Wed Nov 25 09:30:49 2020 UTC (2 years, 2 months ago) by yamaguchi
Branch: MAIN
Changes since 1.196: +31 -42 lines
Diff to previous 1.196 (colored)

Add a function for RXJ event

Revision 1.196 / (download) - annotate - [select for diffs], Wed Nov 25 09:26:34 2020 UTC (2 years, 2 months ago) by yamaguchi
Branch: MAIN
Changes since 1.195: +81 -62 lines
Diff to previous 1.195 (colored)

Add a function for RTR and RTA event

Revision 1.195 / (download) - annotate - [select for diffs], Wed Nov 25 09:21:53 2020 UTC (2 years, 2 months ago) by yamaguchi
Branch: MAIN
Changes since 1.194: +81 -63 lines
Diff to previous 1.194 (colored)

Add a function for RCA and RCN event

Revision 1.194 / (download) - annotate - [select for diffs], Wed Nov 25 09:18:45 2020 UTC (2 years, 2 months ago) by yamaguchi
Branch: MAIN
Changes since 1.193: +193 -91 lines
Diff to previous 1.193 (colored)

Add a function for RCR event

Revision 1.193 / (download) - annotate - [select for diffs], Wed Nov 25 09:16:20 2020 UTC (2 years, 2 months ago) by yamaguchi
Branch: MAIN
Changes since 1.192: +267 -166 lines
Diff to previous 1.192 (colored)

Refactoring functions for RCR and RCN

Revision 1.192 / (download) - annotate - [select for diffs], Wed Nov 25 09:12:50 2020 UTC (2 years, 2 months ago) by yamaguchi
Branch: MAIN
Changes since 1.191: +145 -147 lines
Diff to previous 1.191 (colored)

Add a structure for params related to control protocols

Revision 1.191 / (download) - annotate - [select for diffs], Wed Nov 25 09:09:24 2020 UTC (2 years, 2 months ago) by yamaguchi
Branch: MAIN
Changes since 1.190: +122 -125 lines
Diff to previous 1.190 (colored)

remove variable names in function declaration

Revision 1.190 / (download) - annotate - [select for diffs], Mon Oct 5 16:11:25 2020 UTC (2 years, 4 months ago) by roy
Branch: MAIN
Branch point for: thorpej-futex
Changes since 1.189: +2 -37 lines
Diff to previous 1.189 (colored)

ppp: Remove media

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

Revision 1.180.2.3 / (download) - annotate - [select for diffs], Mon Apr 13 08:05:15 2020 UTC (2 years, 9 months ago) by martin
Branch: phil-wifi
Changes since 1.180.2.2: +3 -2 lines
Diff to previous 1.180.2.2 (colored) to branchpoint 1.180 (colored) next main 1.181 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.187.2.11 / (download) - annotate - [select for diffs], Sat Apr 11 10:47:06 2020 UTC (2 years, 9 months ago) by is
Branch: is-mlppp
Changes since 1.187.2.10: +4 -0 lines
Diff to previous 1.187.2.10 (colored) to branchpoint 1.187 (colored) next main 1.188 (colored)

trying to ind the right place for MLPPP renegotiation.

Revision 1.187.2.10 / (download) - annotate - [select for diffs], Sat Apr 11 10:06:22 2020 UTC (2 years, 9 months ago) by is
Branch: is-mlppp
Changes since 1.187.2.9: +2 -2 lines
Diff to previous 1.187.2.9 (colored) to branchpoint 1.187 (colored)

typo

Revision 1.187.2.9 / (download) - annotate - [select for diffs], Sat Apr 11 09:40:02 2020 UTC (2 years, 9 months ago) by is
Branch: is-mlppp
Changes since 1.187.2.8: +40 -1 lines
Diff to previous 1.187.2.8 (colored) to branchpoint 1.187 (colored)

MLPPP mrru negotiation.

Revision 1.187.2.8 / (download) - annotate - [select for diffs], Sat Apr 11 08:11:58 2020 UTC (2 years, 9 months ago) by is
Branch: is-mlppp
Changes since 1.187.2.7: +1 -1 lines
Diff to previous 1.187.2.7 (colored) to branchpoint 1.187 (colored)

macro error

Revision 1.187.2.7 / (download) - annotate - [select for diffs], Sat Apr 11 07:38:00 2020 UTC (2 years, 9 months ago) by is
Branch: is-mlppp
Changes since 1.187.2.6: +2 -2 lines
Diff to previous 1.187.2.6 (colored) to branchpoint 1.187 (colored)

whitespace error

Revision 1.187.2.6 / (download) - annotate - [select for diffs], Sat Apr 11 07:28:06 2020 UTC (2 years, 9 months ago) by is
Branch: is-mlppp
Changes since 1.187.2.5: +6 -0 lines
Diff to previous 1.187.2.5 (colored) to branchpoint 1.187 (colored)

compat code to make transplanting this to netbsd-8 easier

Revision 1.187.2.5 / (download) - annotate - [select for diffs], Fri Apr 10 19:45:24 2020 UTC (2 years, 9 months ago) by is
Branch: is-mlppp
Changes since 1.187.2.4: +9 -10 lines
Diff to previous 1.187.2.4 (colored) to branchpoint 1.187 (colored)

syntax fixes.

Revision 1.187.2.4 / (download) - annotate - [select for diffs], Fri Apr 10 17:28:37 2020 UTC (2 years, 9 months ago) by is
Branch: is-mlppp
Changes since 1.187.2.3: +131 -0 lines
Diff to previous 1.187.2.3 (colored) to branchpoint 1.187 (colored)

first part of defragmentation code. No dropping/sequence error statistics
yet, and no MRRU negotiation so not active.

Revision 1.180.2.2 / (download) - annotate - [select for diffs], Wed Apr 8 14:08:57 2020 UTC (2 years, 10 months ago) by martin
Branch: phil-wifi
Changes since 1.180.2.1: +97 -39 lines
Diff to previous 1.180.2.1 (colored) to branchpoint 1.180 (colored)

Merge changes from current as of 20200406

Revision 1.187.2.3 / (download) - annotate - [select for diffs], Tue Apr 7 19:26:44 2020 UTC (2 years, 10 months ago) by is
Branch: is-mlppp
Changes since 1.187.2.2: +3 -3 lines
Diff to previous 1.187.2.2 (colored) to branchpoint 1.187 (colored)

The specification calls this a class, not type.

Revision 1.187.2.2 / (download) - annotate - [select for diffs], Tue Apr 7 18:32:20 2020 UTC (2 years, 10 months ago) by is
Branch: is-mlppp
Changes since 1.187.2.1: +35 -15 lines
Diff to previous 1.187.2.1 (colored) to branchpoint 1.187 (colored)

Multilink PPP: sanity check of option values, storage of remote MRRU.

Revision 1.187.2.1 / (download) - annotate - [select for diffs], Tue Apr 7 18:28:40 2020 UTC (2 years, 10 months ago) by is
Branch: is-mlppp
Changes since 1.187: +45 -2 lines
Diff to previous 1.187 (colored)

Define a few more LCP options. Recognize, sanity-check and report (but
still reject for the moment) multilink PPP configuration options received.

Revision 1.189 / (download) - annotate - [select for diffs], Sat Apr 4 17:12:33 2020 UTC (2 years, 10 months ago) by is
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh
Changes since 1.188: +35 -15 lines
Diff to previous 1.188 (colored)

Multilink PPP: sanity check of option values, storage of remote MRRU.

Revision 1.188 / (download) - annotate - [select for diffs], Wed Apr 1 20:24:50 2020 UTC (2 years, 10 months ago) by is
Branch: MAIN
Changes since 1.187: +45 -2 lines
Diff to previous 1.187 (colored)

Define a few more LCP options. Recognize, sanity-check and report (but
still reject for the moment) multilink PPP configuration options received.

Revision 1.187 / (download) - annotate - [select for diffs], Fri Mar 6 10:26:59 2020 UTC (2 years, 11 months ago) by knakahara
Branch: MAIN
CVS Tags: is-mlppp-base
Branch point for: is-mlppp
Changes since 1.186: +5 -8 lines
Diff to previous 1.186 (colored)

remove unnecessary lock in sppp_mediastatus() as it doesn't touch struct sppp.

ok'ed by yamaguchi@n.o.

Revision 1.184.2.1 / (download) - annotate - [select for diffs], Sat Feb 29 20:21:06 2020 UTC (2 years, 11 months ago) by ad
Branch: ad-namecache
Changes since 1.184: +31 -33 lines
Diff to previous 1.184 (colored) next main 1.185 (colored)

Sync with head.

Revision 1.186 / (download) - annotate - [select for diffs], Tue Feb 4 05:46:32 2020 UTC (3 years ago) by thorpej
Branch: MAIN
CVS Tags: ad-namecache-base3
Changes since 1.185: +3 -4 lines
Diff to previous 1.185 (colored)

Use ifmedia_fini().

Revision 1.185 / (download) - annotate - [select for diffs], Wed Jan 29 04:28:27 2020 UTC (3 years ago) by thorpej
Branch: MAIN
Changes since 1.184: +30 -31 lines
Diff to previous 1.184 (colored)

Adopt <net/if_stats.h>.

Revision 1.184 / (download) - annotate - [select for diffs], Fri Sep 13 07:55:07 2019 UTC (3 years, 4 months ago) by msaitoh
Branch: MAIN
CVS Tags: phil-wifi-20191119, ad-namecache-base2, ad-namecache-base1, ad-namecache-base
Branch point for: ad-namecache
Changes since 1.183: +4 -3 lines
Diff to previous 1.183 (colored)

 if_flags is neither int nor short. It's unsigned short.

Revision 1.183 / (download) - annotate - [select for diffs], Thu Jul 11 03:49:51 2019 UTC (3 years, 7 months ago) by msaitoh
Branch: MAIN
CVS Tags: netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9
Changes since 1.182: +3 -3 lines
Diff to previous 1.182 (colored)

Fix typo (s/supress/suppress/).

Revision 1.180.2.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:09:45 2019 UTC (3 years, 8 months ago) by christos
Branch: phil-wifi
Changes since 1.180: +10 -44 lines
Diff to previous 1.180 (colored)

Sync with HEAD

Revision 1.182 / (download) - annotate - [select for diffs], Fri Mar 1 11:06:57 2019 UTC (3 years, 11 months ago) by pgoyette
Branch: MAIN
CVS Tags: phil-wifi-20190609, isaki-audio2-base, isaki-audio2
Changes since 1.181: +3 -3 lines
Diff to previous 1.181 (colored)

Rename the MODULE_*_HOOK() macros to MODULE_HOOK_*() as briefly
discussed on irc.

NFCI intended.

Ride the earlier kernel bump - it;s getting crowded.

Revision 1.181 / (download) - annotate - [select for diffs], Sun Jan 27 02:08:48 2019 UTC (4 years ago) by pgoyette
Branch: MAIN
Changes since 1.180: +10 -44 lines
Diff to previous 1.180 (colored)

Merge the [pgoyette-compat] branch

Revision 1.179.2.11 / (download) - annotate - [select for diffs], Tue Jan 22 07:42:41 2019 UTC (4 years ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.179.2.10: +4 -9 lines
Diff to previous 1.179.2.10 (colored) to branchpoint 1.179 (colored) next main 1.180 (colored)

Convert the MODULE_{,VOID_}HOOK_CALL macros to do everything in-line
rather than defining an intermediate hook##call function.  Almost
all of the hooks are called only once, and although we lose the
ability of doing things like

	if (MODULE_HOOK_CALL(...) == 0) ...

we simplify things quite a bit.  With this change, we no longer need
to have both declaration and definition macros, and the definition
no longer needs to have both prototype argument list and a "real"
argument list.

FWIW, the above if now needs to written as

	int ret;

	MODULE_HOOK_CALL(..., ret);
	if (ret == 0) ...

with appropriate use of braces {}.

Revision 1.179.2.10 / (download) - annotate - [select for diffs], Fri Jan 18 00:01:02 2019 UTC (4 years ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.179.2.9: +4 -4 lines
Diff to previous 1.179.2.9 (colored) to branchpoint 1.179 (colored)

Don't restrict hooks to having only int or void types.  Pass the hook's
type to the various macros, as needed.

Allows us to reduce diffs to original in at least one or two places (we
no longer have to provide an additional parameter to the hook routine
for returning a non-int return value).

Revision 1.179.2.9 / (download) - annotate - [select for diffs], Mon Jan 14 13:34:28 2019 UTC (4 years ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.179.2.8: +4 -4 lines
Diff to previous 1.179.2.8 (colored) to branchpoint 1.179 (colored)

Create a variant of the HOOK macros that handles hook routines of
type void, and use them where appropriate.

Revision 1.179.2.8 / (download) - annotate - [select for diffs], Sun Jan 13 10:49:51 2019 UTC (4 years ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.179.2.7: +5 -5 lines
Diff to previous 1.179.2.7 (colored) to branchpoint 1.179 (colored)

Remove the HOOK2 versions of the MODULE_HOOK macros.  There were
only a few uses, and using them led to some lack of clarity in the
code.  Instead, we now use two separate hooks, with names that
make it clear(er) what we're doing.

This also positions us to start unraveling some of the rtsock_50
mess, which will need (at least) five hooks.

Revision 1.179.2.7 / (download) - annotate - [select for diffs], Sat Sep 29 21:36:14 2018 UTC (4 years, 4 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.179.2.6: +3 -3 lines
Diff to previous 1.179.2.6 (colored) to branchpoint 1.179 (colored)

In MODULE_HOOK_CALL_DECL we don't need to provide the actual argument
list for calling the hook function, nor do we need to provide the
default value (for when the hook has not been set).

Revision 1.179.2.6 / (download) - annotate - [select for diffs], Tue Sep 18 23:03:55 2018 UTC (4 years, 4 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.179.2.5: +4 -4 lines
Diff to previous 1.179.2.5 (colored) to branchpoint 1.179 (colored)

The COMPAT_HOOK macros were renamed to MODULE_HOOK, adjust all callers

Revision 1.179.2.5 / (download) - annotate - [select for diffs], Tue Sep 18 01:15:58 2018 UTC (4 years, 4 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.179.2.4: +4 -2 lines
Diff to previous 1.179.2.4 (colored) to branchpoint 1.179 (colored)

Split the COMPAT_CALL_HOOK to separate the declaration from the
implementation.  Some hooks are called from multiple source files,
and the old method resulted in duplicate implementations.

Implement MP-safe hooks for the usb_subr_30 code.  Pass the helper
functions as arguments to the compat code so it does not have to
determine if the kernel contains usb code.

Revision 1.179.2.4 / (download) - annotate - [select for diffs], Mon Sep 17 11:04:31 2018 UTC (4 years, 4 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.179.2.3: +7 -3 lines
Diff to previous 1.179.2.3 (colored) to branchpoint 1.179 (colored)

Adapt (most of) the indirect function pointers to the new MP-safe
mechanism.  Still remaining are the compat_netbsd32 stuff, and
some usb subroutines.

Revision 1.179.2.3 / (download) - annotate - [select for diffs], Sat Apr 7 04:12:19 2018 UTC (4 years, 10 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.179.2.2: +2 -2 lines
Diff to previous 1.179.2.2 (colored) to branchpoint 1.179 (colored)

Sync with HEAD.  77 conflicts resolved - all of them $NetBSD$

Revision 1.179.2.2 / (download) - annotate - [select for diffs], Fri Mar 30 23:56:18 2018 UTC (4 years, 10 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.179.2.1: +3 -2 lines
Diff to previous 1.179.2.1 (colored) to branchpoint 1.179 (colored)

Import fixes from HEAD

Revision 1.180 / (download) - annotate - [select for diffs], Fri Mar 30 13:29:19 2018 UTC (4 years, 10 months ago) by mlelstv
Branch: MAIN
CVS Tags: phil-wifi-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407
Branch point for: phil-wifi
Changes since 1.179: +3 -2 lines
Diff to previous 1.179 (colored)

Reset fail counter when link goes down so that next session starts
with the correct retry count.

Revision 1.179.2.1 / (download) - annotate - [select for diffs], Wed Mar 21 10:12:49 2018 UTC (4 years, 10 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.179: +9 -44 lines
Diff to previous 1.179 (colored)

Move if_spppsubr compat code into the compat50 module.

More prep work for compat80 module (for raidframe)

Revision 1.169.6.5 / (download) - annotate - [select for diffs], Thu Mar 8 13:22:25 2018 UTC (4 years, 11 months ago) by martin
Branch: netbsd-8
CVS Tags: netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1
Changes since 1.169.6.4: +11 -11 lines
Diff to previous 1.169.6.4 (colored) to branchpoint 1.169 (colored) next main 1.170 (colored)

Pull up following revision(s) (requested by knakahara in ticket #613):
	sys/net/if_pppoe.c: revision 1.130,1.134
	sys/net/if_spppsubr.c: revision 1.172,1.175,1.179
	sys/net/if_gif.c: revision 1.138,1.139

Mark callouts of pppoe(4) CALLOUT_MPSAFE. Suggested by ozaki-r@n.o.

fix non-diagnostic compilation

Fix spl leak.
	ifconfig gif0 create
	ifconfig gif0 destroy
	WARNING: SPL NOT LOWERED ON ...

Fix breaking character limit. Pointed out by ozaki-r@n.o, thanks.

Use m_freem instead of m_free. Otherwise we're leaking the next mbufs in
the chain.

Revision 1.179 / (download) - annotate - [select for diffs], Tue Feb 6 03:15:15 2018 UTC (5 years ago) by knakahara
Branch: MAIN
CVS Tags: pgoyette-compat-base, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315
Branch point for: pgoyette-compat
Changes since 1.178: +3 -3 lines
Diff to previous 1.178 (colored)

Fix breaking character limit. Pointed out by ozaki-r@n.o, thanks.

Revision 1.169.6.4 / (download) - annotate - [select for diffs], Tue Jan 16 13:01:10 2018 UTC (5 years ago) by martin
Branch: netbsd-8
Changes since 1.169.6.3: +3 -2 lines
Diff to previous 1.169.6.3 (colored) to branchpoint 1.169 (colored)

Pull up following revision(s) (requested by ozaki-r in ticket #497):
	tests/rump/rumpkern/Makefile: revision 1.16
	tests/rump/kernspace/Makefile: revision 1.6
	tests/rump/kernspace/workqueue.c: revision 1.1
	tests/rump/kernspace/workqueue.c: revision 1.2
	tests/rump/kernspace/workqueue.c: revision 1.3
	tests/rump/kernspace/workqueue.c: revision 1.4
	tests/rump/kernspace/workqueue.c: revision 1.5
	tests/rump/kernspace/workqueue.c: revision 1.6
	tests/rump/rumpkern/t_workqueue.c: revision 1.1
	sys/sys/workqueue.h: revision 1.10
	tests/rump/rumpkern/t_workqueue.c: revision 1.2
	tests/rump/kernspace/kernspace.h: revision 1.5
	tests/rump/kernspace/kernspace.h: revision 1.6
	sys/net/if_bridge.c: revision 1.147
	distrib/sets/lists/debug/mi: revision 1.225
	sys/kern/subr_workqueue.c: revision 1.34
	share/man/man9/workqueue.9: revision 1.12
	sys/net/if_spppsubr.c: revision 1.178
	distrib/sets/lists/tests/mi: revision 1.763
Add simple test for workqueue(9)
Add declaration. build fix
sorry, I forgot to commit this file.
Tweak use of cv_timedwait
- Handle its return value
- Specify more appropriate time-out periods (2 ticks is too short)
Fix a race condition on taking the mutex
The workqueue worker can take the mutex before the tester tries to take it after
calling workqueue_enqueue. If it happens, the worker calls cv_broadcast before
the tester calls cv_timedwait and the tester will wait until the cv timed out
Take the mutex before calling workqueue_enqueue so that the tester surely calls
cv_timedwait before the worker calls cv_broadcast.
The fix stabilizes the test, t_workqueue/workqueue1.
Add workqueue_wait that waits for a specific work to finish
The caller must ensure that no new work is enqueued before calling
workqueue_wait. Note that Note that if the workqueue is WQ_PERCPU, the caller
can enqueue a new work to another queue other than the waiting queue.
Discussed on tech-kern@
Ensure the timer isn't running by using workqueue_wait
Functionalize some routines to add new tests easily (NFC)
Add a test case for workqueue_wait
Fix build

Revision 1.169.6.3 / (download) - annotate - [select for diffs], Tue Jan 2 10:20:33 2018 UTC (5 years, 1 month ago) by snj
Branch: netbsd-8
Changes since 1.169.6.2: +14 -2 lines
Diff to previous 1.169.6.2 (colored) to branchpoint 1.169 (colored)

Pull up following revision(s) (requested by ozaki-r in ticket #456):
	sys/arch/arm/sunxi/sunxi_emac.c: 1.9
	sys/dev/ic/dwc_gmac.c: 1.43-1.44
	sys/dev/pci/if_iwm.c: 1.75
	sys/dev/pci/if_wm.c: 1.543
	sys/dev/pci/ixgbe/ixgbe.c: 1.112
	sys/dev/pci/ixgbe/ixv.c: 1.74
	sys/kern/sys_socket.c: 1.75
	sys/net/agr/if_agr.c: 1.43
	sys/net/bpf.c: 1.219
	sys/net/if.c: 1.397, 1.399, 1.401-1.403, 1.406-1.410, 1.412-1.416
	sys/net/if.h: 1.242-1.247, 1.250, 1.252-1.257
	sys/net/if_bridge.c: 1.140 via patch, 1.142-1.146
	sys/net/if_etherip.c: 1.40
	sys/net/if_ethersubr.c: 1.243, 1.246
	sys/net/if_faith.c: 1.57
	sys/net/if_gif.c: 1.132
	sys/net/if_l2tp.c: 1.15, 1.17
	sys/net/if_loop.c: 1.98-1.101
	sys/net/if_media.c: 1.35
	sys/net/if_pppoe.c: 1.131-1.132
	sys/net/if_spppsubr.c: 1.176-1.177
	sys/net/if_tun.c: 1.142
	sys/net/if_vlan.c: 1.107, 1.109, 1.114-1.121
	sys/net/npf/npf_ifaddr.c: 1.3
	sys/net/npf/npf_os.c: 1.8-1.9
	sys/net/rtsock.c: 1.230
	sys/netcan/if_canloop.c: 1.3-1.5
	sys/netinet/if_arp.c: 1.255
	sys/netinet/igmp.c: 1.65
	sys/netinet/in.c: 1.210-1.211
	sys/netinet/in_pcb.c: 1.180
	sys/netinet/ip_carp.c: 1.92, 1.94
	sys/netinet/ip_flow.c: 1.81
	sys/netinet/ip_input.c: 1.362
	sys/netinet/ip_mroute.c: 1.147
	sys/netinet/ip_output.c: 1.283, 1.285, 1.287
	sys/netinet6/frag6.c: 1.61
	sys/netinet6/in6.c: 1.251, 1.255
	sys/netinet6/in6_pcb.c: 1.162
	sys/netinet6/ip6_flow.c: 1.35
	sys/netinet6/ip6_input.c: 1.183
	sys/netinet6/ip6_output.c: 1.196
	sys/netinet6/mld6.c: 1.90
	sys/netinet6/nd6.c: 1.239-1.240
	sys/netinet6/nd6_nbr.c: 1.139
	sys/netinet6/nd6_rtr.c: 1.136
	sys/netipsec/ipsec_output.c: 1.65
	sys/rump/net/lib/libnetinet/netinet_component.c: 1.9-1.10
kmem_intr_free kmem_intr_[z]alloced memory
the underlying pools are the same but api-wise those should match
Unify IFEF_*_MPSAFE into IFEF_MPSAFE
There are already two flags for if_output and if_start, however, it seems such
MPSAFE flags are eventually needed for all if_XXX operations. Having discrete
flags for each operation is wasteful of if_extflags bits. So let's unify
the flags into one: IFEF_MPSAFE.
Fortunately IFEF_*_MPSAFE flags have never been included in any releases, so
we can change them without breaking backward compatibility of the releases
(though the kernel version of -current should be bumped).
Note that if an interface have both MP-safe and non-MP-safe operations at a
time, we have to set the IFEF_MPSAFE flag and let callees of non-MP-safe
opeartions take the kernel lock.
Proposed on tech-kern@ and tech-net@
Provide macros for softnet_lock and KERNEL_LOCK hiding NET_MPSAFE switch
It reduces C&P codes such as "#ifndef NET_MPSAFE KERNEL_LOCK(1, NULL); ..."
scattered all over the source code and makes it easy to identify remaining
KERNEL_LOCK and/or softnet_lock that are held even if NET_MPSAFE.
No functional change
Hold KERNEL_LOCK on if_ioctl selectively based on IFEF_MPSAFE
If IFEF_MPSAFE is set, hold the lock and otherwise don't hold.
This change requires additions of KERNEL_LOCK to subsequence functions from
if_ioctl such as ifmedia_ioctl and ifioctl_common to protect non-MP-safe
components.
Proposed on tech-kern@ and tech-net@
Ensure to hold if_ioctl_lock when calling if_flags_set
Fix locking against myself on ifpromisc
vlan_unconfig_locked could be called with holding if_ioctl_lock.
Ensure to not turn on IFF_RUNNING of an interface until its initialization completes
And ensure to turn off it before destruction as per IFF_RUNNING's description
"resource allocated". (The description is a bit doubtful though, I believe the
change is still proper.)
Ensure to hold if_ioctl_lock on if_up and if_down
One exception for if_down is if_detach; in the case the lock isn't needed
because it's guaranteed that no other one can access ifp at that point.
Make if_link_queue MP-safe if IFEF_MPSAFE
if_link_queue is a queue to store events of link state changes, which is
used to pass events from (typically) an interrupt handler to
if_link_state_change softint. The queue was protected by KERNEL_LOCK so far,
but if IFEF_MPSAFE is enabled, it becomes unsafe because (perhaps) an interrupt
handler of an interface with IFEF_MPSAFE doesn't take KERNEL_LOCK. Protect it
by a spin mutex.
Additionally with this change KERNEL_LOCK of if_link_state_change softint is
omitted if NET_MPSAFE is enabled.
Note that the spin mutex is now ifp->if_snd.ifq_lock as well as the case of
if_timer (see the comment).
Use IFADDR_WRITER_FOREACH instead of IFADDR_READER_FOREACH
At that point no other one modifies the list so IFADDR_READER_FOREACH
is unnecessary. Use of IFADDR_READER_FOREACH is harmless in general though,
if we try to detect contract violations of pserialize, using it violates
the contract. So avoid using it makes life easy.
Ensure to call if_addr_init with holding if_ioctl_lock
Get rid of outdated comments
Fix build of kernels without ether
By throwing out if_enable_vlan_mtu and if_disable_vlan_mtu that
created a unnecessary dependency from if.c to if_ethersubr.c.
PR kern/52790
Rename IFNET_LOCK to IFNET_GLOBAL_LOCK
IFNET_LOCK will be used in another lock, if_ioctl_lock (might be renamed then).
Wrap if_ioctl_lock with IFNET_* macros (NFC)
Also if_ioctl_lock perhaps needs to be renamed to something because it's now
not just for ioctl...
Reorder some destruction routines in if_detach
- Destroy if_ioctl_lock at the end of the if_detach because it's used in various
  destruction routines
- Move psref_target_destroy after pr_purgeif because we want to use psref in
  pr_purgeif (otherwise destruction procedures can be tricky)
Ensure to call if_mcast_op with holding IFNET_LOCK
Note that CARP doesn't deal with IFNET_LOCK yet.
Remove IFNET_GLOBAL_LOCK where it's unnecessary because IFNET_LOCK is held
Describe which lock is used to protect each member variable of struct ifnet
Requested by skrll@
Write a guideline for converting an interface to IFEF_MPSAFE
Requested by skrll@
Note that IFNET_LOCK must not be held in softint
Don't set IFEF_MPSAFE unless NET_MPSAFE at this point
Because recent investigations show that interfaces with IFEF_MPSAFE need to
follow additional restrictions to work with the flag safely. We should enable it
on an interface by default only if the interface surely satisfies the
restrictions, which are described in if.h.
Note that enabling IFEF_MPSAFE solely gains a few benefit on performance because
the network stack is still serialized by the big kernel locks by default.

Revision 1.178 / (download) - annotate - [select for diffs], Thu Dec 28 07:06:36 2017 UTC (5 years, 1 month ago) by ozaki-r
Branch: MAIN
Changes since 1.177: +3 -2 lines
Diff to previous 1.177 (colored)

Ensure the timer isn't running by using workqueue_wait

Revision 1.177 / (download) - annotate - [select for diffs], Mon Dec 11 03:29:20 2017 UTC (5 years, 1 month ago) by ozaki-r
Branch: MAIN
Changes since 1.176: +8 -8 lines
Diff to previous 1.176 (colored)

Wrap if_ioctl_lock with IFNET_* macros (NFC)

Also if_ioctl_lock perhaps needs to be renamed to something because it's now
not just for ioctl...

Revision 1.176 / (download) - annotate - [select for diffs], Thu Dec 7 03:16:24 2017 UTC (5 years, 2 months ago) by ozaki-r
Branch: MAIN
Changes since 1.175: +14 -2 lines
Diff to previous 1.175 (colored)

Ensure to call if_addr_init with holding if_ioctl_lock

Revision 1.125.6.3 / (download) - annotate - [select for diffs], Sun Dec 3 11:39:02 2017 UTC (5 years, 2 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.125.6.2: +1108 -399 lines
Diff to previous 1.125.6.2 (colored) to branchpoint 1.125 (colored) next main 1.126 (colored)

update from HEAD

Revision 1.169.6.2 / (download) - annotate - [select for diffs], Thu Nov 30 15:57:37 2017 UTC (5 years, 2 months ago) by martin
Branch: netbsd-8
Changes since 1.169.6.1: +29 -6 lines
Diff to previous 1.169.6.1 (colored) to branchpoint 1.169 (colored)

Pull up following revision(s) (requested by ozaki-r in ticket #407):
	sys/compat/linux32/common/linux32_socket.c: revision 1.28
	sys/net/if.c: revision 1.400
	sys/netipsec/key.c: revision 1.243
	sys/compat/linux/common/linux_socket.c: revision 1.139
	sys/netinet/ip_carp.c: revision 1.93
	sys/netinet6/in6.c: revision 1.252
	sys/netinet6/in6.c: revision 1.253
	sys/netinet6/in6.c: revision 1.254
	sys/net/if_spppsubr.c: revision 1.173
	sys/net/if_spppsubr.c: revision 1.174
	sys/compat/common/uipc_syscalls_40.c: revision 1.14
Protect IFADDR_READER_FOREACH and obtained ifa with psz/psref
Fix usage of FOREACH macro
key_sad.lock is held there so SAVLIST_WRITER_FOREACH is enough.
Protect IFADDR_READER_FOREACH and obtained ifa with psz/psref
Protect IFADDR_READER_FOREACH and obtained ifa with psz/psref (more)
Fix and make consistent of usages of psz/psref in ifconf variants
Remove unnecessary goto because there is no cleanup code to share (NFC)
Tweak a condition; we don't need to care ifacount to be negative
Fix a race condition of in6_ifinit
in6_ifinit checks the number of IPv6 addresses on a given interface and
if it's zero (i.e., an IPv6 address being assigned to the interface
is the first one), call if_addr_init. However, the actual assignment of
the address (ifa_insert) is out of in6_ifinit. The check and the
assignment must be done atomically.
Fix it by holding in6_ifaddr_lock during in6_ifinit and ifa_insert.
And also add missing pserialize to IFADDR_READER_FOREACH.

Revision 1.175 / (download) - annotate - [select for diffs], Wed Nov 22 17:11:51 2017 UTC (5 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202
Changes since 1.174: +3 -3 lines
Diff to previous 1.174 (colored)

fix non-diagnostic compilation

Revision 1.174 / (download) - annotate - [select for diffs], Wed Nov 22 08:28:56 2017 UTC (5 years, 2 months ago) by ozaki-r
Branch: MAIN
Changes since 1.173: +10 -3 lines
Diff to previous 1.173 (colored)

Protect IFADDR_READER_FOREACH and obtained ifa with psz/psref (more)

Revision 1.173 / (download) - annotate - [select for diffs], Wed Nov 22 05:42:30 2017 UTC (5 years, 2 months ago) by ozaki-r
Branch: MAIN
Changes since 1.172: +21 -5 lines
Diff to previous 1.172 (colored)

Protect IFADDR_READER_FOREACH and obtained ifa with psz/psref

Revision 1.172 / (download) - annotate - [select for diffs], Wed Nov 15 07:52:58 2017 UTC (5 years, 2 months ago) by knakahara
Branch: MAIN
Changes since 1.171: +9 -9 lines
Diff to previous 1.171 (colored)

Mark callouts of pppoe(4) CALLOUT_MPSAFE. Suggested by ozaki-r@n.o.

Revision 1.169.6.1 / (download) - annotate - [select for diffs], Thu Nov 2 20:28:24 2017 UTC (5 years, 3 months ago) by snj
Branch: netbsd-8
CVS Tags: matt-nb8-mediatek-base, matt-nb8-mediatek
Changes since 1.169: +470 -348 lines
Diff to previous 1.169 (colored)

Pull up following revision(s) (requested by knakahara in ticket #332):
	sys/net/if_pppoe.c: 1.127-1.128
	sys/net/if_pppoe.h: 1.15
	sys/net/if_spppsubr.c: 1.170-1.171
	sys/net/if_spppvar.h: 1.21-1.22
Integrate two locks used to protect PPPoE softc. Contributed by s-yamaguchi@IIJ.
PPPOE_SESSION_LOCK protects variables used in PPP packet
processing, on the other hand PPPOE_PARAM_LOCK protects
the other variables used to establish a PPPoE session id.
Those locks isn't acquired in the same time because the
PPP packet processing doesn't work without PPPoE session id.
By the reason, the locks can be integrated into PPPOE_LOCK.
Add locking notes later.
--
sppp_lock is changed from mutex to rwlock now. Contributed by s-yamaguchi@IIJ.
Add locking notes later.
--
Add a locking notes for if_pppoe
--
Add a locking notes for if_spppsubr
--
fix no INET6 build.

Revision 1.171 / (download) - annotate - [select for diffs], Fri Oct 13 03:11:50 2017 UTC (5 years, 3 months ago) by knakahara
Branch: MAIN
Changes since 1.170: +9 -4 lines
Diff to previous 1.170 (colored)

fix no INET6 build.

Revision 1.170 / (download) - annotate - [select for diffs], Thu Oct 12 09:49:43 2017 UTC (5 years, 3 months ago) by knakahara
Branch: MAIN
Changes since 1.169: +464 -347 lines
Diff to previous 1.169 (colored)

sppp_lock is changed from mutex to rwlock now. Contributed by s-yamaguchi@IIJ.

Add locking notes later.

Revision 1.131.2.9 / (download) - annotate - [select for diffs], Mon Aug 28 17:53:11 2017 UTC (5 years, 5 months ago) by skrll
Branch: nick-nhusb
Changes since 1.131.2.8: +20 -15 lines
Diff to previous 1.131.2.8 (colored) to branchpoint 1.131 (colored) next main 1.132 (colored)

Sync with HEAD

Revision 1.146.2.4 / (download) - annotate - [select for diffs], Wed Apr 26 02:53:29 2017 UTC (5 years, 9 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.146.2.3: +20 -15 lines
Diff to previous 1.146.2.3 (colored) to branchpoint 1.146 (colored) next main 1.147 (colored)

Sync with HEAD

Revision 1.165.2.1 / (download) - annotate - [select for diffs], Fri Apr 21 16:54:05 2017 UTC (5 years, 9 months ago) by bouyer
Branch: bouyer-socketcan
Changes since 1.165: +26 -19 lines
Diff to previous 1.165 (colored) next main 1.166 (colored)

Sync with HEAD

Revision 1.169 / (download) - annotate - [select for diffs], Tue Mar 28 08:47:19 2017 UTC (5 years, 10 months ago) by ozaki-r
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-20170426, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, netbsd-8-base, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1
Branch point for: netbsd-8
Changes since 1.168: +20 -15 lines
Diff to previous 1.168 (colored)

Avoid touching a mbuf after enqueuing it

Revision 1.168 / (download) - annotate - [select for diffs], Tue Mar 28 07:32:16 2017 UTC (5 years, 10 months ago) by ozaki-r
Branch: MAIN
Changes since 1.167: +3 -3 lines
Diff to previous 1.167 (colored)

Use sp->pp_framebytes instead of the constant value "3"

It seems that it was forgotten to be converted in v1.22.

Revision 1.146.2.3 / (download) - annotate - [select for diffs], Mon Mar 20 06:57:50 2017 UTC (5 years, 10 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.146.2.2: +8 -6 lines
Diff to previous 1.146.2.2 (colored) to branchpoint 1.146 (colored)

Sync with HEAD

Revision 1.131.2.8 / (download) - annotate - [select for diffs], Sun Feb 5 13:40:58 2017 UTC (6 years ago) by skrll
Branch: nick-nhusb
Changes since 1.131.2.7: +532 -124 lines
Diff to previous 1.131.2.7 (colored) to branchpoint 1.131 (colored)

Sync with HEAD

Revision 1.130.6.1 / (download) - annotate - [select for diffs], Wed Jan 18 08:46:46 2017 UTC (6 years ago) by skrll
Branch: netbsd-7-nhusb
Changes since 1.130: +30 -43 lines
Diff to previous 1.130 (colored) next main 1.131 (colored)

Sync with netbsd-5

Revision 1.167 / (download) - annotate - [select for diffs], Mon Jan 16 15:44:46 2017 UTC (6 years ago) by christos
Branch: MAIN
CVS Tags: pgoyette-localcount-20170320, nick-nhusb-base-20170204
Changes since 1.166: +6 -6 lines
Diff to previous 1.166 (colored)

ip6_sprintf -> IN6_PRINT so that we pass the size.

Revision 1.166 / (download) - annotate - [select for diffs], Mon Jan 16 07:33:36 2017 UTC (6 years ago) by ryo
Branch: MAIN
Changes since 1.165: +8 -6 lines
Diff to previous 1.165 (colored)

Make ip6_sprintf(), in_fmtaddr(), lla_snprintf() and icmp6_redirect_diag() mpsafe.

Reviewed by ozaki-r@

Revision 1.146.2.2 / (download) - annotate - [select for diffs], Sat Jan 7 08:56:50 2017 UTC (6 years, 1 month ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.146.2.1: +676 -175 lines
Diff to previous 1.146.2.1 (colored) to branchpoint 1.146 (colored)

Sync with HEAD.  (Note that most of these changes are simply $NetBSD$
tag issues.)

Revision 1.165 / (download) - annotate - [select for diffs], Tue Dec 27 13:49:58 2016 UTC (6 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: pgoyette-localcount-20170107, bouyer-socketcan-base
Branch point for: bouyer-socketcan
Changes since 1.164: +3 -4 lines
Diff to previous 1.164 (colored)

Another missed patch

Revision 1.164 / (download) - annotate - [select for diffs], Mon Dec 26 23:21:49 2016 UTC (6 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.163: +4 -6 lines
Diff to previous 1.163 (colored)

pfil(9) improvements to handle address changes:

Add:
  PFIL_IFADDR     call on interface reconfig (mbuf is ioctl #)
  PFIL_IFNET      call on interface attach/detach (mbuf is PFIL_IFNET_*)

from rmind@

Revision 1.163 / (download) - annotate - [select for diffs], Tue Dec 13 00:35:11 2016 UTC (6 years, 1 month ago) by knakahara
Branch: MAIN
Changes since 1.162: +519 -94 lines
Diff to previous 1.162 (colored)

MP-safe pppoe(4).

Nearly all parts is implemented by Shoichi YAMAGUCHI<s-yamaguchi@IIJ>, thanks.

Revision 1.162 / (download) - annotate - [select for diffs], Tue Dec 6 07:01:47 2016 UTC (6 years, 2 months ago) by knakahara
Branch: MAIN
Changes since 1.161: +6 -22 lines
Diff to previous 1.161 (colored)

add API to manipulate ifa->ia_hash and ia_hash_pslist_entry, and fix ia_hash_pslist_entry race by using them.

in_ifaddr_lock is required before writing ifa->ia_hash and
ia_hash_pslist_entry to serialize writer processings.

reviewed by ozaki-r@n.o.

Revision 1.131.2.7 / (download) - annotate - [select for diffs], Mon Dec 5 10:55:27 2016 UTC (6 years, 2 months ago) by skrll
Branch: nick-nhusb
Changes since 1.131.2.6: +139 -53 lines
Diff to previous 1.131.2.6 (colored) to branchpoint 1.131 (colored)

Sync with HEAD

Revision 1.161 / (download) - annotate - [select for diffs], Thu Dec 1 02:30:54 2016 UTC (6 years, 2 months ago) by knakahara
Branch: MAIN
CVS Tags: nick-nhusb-base-20161204
Changes since 1.160: +56 -28 lines
Diff to previous 1.160 (colored)

fix two races between set_ip_addrs and clear_ip_addrs race.

    (1) if set_ip_addrs and clear_ip_addrs run parallel, they can parallel call
        IN_ADDRHASH_WRITER_REMOVE to the same ifa.
    (2) if set_ip_addrs's workqueue is separated from clear_ip_addrs's one,
        the workers can run in reverse order of enqueued.

Revision 1.160 / (download) - annotate - [select for diffs], Thu Dec 1 02:15:20 2016 UTC (6 years, 2 months ago) by knakahara
Branch: MAIN
Changes since 1.159: +3 -3 lines
Diff to previous 1.159 (colored)

fix CID 1396600: Null pointer dereferences

Revision 1.159 / (download) - annotate - [select for diffs], Fri Nov 25 05:03:12 2016 UTC (6 years, 2 months ago) by knakahara
Branch: MAIN
Changes since 1.158: +80 -28 lines
Diff to previous 1.158 (colored)

make workqueue sppp_{set,clear}_ip_addrs to be able to call pserialize_perform.

Revision 1.158 / (download) - annotate - [select for diffs], Fri Nov 25 05:00:29 2016 UTC (6 years, 2 months ago) by knakahara
Branch: MAIN
Changes since 1.157: +22 -27 lines
Diff to previous 1.157 (colored)

refactor sppp_{set,clear}_ip_addrs(). reduce iterating if_addr_pslist.

Revision 1.157 / (download) - annotate - [select for diffs], Fri Nov 18 10:38:55 2016 UTC (6 years, 2 months ago) by knakahara
Branch: MAIN
Changes since 1.156: +13 -2 lines
Diff to previous 1.156 (colored)

We must use PSLIST_ENTRY_DESTROY after PSLIST_WRITER_REMOVE and waiting all readers done.

And then, if we want to re-insert the removed pslist element, we need to
call PSLIST_ENTERY_INIT again.

advised by riastradh@n.o and reviewed by ozaki-r@n.o, thanks.

Revision 1.146.2.1 / (download) - annotate - [select for diffs], Fri Nov 4 14:49:20 2016 UTC (6 years, 3 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.146: +66 -37 lines
Diff to previous 1.146 (colored)

Sync with HEAD

Revision 1.156 / (download) - annotate - [select for diffs], Sat Oct 8 17:37:32 2016 UTC (6 years, 4 months ago) by joerg
Branch: MAIN
CVS Tags: pgoyette-localcount-20161104
Changes since 1.155: +3 -3 lines
Diff to previous 1.155 (colored)

Use uint8_t for opt as some of the values don't fit into the (positive)
range of a signed char.

Revision 1.131.2.6 / (download) - annotate - [select for diffs], Wed Oct 5 20:56:08 2016 UTC (6 years, 4 months ago) by skrll
Branch: nick-nhusb
Changes since 1.131.2.5: +123 -88 lines
Diff to previous 1.131.2.5 (colored) to branchpoint 1.131 (colored)

Sync with HEAD

Revision 1.155 / (download) - annotate - [select for diffs], Mon Oct 3 11:06:06 2016 UTC (6 years, 4 months ago) by ozaki-r
Branch: MAIN
CVS Tags: nick-nhusb-base-20161004
Changes since 1.154: +5 -6 lines
Diff to previous 1.154 (colored)

Fix race condition on ifqueue used by traditional netisr

If a underlying network device driver supports MSI/MSI-X, RX interrupts
can be delivered to arbitrary CPUs. This means that Layer 2 subroutines
such as ether_input (softint) and subsequent Layer 3 subroutines (softint)
which are called via traditional netisr can be dispatched on an arbitrary
CPU. Layer 2 subroutines now run without any locks (expected) and so a
Layer 2 subroutine and a Layer 3 subroutine can run in parallel.

There is a shared data between a Layer 2 routine and a Layer 3 routine,
that is ifqueue and IF_ENQUEUE (from L2) and IF_DEQUEUE (from L3) on it
are racy now.

To fix the race condition, use ifqueue#ifq_lock to protect ifqueue
instead of splnet that is meaningless now.

The same race condition exists in route_intr. Fix it as well.

Reviewed by knakahara@

Revision 1.154 / (download) - annotate - [select for diffs], Thu Sep 29 15:04:17 2016 UTC (6 years, 4 months ago) by roy
Branch: MAIN
Changes since 1.153: +7 -17 lines
Diff to previous 1.153 (colored)

Set dstaddr in in_ifinit so that sppp consumers announce the correct
dstaddr in routing messages.

Revision 1.153 / (download) - annotate - [select for diffs], Thu Sep 29 14:08:40 2016 UTC (6 years, 4 months ago) by roy
Branch: MAIN
Changes since 1.152: +18 -10 lines
Diff to previous 1.152 (colored)

Ensure we only call pfil_run_hooks if if_init succeeded.
While here, improve improve some logging.

Revision 1.130.2.1 / (download) - annotate - [select for diffs], Sun Sep 25 11:35:27 2016 UTC (6 years, 4 months ago) by bouyer
Branch: netbsd-7
CVS Tags: netbsd-7-nhusb-base-20170116, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1
Changes since 1.130: +30 -43 lines
Diff to previous 1.130 (colored) next main 1.131 (colored)

Pull up following revision(s) (requested by joerg in ticket #1254):
	sys/net/if_spppsubr.c: revision 1.149
Report link state changes for sppp consumers. The link is considered up,
if the current phase is SPPP_PHASE_NETWORK, otherwise it is down. Useful
when using dhcpcd for DHCPv6 PD.

Revision 1.152 / (download) - annotate - [select for diffs], Fri Sep 16 14:17:23 2016 UTC (6 years, 4 months ago) by roy
Branch: MAIN
Changes since 1.151: +7 -12 lines
Diff to previous 1.151 (colored)

Drop hostIsNew from in_ifinit, let the function work out if the address
has changed.
Sync address flag setup with the IPv6 counterpart.
When scrubbing the address, or setting up the address fails, restore the
old address flags as well as the old address.

Revision 1.151 / (download) - annotate - [select for diffs], Wed Sep 14 11:54:42 2016 UTC (6 years, 4 months ago) by roy
Branch: MAIN
Changes since 1.150: +5 -2 lines
Diff to previous 1.150 (colored)

Call ifmedia_delete_instance() for safety.

Revision 1.150 / (download) - annotate - [select for diffs], Wed Sep 14 10:58:38 2016 UTC (6 years, 4 months ago) by roy
Branch: MAIN
Changes since 1.149: +36 -2 lines
Diff to previous 1.149 (colored)

Add interface media for sppp consumers.
While there is no actual media to select,
the ioctl is used to query link status from userland.

Revision 1.149 / (download) - annotate - [select for diffs], Tue Sep 13 19:51:12 2016 UTC (6 years, 4 months ago) by joerg
Branch: MAIN
CVS Tags: localcount-20160914
Changes since 1.148: +30 -43 lines
Diff to previous 1.148 (colored)

Report link state changes for sppp consumers. The link is considered up,
if the current phase is SPPP_PHASE_NETWORK, otherwise it is down. Useful
when using dhcpcd for DHCPv6 PD.

Revision 1.148 / (download) - annotate - [select for diffs], Fri Sep 9 12:41:14 2016 UTC (6 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.147: +11 -13 lines
Diff to previous 1.147 (colored)

PR/51464: Shoichi YAMAGUCHI: chap authenticator of pppoe does not work

Revision 1.147 / (download) - annotate - [select for diffs], Sat Aug 6 22:03:45 2016 UTC (6 years, 6 months ago) by pgoyette
Branch: MAIN
Changes since 1.146: +23 -2 lines
Diff to previous 1.146 (colored)

Modularize the sppp_subr stuff so it can be shared by pppoe and lmc
drivers as they get modularized.

Revision 1.131.2.5 / (download) - annotate - [select for diffs], Sat Jul 9 20:25:21 2016 UTC (6 years, 7 months ago) by skrll
Branch: nick-nhusb
Changes since 1.131.2.4: +32 -14 lines
Diff to previous 1.131.2.4 (colored) to branchpoint 1.131 (colored)

Sync with HEAD

Revision 1.146 / (download) - annotate - [select for diffs], Thu Jul 7 09:32:02 2016 UTC (6 years, 7 months ago) by ozaki-r
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20160907
Branch point for: pgoyette-localcount
Changes since 1.145: +7 -7 lines
Diff to previous 1.145 (colored)

Switch the address list of intefaces to pslist(9)

As usual, we leave the old list to avoid breaking kvm(3) users.

Revision 1.145 / (download) - annotate - [select for diffs], Wed Jul 6 05:27:52 2016 UTC (6 years, 7 months ago) by ozaki-r
Branch: MAIN
Changes since 1.144: +14 -2 lines
Diff to previous 1.144 (colored)

Add and use pslist(9)-based hashtable for IPv4 addresses

Note that we leave the old hashtable to keep vmstat -H working.

Revision 1.144 / (download) - annotate - [select for diffs], Thu Jun 30 01:34:53 2016 UTC (6 years, 7 months ago) by ozaki-r
Branch: MAIN
Changes since 1.143: +8 -2 lines
Diff to previous 1.143 (colored)

Make sure that ifaddr is published after its initialization finished

Basically we should insert an item to a collection (say a list) after
item's initialization has been completed to avoid accessing an item
that is initialized halfway. ifaddr (in{,6}_ifaddr) isn't processed
like so and needs to be fixed.

In order to do so, we need to tweak {arp,nd6}_rtrequest that depend
on that an ifaddr is inserted during its initialization; they explore
interface's address list to determine that rt_getkey(rt) of a given
rtentry is in the list to know whether the route's interface should
be a loopback, which doesn't work after the change. To make it work,
first check RTF_LOCAL flag that is set in rt_ifa_addlocal that calls
{arp,nd6}_rtrequest eventually. Note that we still need the original
code for the case to remove and re-add a local interface route.

Revision 1.143 / (download) - annotate - [select for diffs], Mon Jun 20 08:30:59 2016 UTC (6 years, 7 months ago) by knakahara
Branch: MAIN
Changes since 1.142: +6 -6 lines
Diff to previous 1.142 (colored)

apply if_start_lock() to L2 callers which call ifp->if_start() of device derivers

Revision 1.142 / (download) - annotate - [select for diffs], Fri Jun 10 13:27:16 2016 UTC (6 years, 8 months ago) by ozaki-r
Branch: MAIN
Changes since 1.141: +5 -5 lines
Diff to previous 1.141 (colored)

Introduce m_set_rcvif and m_reset_rcvif

The API is used to set (or reset) a received interface of a mbuf.
They are counterpart of m_get_rcvif, which will come in another
commit, hide internal of rcvif operation, and reduce the diff of
the upcoming change.

No functional change.

Revision 1.131.2.4 / (download) - annotate - [select for diffs], Sun May 29 08:44:38 2016 UTC (6 years, 8 months ago) by skrll
Branch: nick-nhusb
Changes since 1.131.2.3: +121 -77 lines
Diff to previous 1.131.2.3 (colored) to branchpoint 1.131 (colored)

Sync with HEAD

Revision 1.141 / (download) - annotate - [select for diffs], Thu Apr 28 00:16:56 2016 UTC (6 years, 9 months ago) by ozaki-r
Branch: MAIN
CVS Tags: nick-nhusb-base-20160529
Changes since 1.140: +4 -4 lines
Diff to previous 1.140 (colored)

Constify rtentry of if_output

We no longer need to change rtentry below if_output.

The change makes it clear where rtentries are changed (or not)
and helps forthcoming locking (os psrefing) rtentries.

Revision 1.140 / (download) - annotate - [select for diffs], Sun Apr 24 17:56:31 2016 UTC (6 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.139: +104 -72 lines
Diff to previous 1.139 (colored)

CID 1210544: Tainted scalar

Revision 1.139 / (download) - annotate - [select for diffs], Sun Apr 24 17:32:06 2016 UTC (6 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.138: +14 -4 lines
Diff to previous 1.138 (colored)

CID 980345: missing breaks

Revision 1.138 / (download) - annotate - [select for diffs], Sun Apr 24 16:59:15 2016 UTC (6 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.137: +3 -3 lines
Diff to previous 1.137 (colored)

CID 980057, 980058, use strlcpy()

Revision 1.137 / (download) - annotate - [select for diffs], Sat Apr 23 12:15:38 2016 UTC (6 years, 9 months ago) by martin
Branch: MAIN
Changes since 1.136: +4 -2 lines
Diff to previous 1.136 (colored)

Add missing breaks (cosmetic change only)

Revision 1.131.2.3 / (download) - annotate - [select for diffs], Fri Apr 22 15:44:17 2016 UTC (6 years, 9 months ago) by skrll
Branch: nick-nhusb
Changes since 1.131.2.2: +4 -5 lines
Diff to previous 1.131.2.2 (colored) to branchpoint 1.131 (colored)

Sync with HEAD

Revision 1.136 / (download) - annotate - [select for diffs], Wed Apr 20 09:01:04 2016 UTC (6 years, 9 months ago) by knakahara
Branch: MAIN
CVS Tags: nick-nhusb-base-20160422
Changes since 1.135: +4 -5 lines
Diff to previous 1.135 (colored)

IFQ_ENQUEUE refactor (3/3) : eliminate pktattr argument from IFQ_ENQUEUE caller

Revision 1.131.2.2 / (download) - annotate - [select for diffs], Tue Sep 22 12:06:10 2015 UTC (7 years, 4 months ago) by skrll
Branch: nick-nhusb
Changes since 1.131.2.1: +2 -9 lines
Diff to previous 1.131.2.1 (colored) to branchpoint 1.131 (colored)

Sync with HEAD

Revision 1.135 / (download) - annotate - [select for diffs], Thu Aug 20 14:40:19 2015 UTC (7 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921
Changes since 1.134: +2 -9 lines
Diff to previous 1.134 (colored)

include "ioconf.h" to get the 'void <driver>attach(int count);' prototype.

Revision 1.131.2.1 / (download) - annotate - [select for diffs], Sat Jun 6 14:40:25 2015 UTC (7 years, 8 months ago) by skrll
Branch: nick-nhusb
Changes since 1.131: +14 -34 lines
Diff to previous 1.131 (colored)

Sync with HEAD

Revision 1.134 / (download) - annotate - [select for diffs], Mon May 25 08:29:01 2015 UTC (7 years, 8 months ago) by ozaki-r
Branch: MAIN
CVS Tags: nick-nhusb-base-20150606
Changes since 1.133: +2 -29 lines
Diff to previous 1.133 (colored)

Remove leftover IPX-related stuffs

No objection on tech-kern and tech-net.

Revision 1.133 / (download) - annotate - [select for diffs], Sat May 2 14:41:32 2015 UTC (7 years, 9 months ago) by roy
Branch: MAIN
Changes since 1.132: +12 -7 lines
Diff to previous 1.132 (colored)

Add IPv4 address flags IN_IFF_TENTATIVE, IN_IFF_DUPLICATED and
IN_IFF_DETATCHED to mimic the IPv6 address behaviour.
Add SIOCGIFAFLAG_IN ioctl to retrieve the address flag via the
ifreq structure.
Add IPv4 DAD detection via the ARP methods described in RFC 5227.
Add sysctls net.inet.ip.dad_count and net.inet.arp.debug.

Discussed on tech-net@

Revision 1.132 / (download) - annotate - [select for diffs], Mon Apr 20 10:19:54 2015 UTC (7 years, 9 months ago) by roy
Branch: MAIN
Changes since 1.131: +4 -2 lines
Diff to previous 1.131 (colored)

Introduce p2p_rtrequest() so that IFF_POINTOPOINT interfaces can work
with RTF_LOCAL.
Fixes PR kern/49829.

Revision 1.131 / (download) - annotate - [select for diffs], Fri Nov 28 08:29:00 2014 UTC (8 years, 2 months ago) by ozaki-r
Branch: MAIN
CVS Tags: nick-nhusb-base-20150406, nick-nhusb-base
Branch point for: nick-nhusb
Changes since 1.130: +2 -6 lines
Diff to previous 1.130 (colored)

Remove dead codes and make if_free_sadl static

No functional change.

Revision 1.125.6.2 / (download) - annotate - [select for diffs], Wed Aug 20 00:04:34 2014 UTC (8 years, 5 months ago) by tls
Branch: tls-maxphys
Changes since 1.125.6.1: +26 -24 lines
Diff to previous 1.125.6.1 (colored) to branchpoint 1.125 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.127.4.1 / (download) - annotate - [select for diffs], Sun Aug 10 06:56:15 2014 UTC (8 years, 6 months ago) by tls
Branch: tls-earlyentropy
Changes since 1.127: +21 -14 lines
Diff to previous 1.127 (colored) next main 1.128 (colored)

Rebase.

Revision 1.130 / (download) - annotate - [select for diffs], Fri Jun 6 22:15:32 2014 UTC (8 years, 8 months ago) by rmind
Branch: MAIN
CVS Tags: tls-maxphys-base, tls-earlyentropy-base, netbsd-7-nhusb-base, netbsd-7-base, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0
Branch point for: netbsd-7-nhusb, netbsd-7
Changes since 1.129: +4 -3 lines
Diff to previous 1.129 (colored)

sppp_input: handle pktqueue case correctly (fix for the previous).

Revision 1.129 / (download) - annotate - [select for diffs], Thu Jun 5 23:48:16 2014 UTC (8 years, 8 months ago) by rmind
Branch: MAIN
Changes since 1.128: +15 -11 lines
Diff to previous 1.128 (colored)

- Implement pktqueue interface for lockless IP input queue.
- Replace ipintrq and ip6intrq with the pktqueue mechanism.
- Eliminate kernel-lock from ipintr() and ip6intr().
- Some preparation work to push softnet_lock out of ipintr().

Discussed on tech-net.

Revision 1.123.2.2 / (download) - annotate - [select for diffs], Thu May 22 11:41:09 2014 UTC (8 years, 8 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.123.2.1: +9 -40 lines
Diff to previous 1.123.2.1 (colored) to branchpoint 1.123 (colored) next main 1.124 (colored)

sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.126.6.2 / (download) - annotate - [select for diffs], Sun May 18 17:46:12 2014 UTC (8 years, 8 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.126.6.1: +10 -8 lines
Diff to previous 1.126.6.1 (colored) to branchpoint 1.126 (colored) next main 1.127 (colored)

sync with head

Revision 1.128 / (download) - annotate - [select for diffs], Thu May 15 09:23:03 2014 UTC (8 years, 8 months ago) by msaitoh
Branch: MAIN
CVS Tags: rmind-smpnet-nbase, rmind-smpnet-base
Changes since 1.127: +10 -8 lines
Diff to previous 1.127 (colored)

 Save a NETISR_* value in a variable and call schednetisr() after enqueue
a packet for readability and future modification.

Revision 1.126.6.1 / (download) - annotate - [select for diffs], Wed Aug 28 23:59:36 2013 UTC (9 years, 5 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.126: +9 -14 lines
Diff to previous 1.126 (colored)

sync with head

Revision 1.127 / (download) - annotate - [select for diffs], Sat Jun 29 21:06:58 2013 UTC (9 years, 7 months ago) by rmind
Branch: MAIN
CVS Tags: yamt-pagecache-base9, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2
Branch point for: tls-earlyentropy
Changes since 1.126: +9 -14 lines
Diff to previous 1.126 (colored)

- Rewrite parts of pfil(9): use array to store hooks and thus be more cache
  friendly (there are only few hooks in the system).  Make the structures
  opaque and the interface more strict.
- Remove PFIL_HOOKS option by making pfil(9) mandatory.

Revision 1.125.6.1 / (download) - annotate - [select for diffs], Sun Jun 23 06:20:25 2013 UTC (9 years, 7 months ago) by tls
Branch: tls-maxphys
Changes since 1.125: +2 -28 lines
Diff to previous 1.125 (colored)

resync from head

Revision 1.126 / (download) - annotate - [select for diffs], Fri Mar 1 18:25:56 2013 UTC (9 years, 11 months ago) by joerg
Branch: MAIN
CVS Tags: khorben-n900, agc-symver-base, agc-symver
Branch point for: rmind-smpnet
Changes since 1.125: +2 -28 lines
Diff to previous 1.125 (colored)

Retire OSI network stack. OK core@

Revision 1.123.2.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:08:38 2012 UTC (10 years, 9 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.123: +9 -12 lines
Diff to previous 1.123 (colored)

sync with head

Revision 1.124.2.1 / (download) - annotate - [select for diffs], Sat Feb 18 07:35:37 2012 UTC (10 years, 11 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.124: +3 -3 lines
Diff to previous 1.124 (colored) next main 1.125 (colored)

merge to -current.

Revision 1.125 / (download) - annotate - [select for diffs], Sat Dec 17 20:05:39 2011 UTC (11 years, 1 month ago) by tls
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base10
Branch point for: tls-maxphys
Changes since 1.124: +3 -3 lines
Diff to previous 1.124 (colored)


Separate /dev/random pseudodevice implemenation from kernel entropy pool
implementation.  Rewrite pseudodevice code to use cprng_strong(9).

The new pseudodevice is cloning, so each caller gets bits from a stream
generated with its own key.  Users of /dev/urandom get their generators
keyed on a "best effort" basis -- the kernel will rekey generators
whenever the entropy pool hits the high water mark -- while users of
/dev/random get their generators rekeyed every time key-length bits
are output.

The underlying cprng_strong API can use AES-256 or AES-128, but we use
AES-128 because of concerns about related-key attacks on AES-256.  This
improves performance (and reduces entropy pool depletion) significantly
for users of /dev/urandom but does cause users of /dev/random to rekey
twice as often.

Also fixes various bugs (including some missing locking and a reseed-counter
overflow in the CTR_DRBG code) found while testing this.

For long reads, this generator is approximately 20 times as fast as the
old generator (dd with bs=64K yields 53MB/sec on 2Ghz Core2 instead of
2.5MB/sec) and also uses a separate mutex per instance so concurrency
is greatly improved.  For reads of typical key sizes for modern
cryptosystems (16-32 bytes) performance is about the same as the old
code: a little better for 32 bytes, a little worse for 16 bytes.

Revision 1.124 / (download) - annotate - [select for diffs], Sat Nov 19 22:51:25 2011 UTC (11 years, 2 months ago) by tls
Branch: MAIN
CVS Tags: jmcneill-usbmp-pre-base2, jmcneill-usbmp-base
Branch point for: jmcneill-usbmp
Changes since 1.123: +9 -12 lines
Diff to previous 1.123 (colored)

First step of random number subsystem rework described in
<20111022023242.BA26F14A158@mail.netbsd.org>.  This change includes
the following:

	An initial cleanup and minor reorganization of the entropy pool
	code in sys/dev/rnd.c and sys/dev/rndpool.c.  Several bugs are
	fixed.  Some effort is made to accumulate entropy more quickly at
	boot time.

	A generic interface, "rndsink", is added, for stream generators to
	request that they be re-keyed with good quality entropy from the pool
	as soon as it is available.

	The arc4random()/arc4randbytes() implementation in libkern is
	adjusted to use the rndsink interface for rekeying, which helps
	address the problem of low-quality keys at boot time.

	An implementation of the FIPS 140-2 statistical tests for random
	number generator quality is provided (libkern/rngtest.c).  This
	is based on Greg Rose's implementation from Qualcomm.

	A new random stream generator, nist_ctr_drbg, is provided.  It is
	based on an implementation of the NIST SP800-90 CTR_DRBG by
	Henric Jungheim.  This generator users AES in a modified counter
	mode to generate a backtracking-resistant random stream.

	An abstraction layer, "cprng", is provided for in-kernel consumers
	of randomness.  The arc4random/arc4randbytes API is deprecated for
	in-kernel use.  It is replaced by "cprng_strong".  The current
	cprng_fast implementation wraps the existing arc4random
	implementation.  The current cprng_strong implementation wraps the
	new CTR_DRBG implementation.  Both interfaces are rekeyed from
	the entropy pool automatically at intervals justifiable from best
	current cryptographic practice.

	In some quick tests, cprng_fast() is about the same speed as
	the old arc4randbytes(), and cprng_strong() is about 20% faster
	than rnd_extract_data().  Performance is expected to improve.

	The AES code in src/crypto/rijndael is no longer an optional
	kernel component, as it is required by cprng_strong, which is
	not an optional kernel component.

	The entropy pool output is subjected to the rngtest tests at
	startup time; if it fails, the system will reboot.  There is
	approximately a 3/10000 chance of a false positive from these
	tests.  Entropy pool _input_ from hardware random numbers is
	subjected to the rngtest tests at attach time, as well as the
	FIPS continuous-output test, to detect bad or stuck hardware
	RNGs; if any are detected, they are detached, but the system
	continues to run.

	A problem with rndctl(8) is fixed -- datastructures with
	pointers in arrays are no longer passed to userspace (this
	was not a security problem, but rather a major issue for
	compat32).  A new kernel will require a new rndctl.

	The sysctl kern.arandom() and kern.urandom() nodes are hooked
	up to the new generators, but the /dev/*random pseudodevices
	are not, yet.

	Manual pages for the new kernel interfaces are forthcoming.

Revision 1.123 / (download) - annotate - [select for diffs], Fri Oct 28 22:08:14 2011 UTC (11 years, 3 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: yamt-pagecache
Changes since 1.122: +2 -3 lines
Diff to previous 1.122 (colored)

For these interfaces, the implementation of SIOCSIFDSTADDR is identical
to SIOCINITIFADDR, and SIOCSIFDSTADDR callers always fall back to
SIOCINITIFADDR, so just get rid of the SIOCSIFDSTADDR case.

Revision 1.122 / (download) - annotate - [select for diffs], Mon Sep 5 12:19:09 2011 UTC (11 years, 5 months ago) by rjs
Branch: MAIN
Changes since 1.121: +9 -8 lines
Diff to previous 1.121 (colored)

Add support for RFC 4638 to pppoe(4).

The change to if_spppsubr.c moves the test for whether LCP should
request a mru change until after the pppoe device has picked up the
mtu of the underlying ethernet device.

Revision 1.121 / (download) - annotate - [select for diffs], Sun Jul 17 20:54:52 2011 UTC (11 years, 6 months ago) by joerg
Branch: MAIN
Changes since 1.120: +2 -4 lines
Diff to previous 1.120 (colored)

Retire varargs.h support. Move machine/stdarg.h logic into MI
sys/stdarg.h and expect compiler to provide proper builtins, defaulting
to the GCC interface. lint still has a special fallback.
Reduce abuse of _BSD_VA_LIST_ by defining __va_list by default and
derive va_list as required by standards.

Revision 1.109.10.3 / (download) - annotate - [select for diffs], Wed Aug 11 22:54:54 2010 UTC (12 years, 6 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.109.10.2: +45 -2 lines
Diff to previous 1.109.10.2 (colored) to branchpoint 1.109 (colored) next main 1.110 (colored)

sync with head.

Revision 1.119.2.1 / (download) - annotate - [select for diffs], Sun May 30 05:18:01 2010 UTC (12 years, 8 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.119: +45 -2 lines
Diff to previous 1.119 (colored) next main 1.120 (colored)

sync with head

Revision 1.118.2.1 / (download) - annotate - [select for diffs], Fri Apr 30 14:44:19 2010 UTC (12 years, 9 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.118: +50 -7 lines
Diff to previous 1.118 (colored) next main 1.119 (colored)

Sync with HEAD.

Revision 1.120 / (download) - annotate - [select for diffs], Tue Apr 20 14:32:03 2010 UTC (12 years, 9 months ago) by jmcneill
Branch: MAIN
CVS Tags: yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, rmind-uvmplock-nbase, rmind-uvmplock-base, matt-mips64-premerge-20101231, jruoho-x86intr-base, jruoho-x86intr, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Changes since 1.119: +45 -2 lines
Diff to previous 1.119 (colored)

COMPAT_50 support for SPPP[GS]ETIDLETO and SPPP[GS]ETKEEPALIVE, ok martin@

Revision 1.109.10.2 / (download) - annotate - [select for diffs], Thu Mar 11 15:04:27 2010 UTC (12 years, 11 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.109.10.1: +7 -7 lines
Diff to previous 1.109.10.1 (colored) to branchpoint 1.109 (colored)

sync with head

Revision 1.119 / (download) - annotate - [select for diffs], Sun Feb 28 15:52:17 2010 UTC (12 years, 11 months ago) by snj
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9
Branch point for: rmind-uvmplock
Changes since 1.118: +7 -7 lines
Diff to previous 1.118 (colored)

Fight the ever-increasing size of src checkouts by spelling "useful"
without an extra l.

Revision 1.116.4.1 / (download) - annotate - [select for diffs], Wed May 13 17:22:20 2009 UTC (13 years, 8 months ago) by jym
Branch: jym-xensuspend
Changes since 1.116: +14 -14 lines
Diff to previous 1.116 (colored) next main 1.117 (colored)

Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.

Revision 1.109.10.1 / (download) - annotate - [select for diffs], Mon May 4 08:14:15 2009 UTC (13 years, 9 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.109: +29 -24 lines
Diff to previous 1.109 (colored)

sync with head.

Revision 1.114.2.2 / (download) - annotate - [select for diffs], Tue Apr 28 07:37:16 2009 UTC (13 years, 9 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.114.2.1: +14 -14 lines
Diff to previous 1.114.2.1 (colored) to branchpoint 1.114 (colored) next main 1.115 (colored)

Sync with HEAD.

Revision 1.118 / (download) - annotate - [select for diffs], Sat Apr 18 14:58:05 2009 UTC (13 years, 9 months ago) by tsutsui
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, uebayasi-xip-base, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base, matt-premerge-20091211, jymxensuspend-base, jym-xensuspend-nbase, jym-xensuspend-base
Branch point for: uebayasi-xip
Changes since 1.117: +14 -14 lines
Diff to previous 1.117 (colored)

Remove extra whitespace added by a stupid tool.
XXX: more in src/sys/arch

Revision 1.117 / (download) - annotate - [select for diffs], Wed Mar 18 17:06:51 2009 UTC (13 years, 10 months ago) by cegger
Branch: MAIN
Changes since 1.116: +14 -14 lines
Diff to previous 1.116 (colored)

bcopy -> memcpy

Revision 1.114.2.1 / (download) - annotate - [select for diffs], Mon Jan 19 13:20:11 2009 UTC (14 years ago) by skrll
Branch: nick-hppapmap
Changes since 1.114: +7 -5 lines
Diff to previous 1.114 (colored)

Sync with HEAD.

Revision 1.109.6.4 / (download) - annotate - [select for diffs], Sat Jan 17 13:29:31 2009 UTC (14 years ago) by mjf
Branch: mjf-devfs2
Changes since 1.109.6.3: +5 -3 lines
Diff to previous 1.109.6.3 (colored) to branchpoint 1.109 (colored) next main 1.110 (colored)

Sync with HEAD.

Revision 1.110.2.2 / (download) - annotate - [select for diffs], Sat Dec 13 01:15:25 2008 UTC (14 years, 1 month ago) by haad
Branch: haad-dm
Changes since 1.110.2.1: +7 -5 lines
Diff to previous 1.110.2.1 (colored) to branchpoint 1.110 (colored) next main 1.111 (colored)

Update haad-dm branch to haad-dm-base2.

Revision 1.116 / (download) - annotate - [select for diffs], Thu Nov 13 22:22:24 2008 UTC (14 years, 2 months ago) by martin
Branch: MAIN
CVS Tags: nick-hppapmap-base2, mjf-devfs2-base, haad-nbase2, haad-dm-base2, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Branch point for: jym-xensuspend
Changes since 1.115: +2 -3 lines
Diff to previous 1.115 (colored)

Pass SIOCAIFADDR to ifioctl_common, fixes PR kern/39900.

Revision 1.115 / (download) - annotate - [select for diffs], Fri Nov 7 00:20:13 2008 UTC (14 years, 3 months ago) by dyoung
Branch: MAIN
Changes since 1.114: +7 -4 lines
Diff to previous 1.114 (colored)

*** Summary ***

When a link-layer address changes (e.g., ifconfig ex0 link
02:de:ad:be:ef:02 active), send a gratuitous ARP and/or a Neighbor
Advertisement to update the network-/link-layer address bindings
on our LAN peers.

Refuse a change of ethernet address to the address 00:00:00:00:00:00
or to any multicast/broadcast address.  (Thanks matt@.)

Reorder ifnet ioctl operations so that driver ioctls may inherit
the functions of their "class"---ether_ioctl(), fddi_ioctl(), et
cetera---and the class ioctls may inherit from the generic ioctl,
ifioctl_common(), but both driver- and class-ioctls may override
the generic behavior.  Make network drivers share more code.

Distinguish a "factory" link-layer address from others for the
purposes of both protecting that address from deletion and computing
EUI64.

Return consistent, appropriate error codes from network drivers.

Improve readability.  KNF.

*** Details ***

In if_attach(), always initialize the interface ioctl routine,
ifnet->if_ioctl, if the driver has not already initialized it.
Delete if_ioctl == NULL tests everywhere else, because it cannot
happen.

In the ioctl routines of network interfaces, inherit common ioctl
behaviors by calling either ifioctl_common() or whichever ioctl
routine is appropriate for the class of interface---e.g., ether_ioctl()
for ethernets.

Stop (ab)using SIOCSIFADDR and start to use SIOCINITIFADDR.  In
the user->kernel interface, SIOCSIFADDR's argument was an ifreq,
but on the protocol->ifnet interface, SIOCSIFADDR's argument was
an ifaddr.  That was confusing, and it would work against me as I
make it possible for a network interface to overload most ioctls.
On the protocol->ifnet interface, replace SIOCSIFADDR with
SIOCINITIFADDR.  In ifioctl(), return EPERM if userland tries to
invoke SIOCINITIFADDR.

In ifioctl(), give the interface the first shot at handling most
interface ioctls, and give the protocol the second shot, instead
of the other way around. Finally, let compatibility code (COMPAT_OSOCK)
take a shot.

Pull device initialization out of switch statements under
SIOCINITIFADDR.  For example, pull ..._init() out of any switch
statement that looks like this:

        switch (...->sa_family) {
        case ...:
                ..._init();
                ...
                break;
        ...
        default:
                ..._init();
                ...
                break;
        }

Rewrite many if-else clauses that handle all permutations of IFF_UP
and IFF_RUNNING to use a switch statement,

        switch (x & (IFF_UP|IFF_RUNNING)) {
        case 0:
                ...
                break;
        case IFF_RUNNING:
                ...
                break;
        case IFF_UP:
                ...
                break;
        case IFF_UP|IFF_RUNNING:
                ...
                break;
        }

unifdef lots of code containing #ifdef FreeBSD, #ifdef NetBSD, and
#ifdef SIOCSIFMTU, especially in fwip(4) and in ndis(4).

In ipw(4), remove an if_set_sadl() call that is out of place.

In nfe(4), reuse the jumbo MTU logic in ether_ioctl().

Let ethernets register a callback for setting h/w state such as
promiscuous mode and the multicast filter in accord with a change
in the if_flags: ether_set_ifflags_cb() registers a callback that
returns ENETRESET if the caller should reset the ethernet by calling
if_init(), 0 on success, != 0 on failure.  Pull common code from
ex(4), gem(4), nfe(4), sip(4), tlp(4), vge(4) into ether_ioctl(),
and register if_flags callbacks for those drivers.

Return ENOTTY instead of EINVAL for inappropriate ioctls.  In
zyd(4), use ENXIO instead of ENOTTY to indicate that the device is
not any longer attached.

Add to if_set_sadl() a boolean 'factory' argument that indicates
whether a link-layer address was assigned by the factory or some
other source.  In a comment, recommend using the factory address
for generating an EUI64, and update in6_get_hw_ifid() to prefer a
factory address to any other link-layer address.

Add a routing message, RTM_LLINFO_UPD, that tells protocols to
update the binding of network-layer addresses to link-layer addresses.
Implement this message in IPv4 and IPv6 by sending a gratuitous
ARP or a neighbor advertisement, respectively.  Generate RTM_LLINFO_UPD
messages on a change of an interface's link-layer address.

In ether_ioctl(), do not let SIOCALIFADDR set a link-layer address
that is broadcast/multicast or equal to 00:00:00:00:00:00.

Make ether_ioctl() call ifioctl_common() to handle ioctls that it
does not understand.

In gif(4), initialize if_softc and use it, instead of assuming that
the gif_softc and ifp overlap.

Let ifioctl_common() handle SIOCGIFADDR.

Sprinkle rtcache_invariants(), which checks on DIAGNOSTIC kernels
that certain invariants on a struct route are satisfied.

In agr(4), rewrite agr_ioctl_filter() to be a bit more explicit
about the ioctls that we do not allow on an agr(4) member interface.

bzero -> memset.  Delete unnecessary casts to void *.  Use
sockaddr_in_init() and sockaddr_in6_init().  Compare pointers with
NULL instead of "testing truth".  Replace some instances of (type
*)0 with NULL.  Change some K&R prototypes to ANSI C, and join
lines.

Revision 1.110.2.1 / (download) - annotate - [select for diffs], Sun Oct 19 22:17:41 2008 UTC (14 years, 3 months ago) by haad
Branch: haad-dm
Changes since 1.110: +10 -7 lines
Diff to previous 1.110 (colored)

Sync with HEAD.

Revision 1.109.12.2 / (download) - annotate - [select for diffs], Fri Oct 10 22:35:43 2008 UTC (14 years, 4 months ago) by skrll
Branch: wrstuden-revivesa
Changes since 1.109.12.1: +3 -3 lines
Diff to previous 1.109.12.1 (colored) to branchpoint 1.109 (colored) next main 1.110 (colored)

Sync with HEAD.

Revision 1.109.6.3 / (download) - annotate - [select for diffs], Sun Oct 5 20:11:32 2008 UTC (14 years, 4 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.109.6.2: +1 -1 lines
Diff to previous 1.109.6.2 (colored) to branchpoint 1.109 (colored)

Sync with HEAD.

Revision 1.114 / (download) - annotate - [select for diffs], Fri Oct 3 18:33:06 2008 UTC (14 years, 4 months ago) by pooka
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-4, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, haad-dm-base1
Branch point for: nick-hppapmap
Changes since 1.113: +3 -3 lines
Diff to previous 1.113 (colored)

Fix pointer size typo - affects only debug output.

Henning Petersen, PR lib/39689

Revision 1.109.6.2 / (download) - annotate - [select for diffs], Sun Sep 28 10:40:56 2008 UTC (14 years, 4 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.109.6.1: +7 -4 lines
Diff to previous 1.109.6.1 (colored) to branchpoint 1.109 (colored)

Sync with HEAD.

Revision 1.109.12.1 / (download) - annotate - [select for diffs], Thu Sep 18 04:37:00 2008 UTC (14 years, 4 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.109: +11 -8 lines
Diff to previous 1.109 (colored)

Sync with wrstuden-revivesa-base-2.

Revision 1.102.6.1 / (download) - annotate - [select for diffs], Thu Sep 4 08:46:45 2008 UTC (14 years, 5 months ago) by skrll
Branch: wrstuden-fixsa
Changes since 1.102: +9 -6 lines
Diff to previous 1.102 (colored) next main 1.103 (colored)

Sync with netbsd-4.

Revision 1.113 / (download) - annotate - [select for diffs], Fri Aug 22 12:13:18 2008 UTC (14 years, 5 months ago) by martin
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-3, wrstuden-revivesa-base-2
Changes since 1.112: +9 -6 lines
Diff to previous 1.112 (colored)

Backout previous/restore initial fix for PR kern/39280.
The later changes were only cosmetic, cause problems in IPv6-only-
connections (reported by Wolfgang Solfrank in private mail), as well
as reintroducing the original bug again.

Revision 1.102.2.1 / (download) - annotate - [select for diffs], Wed Aug 20 19:51:49 2008 UTC (14 years, 5 months ago) by bouyer
Branch: netbsd-4
CVS Tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base
Changes since 1.102: +9 -6 lines
Diff to previous 1.102 (colored) next main 1.103 (colored)

Pull up following revision(s) (requested by martin in ticket #1185):
	sys/net/if_spppsubr.c: revision 1.111
PR kern/39280: Uninitialized callout stopped in if_spppsubr layer
in kernels without options INET6.

Revision 1.112 / (download) - annotate - [select for diffs], Mon Aug 4 12:03:14 2008 UTC (14 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.111: +4 -7 lines
Diff to previous 1.111 (colored)

keep the loop, but arrange IDX_COUNT to be correct.

Revision 1.111 / (download) - annotate - [select for diffs], Mon Aug 4 10:17:33 2008 UTC (14 years, 6 months ago) by martin
Branch: MAIN
Changes since 1.110: +9 -6 lines
Diff to previous 1.110 (colored)

PR kern/39280: Uninitialized callout stopped in if_spppsubr layer
in kernels without options INET6.

Revision 1.109.6.1 / (download) - annotate - [select for diffs], Sun Jun 29 09:33:18 2008 UTC (14 years, 7 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.109: +4 -4 lines
Diff to previous 1.109 (colored)

Sync with HEAD.

Revision 1.109.14.1 / (download) - annotate - [select for diffs], Fri Jun 27 15:11:48 2008 UTC (14 years, 7 months ago) by simonb
Branch: simonb-wapbl
Changes since 1.109: +4 -4 lines
Diff to previous 1.109 (colored) next main 1.110 (colored)

Sync with head.

Revision 1.110 / (download) - annotate - [select for diffs], Tue Jun 24 10:32:14 2008 UTC (14 years, 7 months ago) by gmcgarry
Branch: MAIN
CVS Tags: simonb-wapbl-nbase, simonb-wapbl-base
Branch point for: haad-dm
Changes since 1.109: +4 -4 lines
Diff to previous 1.109 (colored)

ioctl commands are unsigned long.

Revision 1.106.8.2 / (download) - annotate - [select for diffs], Sun Mar 23 02:05:05 2008 UTC (14 years, 10 months ago) by matt
Branch: matt-armv6
Changes since 1.106.8.1: +56 -81 lines
Diff to previous 1.106.8.1 (colored) to branchpoint 1.106 (colored) next main 1.107 (colored)

sync with HEAD

Revision 1.85.2.7 / (download) - annotate - [select for diffs], Wed Feb 27 08:37:00 2008 UTC (14 years, 11 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.85.2.6: +53 -53 lines
Diff to previous 1.85.2.6 (colored) to branchpoint 1.85 (colored) next main 1.86 (colored)

sync with head.

Revision 1.109 / (download) - annotate - [select for diffs], Wed Feb 20 17:05:53 2008 UTC (14 years, 11 months ago) by matt
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, yamt-nfs-mp-base2, yamt-nfs-mp-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, wrstuden-revivesa-base-1, wrstuden-revivesa-base, nick-net80211-sync-base, nick-net80211-sync, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-nbase, hpcarm-cleanup-base, ad-socklock-base1
Branch point for: yamt-nfs-mp, wrstuden-revivesa, simonb-wapbl, mjf-devfs2
Changes since 1.108: +53 -53 lines
Diff to previous 1.108 (colored)

s/u_\(int[0-9]*_t\)/u\1/g
(change u_int*_t to uint*_t)

Revision 1.106.14.1 / (download) - annotate - [select for diffs], Mon Feb 18 21:07:01 2008 UTC (14 years, 11 months ago) by mjf
Branch: mjf-devfs
Changes since 1.106: +8 -33 lines
Diff to previous 1.106 (colored) next main 1.107 (colored)

Sync with HEAD.

Revision 1.85.2.6 / (download) - annotate - [select for diffs], Mon Feb 11 14:59:59 2008 UTC (15 years ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.85.2.5: +5 -30 lines
Diff to previous 1.85.2.5 (colored) to branchpoint 1.85 (colored)

sync with head.

Revision 1.108 / (download) - annotate - [select for diffs], Thu Feb 7 01:22:01 2008 UTC (15 years ago) by dyoung
Branch: MAIN
CVS Tags: mjf-devfs-base
Changes since 1.107: +5 -30 lines
Diff to previous 1.107 (colored)

Start patching up the kernel so that a network driver always has
the opportunity to handle an ioctl before generic ifioctl handling
occurs.  This will ease extending the kernel and sharing of code
between drivers.

First steps:  Make the signature of ifioctl_common() match struct
ifinet->if_ioctl.  Convert SIOCSIFCAP and SIOCSIFMTU to the new
ifioctl() regime, throughout the kernel.

Revision 1.85.2.5 / (download) - annotate - [select for diffs], Mon Jan 21 09:47:05 2008 UTC (15 years ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.85.2.4: +5 -5 lines
Diff to previous 1.85.2.4 (colored) to branchpoint 1.85 (colored)

sync with head

Revision 1.106.8.1 / (download) - annotate - [select for diffs], Wed Jan 9 01:57:13 2008 UTC (15 years, 1 month ago) by matt
Branch: matt-armv6
Changes since 1.106: +5 -5 lines
Diff to previous 1.106 (colored)

sync with HEAD

Revision 1.106.20.1 / (download) - annotate - [select for diffs], Wed Jan 2 21:57:08 2008 UTC (15 years, 1 month ago) by bouyer
Branch: bouyer-xeni386
CVS Tags: bouyer-xeni386-merge1
Changes since 1.106: +5 -5 lines
Diff to previous 1.106 (colored) next main 1.107 (colored)

Sync with HEAD

Revision 1.106.16.1 / (download) - annotate - [select for diffs], Wed Dec 26 19:57:33 2007 UTC (15 years, 1 month ago) by ad
Branch: vmlocking2
Changes since 1.106: +5 -5 lines
Diff to previous 1.106 (colored) next main 1.107 (colored)

Sync with head.

Revision 1.107 / (download) - annotate - [select for diffs], Tue Dec 25 18:33:45 2007 UTC (15 years, 1 month ago) by perry
Branch: MAIN
CVS Tags: vmlocking2-base3, matt-armv6-base, bouyer-xeni386-nbase, bouyer-xeni386-base
Changes since 1.106: +5 -5 lines
Diff to previous 1.106 (colored)

Convert many of the uses of __attribute__ to equivalent
__packed, __unused and __dead macros from cdefs.h

Revision 1.85.2.4 / (download) - annotate - [select for diffs], Mon Sep 3 14:42:11 2007 UTC (15 years, 5 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.85.2.3: +33 -19 lines
Diff to previous 1.85.2.3 (colored) to branchpoint 1.85 (colored)

sync with head.

Revision 1.104.2.2 / (download) - annotate - [select for diffs], Sun Jul 15 15:53:00 2007 UTC (15 years, 6 months ago) by ad
Branch: vmlocking
Changes since 1.104.2.1: +24 -10 lines
Diff to previous 1.104.2.1 (colored) to branchpoint 1.104 (colored) next main 1.105 (colored)

Sync with head.

Revision 1.104.4.1 / (download) - annotate - [select for diffs], Wed Jul 11 20:10:59 2007 UTC (15 years, 7 months ago) by mjf
Branch: mjf-ufs-trans
Changes since 1.104: +32 -18 lines
Diff to previous 1.104 (colored) next main 1.105 (colored)

Sync with head.

Revision 1.106 / (download) - annotate - [select for diffs], Mon Jul 9 21:11:00 2007 UTC (15 years, 7 months ago) by ad
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base2, vmlocking2-base1, vmlocking-nbase, vmlocking-base, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, mjf-ufs-trans-base, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, jmcneill-pm-base, jmcneill-pm, jmcneill-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64
Branch point for: vmlocking2, mjf-devfs, matt-armv6, bouyer-xeni386
Changes since 1.105: +10 -10 lines
Diff to previous 1.105 (colored)

Merge some of the less invasive changes from the vmlocking branch:

- kthread, callout, devsw API changes
- select()/poll() improvements
- miscellaneous MT safety improvements

Revision 1.104.2.1 / (download) - annotate - [select for diffs], Sun Jul 1 21:50:45 2007 UTC (15 years, 7 months ago) by ad
Branch: vmlocking
Changes since 1.104: +10 -10 lines
Diff to previous 1.104 (colored)

Adapt to callout API change.

Revision 1.105 / (download) - annotate - [select for diffs], Sat Jun 23 08:45:25 2007 UTC (15 years, 7 months ago) by scw
Branch: MAIN
Changes since 1.104: +24 -10 lines
Diff to previous 1.104 (colored)

If the underlying link's MTU is less than PP_MTU (e.g. PPPoE), set our
MRU to the link's MTU and initiate an MRU negotiation with the peer.

This is useful when the PPP session is bridged from Ethernet to ATM
by an ADSL modem (such as the Linksys AM200). Unless we negotiate the
lower MRU, the peer is unaware that 1500-byte packets will not make
it umolested across the link (the Linksys AM200 silently truncates them
to 1498 bytes, creating a nice PMTU blackhole).

Note that the PPP RFC says peers MUST accept 1500 byte packets,
regardless of the negotiated MRU, so most ISPs which use PPPoA will
probably still send 1500-byte packets. However, I persuaded my ISP
(Andrews and Arnold) to modify their software to generate an ICMP error
"fragment needed" for packets with IP.DF set which are larger than the
negotiated MRU. They will still forward non-IP.DF packets, with the
associated truncation, but at least my PMTU troubles have gone.

Revision 1.82.2.2 / (download) - annotate - [select for diffs], Fri Jun 15 11:37:58 2007 UTC (15 years, 7 months ago) by liamjfoy
Branch: netbsd-3
Changes since 1.82.2.1: +3 -6 lines
Diff to previous 1.82.2.1 (colored) to branchpoint 1.82 (colored) next main 1.83 (colored)

Pull up following revision(s) (requested by msaitoh in ticket #1802):
	sys/net/if_spppsubr.c                           1.93-1.94

	Do not automagically UP the interface when setting the address.
	This is the interface level (e.g. pppoe) fix for PR 30694.

Revision 1.102.4.2 / (download) - annotate - [select for diffs], Mon Mar 12 05:59:13 2007 UTC (15 years, 11 months ago) by rmind
Branch: yamt-idlelwp
Changes since 1.102.4.1: +3 -3 lines
Diff to previous 1.102.4.1 (colored) to branchpoint 1.102 (colored) next main 1.103 (colored)

Sync with HEAD.

Revision 1.104 / (download) - annotate - [select for diffs], Sun Mar 4 06:03:16 2007 UTC (15 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: yamt-idlelwp-base8, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup
Branch point for: vmlocking, mjf-ufs-trans
Changes since 1.103: +3 -3 lines
Diff to previous 1.103 (colored)

Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.

Revision 1.102.4.1 / (download) - annotate - [select for diffs], Tue Feb 27 16:54:44 2007 UTC (15 years, 11 months ago) by yamt
Branch: yamt-idlelwp
Changes since 1.102: +4 -4 lines
Diff to previous 1.102 (colored)

- sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.

Revision 1.85.2.3 / (download) - annotate - [select for diffs], Mon Feb 26 09:11:35 2007 UTC (15 years, 11 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.85.2.2: +4 -4 lines
Diff to previous 1.85.2.2 (colored) to branchpoint 1.85 (colored)

sync with head.

Revision 1.103 / (download) - annotate - [select for diffs], Sat Feb 17 22:34:09 2007 UTC (15 years, 11 months ago) by dyoung
Branch: MAIN
CVS Tags: ad-audiomp-base, ad-audiomp
Changes since 1.102: +4 -4 lines
Diff to previous 1.102 (colored)

KNF: de-__P, bzero -> memset, bcmp -> memcmp.  Remove extraneous
   parentheses in return statements.

Cosmetic: don't open-code TAILQ_FOREACH().

Cosmetic: change types of variables to avoid oodles of casts: in
   in6_src.c, avoid casts by changing several route_in6 pointers
   to struct route pointers.  Remove unnecessary casts to caddr_t
   elsewhere.

Pave the way for eliminating address family-specific route caches:
   soon, struct route will not embed a sockaddr, but it will hold
   a reference to an external sockaddr, instead.  We will set the
   destination sockaddr using rtcache_setdst().  (I created a stub
   for it, but it isn't used anywhere, yet.)  rtcache_free() will
   free the sockaddr.  I have extracted from rtcache_free() a helper
   subroutine, rtcache_clear().  rtcache_clear() will "forget" a
   cached route, but it will not forget the destination by releasing
   the sockaddr.  I use rtcache_clear() instead of rtcache_free()
   in rtcache_update(), because rtcache_update() is not supposed
   to forget the destination.

Constify:

   1 Introduce const accessor for route->ro_dst, rtcache_getdst().

   2 Constify the 'dst' argument to ifnet->if_output().  This
     led me to constify a lot of code called by output routines.

   3 Constify the sockaddr argument to protosw->pr_ctlinput.  This
     led me to constify a lot of code called by ctlinput routines.

   4 Introduce const macros for converting from a generic sockaddr
     to family-specific sockaddrs, e.g., sockaddr_in: satocsin6,
     satocsin, et cetera.

Revision 1.97.2.2 / (download) - annotate - [select for diffs], Fri Jan 12 01:04:12 2007 UTC (16 years, 1 month ago) by ad
Branch: newlock2
Changes since 1.97.2.1: +6 -6 lines
Diff to previous 1.97.2.1 (colored) to branchpoint 1.97 (colored) next main 1.98 (colored)

Sync with head.

Revision 1.85.2.2 / (download) - annotate - [select for diffs], Sat Dec 30 20:50:20 2006 UTC (16 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.85.2.1: +171 -68 lines
Diff to previous 1.85.2.1 (colored) to branchpoint 1.85 (colored)

sync with head.

Revision 1.97.4.2 / (download) - annotate - [select for diffs], Sun Dec 10 07:19:00 2006 UTC (16 years, 2 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.97.4.1: +49 -38 lines
Diff to previous 1.97.4.1 (colored) to branchpoint 1.97 (colored) next main 1.98 (colored)

sync with head.

Revision 1.102 / (download) - annotate - [select for diffs], Fri Nov 24 21:23:07 2006 UTC (16 years, 2 months ago) by wiz
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, wrstuden-fixsa-base-1, post-newlock2-merge, newlock2-nbase, newlock2-base, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, matt-nb4-arm-base, matt-nb4-arm
Branch point for: yamt-idlelwp, wrstuden-fixsa, netbsd-4
Changes since 1.101: +6 -6 lines
Diff to previous 1.101 (colored)

Correct spelling of "immediate(ly)". From Zafer.

Revision 1.97.2.1 / (download) - annotate - [select for diffs], Sat Nov 18 21:39:29 2006 UTC (16 years, 2 months ago) by ad
Branch: newlock2
Changes since 1.97: +54 -27 lines
Diff to previous 1.97 (colored)

Sync with head.

Revision 1.101 / (download) - annotate - [select for diffs], Thu Nov 16 01:33:40 2006 UTC (16 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.100: +25 -25 lines
Diff to previous 1.100 (colored)

__unused removal on arguments; approved by core.

Revision 1.100 / (download) - annotate - [select for diffs], Thu Oct 26 15:11:22 2006 UTC (16 years, 3 months ago) by elad
Branch: MAIN
Changes since 1.99: +22 -11 lines
Diff to previous 1.99 (colored)

Kill a couple of KAUTH_GENERIC_ISSUSER usages.

I had to refactor the code a bit, I hope it's okay.

Revision 1.97.4.1 / (download) - annotate - [select for diffs], Sun Oct 22 06:07:24 2006 UTC (16 years, 3 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.97: +39 -23 lines
Diff to previous 1.97 (colored)

sync with head

Revision 1.99 / (download) - annotate - [select for diffs], Fri Oct 13 16:53:36 2006 UTC (16 years, 3 months ago) by dogcow
Branch: MAIN
CVS Tags: yamt-splraiseipl-base2
Changes since 1.98: +33 -17 lines
Diff to previous 1.98 (colored)

More -Wunused fallout. sprinkle __unused when possible; otherwise, use the
	do { if (&x) {} } while (/* CONSTCOND */ 0);
construct as suggested by uwe in <20061012224845.GA9449@snark.ptc.spbu.ru>.

Revision 1.98 / (download) - annotate - [select for diffs], Thu Oct 12 01:32:28 2006 UTC (16 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.97: +8 -8 lines
Diff to previous 1.97 (colored)

- sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386

Revision 1.87.6.5 / (download) - annotate - [select for diffs], Thu Sep 14 12:31:55 2006 UTC (16 years, 4 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.87.6.4: +2 -28 lines
Diff to previous 1.87.6.4 (colored) to branchpoint 1.87 (colored) next main 1.88 (colored)

sync with head.

Revision 1.87.2.1 / (download) - annotate - [select for diffs], Sat Sep 9 02:58:06 2006 UTC (16 years, 5 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.87: +142 -56 lines
Diff to previous 1.87 (colored) next main 1.88 (colored)

sync with head

Revision 1.97 / (download) - annotate - [select for diffs], Thu Sep 7 02:40:33 2006 UTC (16 years, 5 months ago) by dogcow
Branch: MAIN
CVS Tags: yamt-splraiseipl-base, yamt-pdpolicy-base9, rpaulo-netinet-merge-pcb-base
Branch point for: yamt-splraiseipl, newlock2
Changes since 1.96: +2 -28 lines
Diff to previous 1.96 (colored)

remove more vestiges of CCITT, LLC, HDLC, NS, and NSIP.

Revision 1.87.6.4 / (download) - annotate - [select for diffs], Sun Sep 3 15:25:35 2006 UTC (16 years, 5 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.87.6.3: +117 -13 lines
Diff to previous 1.87.6.3 (colored) to branchpoint 1.87 (colored)

sync with head.

Revision 1.75.2.2 / (download) - annotate - [select for diffs], Wed Aug 23 20:19:56 2006 UTC (16 years, 5 months ago) by tron
Branch: netbsd-2-0
Changes since 1.75.2.1: +117 -13 lines
Diff to previous 1.75.2.1 (colored) to branchpoint 1.75 (colored) next main 1.76 (colored)

Pull up following revision(s) (requested by adrianp in ticket #10677):
	sys/net/if_spppsubr.c: revision 1.96
A problem has been identified in the in-kernel PPP code shared by ISDN PPP
interfaces ippp(4) and pppoe(4). Insufficient checking of options presented
by the peer may cause writing of copies of the malicious input beyond the
end of a buffer allocated for that purpose.
Issue found by pavel@
Fix from martin@
This is SA2006-019 (CVE-2006-4304)

Revision 1.75.2.1.4.1 / (download) - annotate - [select for diffs], Wed Aug 23 20:19:17 2006 UTC (16 years, 5 months ago) by tron
Branch: netbsd-2-1
Changes since 1.75.2.1: +117 -13 lines
Diff to previous 1.75.2.1 (colored) next main 1.75.2.2 (colored)

Pull up following revision(s) (requested by adrianp in ticket #10677):
	sys/net/if_spppsubr.c: revision 1.96
A problem has been identified in the in-kernel PPP code shared by ISDN PPP
interfaces ippp(4) and pppoe(4). Insufficient checking of options presented
by the peer may cause writing of copies of the malicious input beyond the
end of a buffer allocated for that purpose.
Issue found by pavel@
Fix from martin@
This is SA2006-019 (CVE-2006-4304)

Revision 1.75.2.1.2.1 / (download) - annotate - [select for diffs], Wed Aug 23 20:18:37 2006 UTC (16 years, 5 months ago) by tron
Branch: netbsd-2
Changes since 1.75.2.1: +117 -13 lines
Diff to previous 1.75.2.1 (colored) next main 1.75.2.2 (colored)

Pull up following revision(s) (requested by adrianp in ticket #10677):
	sys/net/if_spppsubr.c: revision 1.96
A problem has been identified in the in-kernel PPP code shared by ISDN PPP
interfaces ippp(4) and pppoe(4). Insufficient checking of options presented
by the peer may cause writing of copies of the malicious input beyond the
end of a buffer allocated for that purpose.
Issue found by pavel@
Fix from martin@
This is SA2006-019 (CVE-2006-4304)

Revision 1.82.4.1 / (download) - annotate - [select for diffs], Wed Aug 23 20:14:15 2006 UTC (16 years, 5 months ago) by tron
Branch: netbsd-3-0
CVS Tags: netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE
Changes since 1.82: +117 -13 lines
Diff to previous 1.82 (colored) next main 1.83 (colored)

Pull up following revision(s) (requested by adrianp in ticket #1476):
	sys/net/if_spppsubr.c: revision 1.96
A problem has been identified in the in-kernel PPP code shared by ISDN PPP
interfaces ippp(4) and pppoe(4). Insufficient checking of options presented
by the peer may cause writing of copies of the malicious input beyond the
end of a buffer allocated for that purpose.
Issue found by pavel@
Fix from martin@
This is SA2006-019 (CVE-2006-4304)

Revision 1.82.2.1 / (download) - annotate - [select for diffs], Wed Aug 23 20:13:28 2006 UTC (16 years, 5 months ago) by tron
Branch: netbsd-3
CVS Tags: netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-1-RELEASE, netbsd-3-1
Changes since 1.82: +117 -13 lines
Diff to previous 1.82 (colored)

Pull up following revision(s) (requested by adrianp in ticket #1476):
	sys/net/if_spppsubr.c: revision 1.96
A problem has been identified in the in-kernel PPP code shared by ISDN PPP
interfaces ippp(4) and pppoe(4). Insufficient checking of options presented
by the peer may cause writing of copies of the malicious input beyond the
end of a buffer allocated for that purpose.
Issue found by pavel@
Fix from martin@
This is SA2006-019 (CVE-2006-4304)

Revision 1.95.2.1 / (download) - annotate - [select for diffs], Wed Aug 23 20:07:37 2006 UTC (16 years, 5 months ago) by tron
Branch: abandoned-netbsd-4
Changes since 1.95: +117 -13 lines
Diff to previous 1.95 (colored) next main 1.96 (colored)

Pull up following revision(s) (requested by adrianp in ticket #55):
	sys/net/if_spppsubr.c: revision 1.96
A problem has been identified in the in-kernel PPP code shared by ISDN PPP
interfaces ippp(4) and pppoe(4). Insufficient checking of options presented
by the peer may cause writing of copies of the malicious input beyond the
end of a buffer allocated for that purpose.
Issue found by pavel@
Fix from martin@
This is SA2006-019 (CVE-2006-4304)

Revision 1.96 / (download) - annotate - [select for diffs], Wed Aug 23 20:02:23 2006 UTC (16 years, 5 months ago) by adrianp
Branch: MAIN
CVS Tags: yamt-pdpolicy-base8
Changes since 1.95: +117 -13 lines
Diff to previous 1.95 (colored)

A problem has been identified in the in-kernel PPP code shared by ISDN PPP
interfaces ippp(4) and pppoe(4). Insufficient checking of options presented
by the peer may cause writing of copies of the malicious input beyond the
end of a buffer allocated for that purpose.

Issue found by pavel@
Fix from martin@

This is SA2006-019 (CVE-2006-4304)

Revision 1.87.6.3 / (download) - annotate - [select for diffs], Fri Aug 11 15:46:16 2006 UTC (16 years, 6 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.87.6.2: +6 -8 lines
Diff to previous 1.87.6.2 (colored) to branchpoint 1.87 (colored)

sync with head

Revision 1.95 / (download) - annotate - [select for diffs], Sun Jul 23 22:06:12 2006 UTC (16 years, 6 months ago) by ad
Branch: MAIN
CVS Tags: yamt-pdpolicy-base7, abandoned-netbsd-4-base
Branch point for: abandoned-netbsd-4
Changes since 1.94: +5 -4 lines
Diff to previous 1.94 (colored)

Use the LWP cached credentials where sane.

Revision 1.94 / (download) - annotate - [select for diffs], Thu Jul 13 23:43:13 2006 UTC (16 years, 7 months ago) by martin
Branch: MAIN
Changes since 1.93: +3 -4 lines
Diff to previous 1.93 (colored)

Small simplification, pointed out by Christian Hattemer in private mail.

Revision 1.92.2.1 / (download) - annotate - [select for diffs], Thu Jul 13 17:49:57 2006 UTC (16 years, 7 months ago) by gdamore
Branch: gdamore-uart
Changes since 1.92: +2 -4 lines
Diff to previous 1.92 (colored) next main 1.93 (colored)

Merge from HEAD.

Revision 1.93 / (download) - annotate - [select for diffs], Thu Jul 13 14:04:50 2006 UTC (16 years, 7 months ago) by martin
Branch: MAIN
Changes since 1.92: +2 -4 lines
Diff to previous 1.92 (colored)

Do not automagically UP the interface when setting the address.
Together with previous ifconfig changes, this fixes PR 30694, at
least for pppoe (and other sppp based) interfaces.

Revision 1.87.6.2 / (download) - annotate - [select for diffs], Mon Jun 26 12:53:39 2006 UTC (16 years, 7 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.87.6.1: +10 -9 lines
Diff to previous 1.87.6.1 (colored) to branchpoint 1.87 (colored)

sync with head.

Revision 1.85.2.1 / (download) - annotate - [select for diffs], Wed Jun 21 15:10:27 2006 UTC (16 years, 7 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.85: +30 -16 lines
Diff to previous 1.85 (colored)

sync with head.

Revision 1.90.2.1 / (download) - annotate - [select for diffs], Mon Jun 19 04:09:12 2006 UTC (16 years, 7 months ago) by chap
Branch: chap-midi
Changes since 1.90: +14 -12 lines
Diff to previous 1.90 (colored) next main 1.91 (colored)

Sync with head.

Revision 1.92 / (download) - annotate - [select for diffs], Wed Jun 7 22:33:43 2006 UTC (16 years, 8 months ago) by kardel
Branch: MAIN
CVS Tags: yamt-pdpolicy-base6, gdamore-uart-base, chap-midi-nbase, chap-midi-base
Branch point for: gdamore-uart
Changes since 1.91: +10 -9 lines
Diff to previous 1.91 (colored)

merge FreeBSD timecounters from branch simonb-timecounters
- struct timeval time is gone
  time.tv_sec -> time_second
- struct timeval mono_time is gone
  mono_time.tv_sec -> time_uptime
- access to time via
	{get,}{micro,nano,bin}time()
	get* versions are fast but less precise
- support NTP nanokernel implementation (NTP API 4)
- further reading:
  Timecounter Paper: http://phk.freebsd.dk/pubs/timecounter.pdf
  NTP Nanokernel: http://www.eecis.udel.edu/~mills/ntp/html/kern.html

Revision 1.87.4.3 / (download) - annotate - [select for diffs], Thu Jun 1 22:38:37 2006 UTC (16 years, 8 months ago) by kardel
Branch: simonb-timecounters
CVS Tags: simonb-timcounters-final
Changes since 1.87.4.2: +9 -7 lines
Diff to previous 1.87.4.2 (colored) to branchpoint 1.87 (colored) next main 1.88 (colored)

Sync with head.

Revision 1.87.10.1 / (download) - annotate - [select for diffs], Wed May 24 15:50:44 2006 UTC (16 years, 8 months ago) by tron
Branch: peter-altq
Changes since 1.87: +16 -7 lines
Diff to previous 1.87 (colored) next main 1.88 (colored)

Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.

Revision 1.87.6.1 / (download) - annotate - [select for diffs], Wed May 24 10:58:56 2006 UTC (16 years, 8 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.87: +16 -7 lines
Diff to previous 1.87 (colored)

sync with head.

Revision 1.91 / (download) - annotate - [select for diffs], Sun May 21 05:09:13 2006 UTC (16 years, 8 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pdpolicy-base5, simonb-timecounters-base
Changes since 1.90: +6 -5 lines
Diff to previous 1.90 (colored)

Fixes from David Boggs; in his words:

	/sys/net/if_spppvar.h says:

	"Lower layer drivers that are always ready to communicate
	(like hardware HDLC) can shortcut pp_up from pp_tls,
	and pp_down from pp_tlf."

	When I follow those instructions, I get a kernel stack
	overflow as soon as I open the HDLC device.

	Here is the loop:
	 sppp_ioctl calls sppp_lcp_open
	 sppp_lcp_open calls sppp_open_event
	 sppp_open_event calls sppp_lcp_tls
	 sppp_lcp_tls calls pp_tls
	 pp_tls is the SHORTCUT to sppp_lcp_up
	 sppp_lcp_up calls spp_lcp_open
	 ...and around we go until the stack overflows.

	The fix is to reverse the order of the action (tls)
	and the state change (from INITIAL to STARTING) in
	sppp_open_event.

	There is a similar loop during closing:
	 sppp_ioctl calls sppp_lcp_close
	 sppp_lcp_close calls sppp_close_event
	 spp_close_event calls sppp_lcp_tlf
	 sppp_lcp_tlf calls pp_tlf
	 pp_tlf is the SHORTCUT to sppp_lcp_down
	 sppp_lcp_down calls sppp_lcp_close
	 ...and around we go until the stack overflows.

	The fix is to reverse the order of the action (tlf)
	and the state change (from STARTING to INITIAL) in
	sppp_close_event.

	Separately, while I was discovering this, I noticed
	that pp_tlf was being called unconditionally rather
	than first checking to see if it is NULL.  pp_tlf
	is a callout from sppp to the hdlc device driver.
	Elsewhere in sppp, this is always checked for NULL
	before calling it, and the comments in if_spppvar.h
	imply that filling it in is optional.

	From spppvar.h:
	"These functions need to be filled in by the lower layer
	(hardware) drivers if they request notification from the
	PPP layer whether the link is actually required."
	This clearly says that pp_tlf and pp_tls are optional
	and so sppp must check before calling them.

Revision 1.90 / (download) - annotate - [select for diffs], Sun May 14 21:19:33 2006 UTC (16 years, 8 months ago) by elad
Branch: MAIN
Branch point for: chap-midi
Changes since 1.89: +4 -3 lines
Diff to previous 1.89 (colored)

integrate kauth.

Revision 1.89 / (download) - annotate - [select for diffs], Sun May 14 05:30:31 2006 UTC (16 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.88: +3 -3 lines
Diff to previous 1.88 (colored)

XXX: GCC uninitialized.

Revision 1.87.8.4 / (download) - annotate - [select for diffs], Thu May 11 23:31:08 2006 UTC (16 years, 9 months ago) by elad
Branch: elad-kernelauth
Changes since 1.87.8.3: +9 -2 lines
Diff to previous 1.87.8.3 (colored) to branchpoint 1.87 (colored) next main 1.88 (colored)

sync with head

Revision 1.87.8.3 / (download) - annotate - [select for diffs], Sat May 6 23:31:59 2006 UTC (16 years, 9 months ago) by christos
Branch: elad-kernelauth
Changes since 1.87.8.2: +3 -2 lines
Diff to previous 1.87.8.2 (colored) to branchpoint 1.87 (colored)

- Move kauth_cred_t declaration to <sys/types.h>
- Cleanup struct ucred; forward declarations that are unused.
- Don't include <sys/kauth.h> in any header, but include it in the c files
  that need it.

Approved by core.

Revision 1.87.4.2 / (download) - annotate - [select for diffs], Sat Apr 22 11:40:06 2006 UTC (16 years, 9 months ago) by simonb
Branch: simonb-timecounters
Changes since 1.87.4.1: +9 -2 lines
Diff to previous 1.87.4.1 (colored) to branchpoint 1.87 (colored)

Sync with head.

Revision 1.88 / (download) - annotate - [select for diffs], Thu Apr 20 17:03:35 2006 UTC (16 years, 9 months ago) by christos
Branch: MAIN
CVS Tags: elad-kernelauth-base
Changes since 1.87: +9 -2 lines
Diff to previous 1.87 (colored)

Add an empty attach function. Reported by David Boggs

Revision 1.87.8.2 / (download) - annotate - [select for diffs], Fri Mar 10 15:05:22 2006 UTC (16 years, 11 months ago) by elad
Branch: elad-kernelauth
Changes since 1.87.8.1: +3 -3 lines
Diff to previous 1.87.8.1 (colored) to branchpoint 1.87 (colored)

generic_authorize() -> kauth_authorize_generic().

Revision 1.87.8.1 / (download) - annotate - [select for diffs], Wed Mar 8 01:11:55 2006 UTC (16 years, 11 months ago) by elad
Branch: elad-kernelauth
Changes since 1.87: +3 -3 lines
Diff to previous 1.87 (colored)

Adapt to kernel authorization KPI.

Revision 1.87.4.1 / (download) - annotate - [select for diffs], Sat Feb 4 14:18:52 2006 UTC (17 years ago) by simonb
Branch: simonb-timecounters
Changes since 1.87: +10 -9 lines
Diff to previous 1.87 (colored)

Adapt for timecounters: mostly use get*time(), use bintime's for timeout
calculations and use "time_second" instead of "time.tv_sec".

Revision 1.86.2.1 / (download) - annotate - [select for diffs], Wed Feb 1 14:52:37 2006 UTC (17 years ago) by yamt
Branch: yamt-uio_vmspace
Changes since 1.86: +8 -4 lines
Diff to previous 1.86 (colored) next main 1.87 (colored)

sync with head.

Revision 1.87 / (download) - annotate - [select for diffs], Sat Jan 21 00:15:35 2006 UTC (17 years ago) by rpaulo
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, peter-altq-base
Branch point for: yamt-pdpolicy, simonb-timecounters, rpaulo-netinet-merge-pcb, peter-altq, elad-kernelauth
Changes since 1.86: +8 -4 lines
Diff to previous 1.86 (colored)

Better support of IPv6 scoped addresses.

- most of the kernel code will not care about the actual encoding of
  scope zone IDs and won't touch "s6_addr16[1]" directly.
- similarly, most of the kernel code will not care about link-local
  scoped addresses as a special case.
- scope boundary check will be stricter.  For example, the current
  *BSD code allows a packet with src=::1 and dst=(some global IPv6
  address) to be sent outside of the node, if the application do:
    s = socket(AF_INET6);
    bind(s, "::1");
    sendto(s, some_global_IPv6_addr);
  This is clearly wrong, since ::1 is only meaningful within a single
  node, but the current implementation of the *BSD kernel cannot
  reject this attempt.
- and, while there, don't try to remove the ff02::/32 interface route
  entry in in6_ifdetach() as it's already gone.

This also includes some level of support for the standard source
address selection algorithm defined in RFC3484, which will be
completed on in the future.

From the KAME project via JINMEI Tatuya.
Approved by core@.

Revision 1.86 / (download) - annotate - [select for diffs], Sun Dec 11 12:24:51 2005 UTC (17 years, 2 months ago) by christos
Branch: MAIN
Branch point for: yamt-uio_vmspace
Changes since 1.85: +2 -2 lines
Diff to previous 1.85 (colored)

merge ktrace-lwp.

Revision 1.66.2.10 / (download) - annotate - [select for diffs], Thu Nov 10 14:10:32 2005 UTC (17 years, 3 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.66.2.9: +11 -11 lines
Diff to previous 1.66.2.9 (colored) next main 1.67 (colored)

Sync with HEAD. Here we go again...

Revision 1.85 / (download) - annotate - [select for diffs], Sun May 29 21:22:53 2005 UTC (17 years, 8 months ago) by christos
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, thorpej-vnode-attr-base, thorpej-vnode-attr, ktrace-lwp-base
Branch point for: yamt-lazymbuf
Changes since 1.84: +10 -10 lines
Diff to previous 1.84 (colored)

- sprinkle const
- remove unneeded casts
- use more mem*() instead of b*() funcs.

Revision 1.80.2.1 / (download) - annotate - [select for diffs], Fri Apr 29 11:29:31 2005 UTC (17 years, 9 months ago) by kent
Branch: kent-audio2
Changes since 1.80: +39 -61 lines
Diff to previous 1.80 (colored) next main 1.81 (colored)

sync with -current

Revision 1.84 / (download) - annotate - [select for diffs], Wed Apr 27 07:48:02 2005 UTC (17 years, 9 months ago) by martin
Branch: MAIN
CVS Tags: kent-audio2-base
Changes since 1.83: +3 -3 lines
Diff to previous 1.83 (colored)

Fix typo, from C. Plasschaert in PR kern/30069.

Revision 1.66.2.9 / (download) - annotate - [select for diffs], Fri Apr 1 14:31:34 2005 UTC (17 years, 10 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.66.2.8: +17 -39 lines
Diff to previous 1.66.2.8 (colored)

Sync with HEAD.

Revision 1.83 / (download) - annotate - [select for diffs], Thu Mar 31 15:48:13 2005 UTC (17 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.82: +17 -39 lines
Diff to previous 1.82 (colored)

factor out the interface queueing code into two functions. One used by
the non point-to-point interfaces that has one queue, and one used by
the point to point interfaces that has two queues. No functional changes.
XXX: The ALTQ stuff makes the code ugly.
XXX: More cleanup to come

Revision 1.81.2.1 / (download) - annotate - [select for diffs], Sat Mar 19 08:36:31 2005 UTC (17 years, 10 months ago) by yamt
Branch: yamt-km
Changes since 1.81: +18 -18 lines
Diff to previous 1.81 (colored) next main 1.82 (colored)

sync with head.  xen and whitespace.  xen part is not finished.

Revision 1.66.2.8 / (download) - annotate - [select for diffs], Fri Mar 4 16:52:58 2005 UTC (17 years, 11 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.66.2.7: +18 -18 lines
Diff to previous 1.66.2.7 (colored)

Sync with HEAD.

Hi Perry!

Revision 1.82 / (download) - annotate - [select for diffs], Sat Feb 26 22:45:09 2005 UTC (17 years, 11 months ago) by perry
Branch: MAIN
CVS Tags: yamt-km-base4, yamt-km-base3, netbsd-3-base, netbsd-3-1-RC1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-1-RELEASE
Branch point for: netbsd-3-0, netbsd-3
Changes since 1.81: +18 -18 lines
Diff to previous 1.81 (colored)

nuke trailing whitespace

Revision 1.66.2.7 / (download) - annotate - [select for diffs], Fri Feb 4 11:47:44 2005 UTC (18 years ago) by skrll
Branch: ktrace-lwp
Changes since 1.66.2.6: +7 -7 lines
Diff to previous 1.66.2.6 (colored)

Sync with HEAD.

Revision 1.81 / (download) - annotate - [select for diffs], Mon Jan 24 21:25:09 2005 UTC (18 years ago) by matt
Branch: MAIN
CVS Tags: yamt-km-base2, yamt-km-base
Branch point for: yamt-km
Changes since 1.80: +7 -7 lines
Diff to previous 1.80 (colored)

Add IFNET_FOREACH and IFADDR_FOREACH macros and start using them.

Revision 1.66.2.6 / (download) - annotate - [select for diffs], Mon Jan 17 19:32:38 2005 UTC (18 years ago) by skrll
Branch: ktrace-lwp
Changes since 1.66.2.5: +7 -7 lines
Diff to previous 1.66.2.5 (colored)

Sync with HEAD.

Revision 1.80 / (download) - annotate - [select for diffs], Wed Dec 22 05:11:24 2004 UTC (18 years, 1 month ago) by itojun
Branch: MAIN
CVS Tags: kent-audio1-beforemerge
Branch point for: kent-audio2
Changes since 1.79: +7 -7 lines
Diff to previous 1.79 (colored)

whitespace

Revision 1.66.2.5 / (download) - annotate - [select for diffs], Sat Dec 18 09:32:50 2004 UTC (18 years, 1 month ago) by skrll
Branch: ktrace-lwp
Changes since 1.66.2.4: +29 -5 lines
Diff to previous 1.66.2.4 (colored)

Sync with HEAD.

Revision 1.79 / (download) - annotate - [select for diffs], Mon Dec 6 02:59:23 2004 UTC (18 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: kent-audio1-base, kent-audio1
Changes since 1.78: +29 -5 lines
Diff to previous 1.78 (colored)

Sprinkle #ifdef INET to make a GENERIC kernel compile with INET undefined.

Revision 1.66.2.4 / (download) - annotate - [select for diffs], Fri Sep 24 10:53:43 2004 UTC (18 years, 4 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.66.2.3: +17 -2 lines
Diff to previous 1.66.2.3 (colored)

Sync with HEAD.

Revision 1.66.2.3 / (download) - annotate - [select for diffs], Tue Sep 21 13:36:40 2004 UTC (18 years, 4 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.66.2.2: +2 -2 lines
Diff to previous 1.66.2.2 (colored)

Fix the sync with head I botched.

Revision 1.78 / (download) - annotate - [select for diffs], Sat Sep 18 16:04:41 2004 UTC (18 years, 4 months ago) by yamt
Branch: MAIN
Changes since 1.77: +17 -2 lines
Diff to previous 1.77 (colored)

call PFIL_IFADDR hooks where appropriate.

Revision 1.66.2.2 / (download) - annotate - [select for diffs], Sat Sep 18 14:54:16 2004 UTC (18 years, 4 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.66.2.1: +0 -0 lines
Diff to previous 1.66.2.1 (colored)

Sync with HEAD.

Revision 1.66.2.1 / (download) - annotate - [select for diffs], Tue Aug 3 10:54:17 2004 UTC (18 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.66: +86 -82 lines
Diff to previous 1.66 (colored)

Sync with HEAD

Revision 1.77 / (download) - annotate - [select for diffs], Wed Apr 21 17:45:38 2004 UTC (18 years, 9 months ago) by itojun
Branch: MAIN
Changes since 1.76: +9 -9 lines
Diff to previous 1.76 (colored)

sprintf -> snprintf

Revision 1.75.2.1 / (download) - annotate - [select for diffs], Thu Apr 8 21:16:03 2004 UTC (18 years, 10 months ago) by jdc
Branch: netbsd-2-0
CVS Tags: netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE
Branch point for: netbsd-2-1, netbsd-2
Changes since 1.75: +5 -5 lines
Diff to previous 1.75 (colored)

Pull up revision 1.76 (requested by martin in ticket #98)

Be more paranoid about data a non-root user may query.
Fixes PR kern/25099 by Christian Biere.

Revision 1.76 / (download) - annotate - [select for diffs], Thu Apr 8 09:26:59 2004 UTC (18 years, 10 months ago) by martin
Branch: MAIN
Changes since 1.75: +5 -5 lines
Diff to previous 1.75 (colored)

Be more paranoid about data a non-root user may query.
Fixes PR kern/25099 by Christian Biere.

Revision 1.75 / (download) - annotate - [select for diffs], Fri Dec 26 23:39:23 2003 UTC (19 years, 1 month ago) by martin
Branch: MAIN
CVS Tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Changes since 1.74: +10 -2 lines
Diff to previous 1.74 (colored)

Add a new ioctl SPPPGETSTATUSNCP to query the PPP phase and check wether
any NCP is UP.

Revision 1.74 / (download) - annotate - [select for diffs], Mon Nov 10 08:51:52 2003 UTC (19 years, 3 months ago) by wiz
Branch: MAIN
Changes since 1.73: +3 -3 lines
Diff to previous 1.73 (colored)

Spell address with two d's. Inspired by similar changes in OpenBSD,
originating from Jonathon Gray and forwarded by jmc@openbsd.

Revision 1.73 / (download) - annotate - [select for diffs], Tue Oct 28 20:21:44 2003 UTC (19 years, 3 months ago) by mycroft
Branch: MAIN
Changes since 1.72: +14 -20 lines
Diff to previous 1.72 (colored)

Fix previous differently.

Revision 1.72 / (download) - annotate - [select for diffs], Sun Oct 26 19:09:44 2003 UTC (19 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.71: +6 -8 lines
Diff to previous 1.71 (colored)

Fix uninitialized variable warnings.`

Revision 1.71 / (download) - annotate - [select for diffs], Fri Oct 3 10:29:05 2003 UTC (19 years, 4 months ago) by oki
Branch: MAIN
Changes since 1.70: +3 -3 lines
Diff to previous 1.70 (colored)

Correct debug message, mine is myauth, not hisauth.

Revision 1.70 / (download) - annotate - [select for diffs], Thu Oct 2 01:27:20 2003 UTC (19 years, 4 months ago) by itojun
Branch: MAIN
Changes since 1.69: +9 -9 lines
Diff to previous 1.69 (colored)

minor KNF

Revision 1.69 / (download) - annotate - [select for diffs], Fri Sep 5 23:02:41 2003 UTC (19 years, 5 months ago) by itojun
Branch: MAIN
Changes since 1.68: +11 -11 lines
Diff to previous 1.68 (colored)

u_short -> u_int16_t

Revision 1.68 / (download) - annotate - [select for diffs], Wed Sep 3 20:48:46 2003 UTC (19 years, 5 months ago) by martin
Branch: MAIN
Changes since 1.67: +37 -11 lines
Diff to previous 1.67 (colored)

Rearange dead link detection slightly:
As long as we receive data from the peer, don't worry. When we have not
received anything within the "max_noreceive" period, we start sending LCP
echo requests and count them, until we receive an answer (or some data)
or the "maxalive" count of not answered echo requests is reached.
All this is checked at a global 10 seconds interval for all interfaces.
The "max_noreceive" period and the "maxalive" count are configurable per
interface.

Revision 1.46.4.19 / (download) - annotate - [select for diffs], Thu Jul 10 15:40:45 2003 UTC (19 years, 7 months ago) by tron
Branch: netbsd-1-6
CVS Tags: netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002
Changes since 1.46.4.18: +3 -3 lines
Diff to previous 1.46.4.18 (colored) to branchpoint 1.46 (colored) next main 1.47 (colored)

Pull up revision 1.67 via patch (requested by martin in ticket #1374):
We should use IFQ_DEQUEUE to get packets from the send queue, not IF_DEQUEUE.
Hopefully this will fix ALTQ for ISDN and PPPoE interfaces.
While there remove an unsued function which contained dubious code
(accessing interface queue internals w/o the proper macros).

Revision 1.67 / (download) - annotate - [select for diffs], Wed Jul 9 20:12:53 2003 UTC (19 years, 7 months ago) by martin
Branch: MAIN
Changes since 1.66: +3 -25 lines
Diff to previous 1.66 (colored)

We should use IFQ_DEQUEUE to get packets from the send queue, not IF_DEQUEUE.
Hopefully this will fix ALTQ for ISDN and PPPoE interfaces.

While there remove an unsued function which contained dubious code
(accessing interface queue internals w/o the proper macros).

Revision 1.46.4.18 / (download) - annotate - [select for diffs], Tue Jun 24 08:18:29 2003 UTC (19 years, 7 months ago) by grant
Branch: netbsd-1-6
Changes since 1.46.4.17: +4 -2 lines
Diff to previous 1.46.4.17 (colored) to branchpoint 1.46 (colored)

Pull up revision 1.66 (requested by itojun in ticket #1325):

don't call if_free_sadl() until very end of if_detach() logic.  many of
routing table manipulation code assumes the presense of AF_LINK sockaddr.
should fix PR 21581

Revision 1.66 / (download) - annotate - [select for diffs], Fri May 23 10:06:18 2003 UTC (19 years, 8 months ago) by itojun
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.65: +4 -2 lines
Diff to previous 1.65 (colored)

don't call if_free_sadl() until very end of if_detach() logic.  many of
routing table manipulation code assumes the presense of AF_LINK sockaddr.
should fix PR 21581

Revision 1.65 / (download) - annotate - [select for diffs], Wed May 14 23:16:44 2003 UTC (19 years, 9 months ago) by itojun
Branch: MAIN
Changes since 1.64: +11 -14 lines
Diff to previous 1.64 (colored)

use arc4random

Revision 1.64 / (download) - annotate - [select for diffs], Wed May 14 22:41:40 2003 UTC (19 years, 9 months ago) by itojun
Branch: MAIN
Changes since 1.63: +201 -209 lines
Diff to previous 1.63 (colored)

remove #ifdef __FreeBSD__ (code already diverged enough)

Revision 1.46.4.17 / (download) - annotate - [select for diffs], Fri Feb 7 18:40:19 2003 UTC (20 years ago) by tron
Branch: netbsd-1-6
CVS Tags: netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001
Changes since 1.46.4.16: +2 -3 lines
Diff to previous 1.46.4.16 (colored) to branchpoint 1.46 (colored)

Pull up revision 1.62 (requested by martin in ticket #1152):
Remove a break after a goto.

Revision 1.46.4.16 / (download) - annotate - [select for diffs], Fri Feb 7 18:38:01 2003 UTC (20 years ago) by tron
Branch: netbsd-1-6
Changes since 1.46.4.15: +12 -5 lines
Diff to previous 1.46.4.15 (colored) to branchpoint 1.46 (colored)

Pull up revision 1.61 (requested by martin in ticket #1152):
Restore the system priority level in case of errors.
OK:ed by martin.

Revision 1.46.4.15 / (download) - annotate - [select for diffs], Fri Feb 7 18:35:51 2003 UTC (20 years ago) by tron
Branch: netbsd-1-6
Changes since 1.46.4.14: +21 -8 lines
Diff to previous 1.46.4.14 (colored) to branchpoint 1.46 (colored)

Pull up revision 1.60 (requested by martin in ticket #1152):
license clarification from the author, via openbsd
BSD-style license from Serge Vakulenko <vak@cronyx.ru>

Revision 1.46.4.14 / (download) - annotate - [select for diffs], Fri Feb 7 18:32:29 2003 UTC (20 years ago) by tron
Branch: netbsd-1-6
Changes since 1.46.4.13: +186 -185 lines
Diff to previous 1.46.4.13 (colored) to branchpoint 1.46 (colored)

Pull up revision 1.59 (requested by martin in ticket #1152):
KNF

Revision 1.46.4.13 / (download) - annotate - [select for diffs], Fri Feb 7 18:31:26 2003 UTC (20 years ago) by tron
Branch: netbsd-1-6
Changes since 1.46.4.12: +4 -4 lines
Diff to previous 1.46.4.12 (colored) to branchpoint 1.46 (colored)

Pull up revision 1.58 (requested by martin in ticket #1152):
KNF - return is not a function.

Revision 1.46.4.12 / (download) - annotate - [select for diffs], Fri Feb 7 18:28:51 2003 UTC (20 years ago) by tron
Branch: netbsd-1-6
Changes since 1.46.4.11: +12 -5 lines
Diff to previous 1.46.4.11 (colored) to branchpoint 1.46 (colored)

Pull up revision 1.57 (requested by martin in ticket #1152):
If the peer did not answer LCP echo requests in-time, but we got user
data through within the last LCP keepalive interval, do not count this
as a keepalive failure.
Addresses parts of kern/17723.

Revision 1.46.4.11 / (download) - annotate - [select for diffs], Fri Feb 7 18:25:42 2003 UTC (20 years ago) by tron
Branch: netbsd-1-6
Changes since 1.46.4.10: +16 -16 lines
Diff to previous 1.46.4.10 (colored) to branchpoint 1.46 (colored)

Pull up revision 1.56 (requested by martin in ticket #1152):
Fix async map handling. Many thanks to Joerg Wunsch for the explanation.

Revision 1.46.4.10 / (download) - annotate - [select for diffs], Fri Feb 7 18:19:12 2003 UTC (20 years ago) by tron
Branch: netbsd-1-6
Changes since 1.46.4.9: +7 -7 lines
Diff to previous 1.46.4.9 (colored) to branchpoint 1.46 (colored)

Pull up revision 1.51 (requested by martin in ticket #1152):
Use "mono_time" instead of "time" for timeout calculations.

Revision 1.46.4.9 / (download) - annotate - [select for diffs], Fri Feb 7 18:16:43 2003 UTC (20 years ago) by tron
Branch: netbsd-1-6
Changes since 1.46.4.8: +8 -3 lines
Diff to previous 1.46.4.8 (colored) to branchpoint 1.46 (colored)

Pull up revision 1.50 (requested by martin in ticket #1152):
don't access freed memory.

Revision 1.46.4.8 / (download) - annotate - [select for diffs], Fri Feb 7 18:14:54 2003 UTC (20 years ago) by tron
Branch: netbsd-1-6
Changes since 1.46.4.7: +5 -3 lines
Diff to previous 1.46.4.7 (colored) to branchpoint 1.46 (colored)

Pull up revision 1.49 (requested by martin in ticket #1152):
don't access freed memory.

Revision 1.46.4.7 / (download) - annotate - [select for diffs], Fri Feb 7 18:12:11 2003 UTC (20 years ago) by tron
Branch: netbsd-1-6
Changes since 1.46.4.6: +3 -3 lines
Diff to previous 1.46.4.6 (colored) to branchpoint 1.46 (colored)

Pull up revision 1.47 (requested by martin in ticket #1152):
don't panic on invalid CONF_ACK from remote (in general, issueing panic
on remote input is bad practice)

Revision 1.46.4.6 / (download) - annotate - [select for diffs], Tue Jan 28 18:28:12 2003 UTC (20 years ago) by jmc
Branch: netbsd-1-6
Changes since 1.46.4.5: +26 -2 lines
Diff to previous 1.46.4.5 (colored) to branchpoint 1.46 (colored)

Pullup revisions 1.62-1.63 (requested by tron in ticket #1133)
 Use MRU negotiated with remote system as MTU. Fixes PR#18850.

Revision 1.63 / (download) - annotate - [select for diffs], Tue Jan 28 15:36:38 2003 UTC (20 years ago) by tron
Branch: MAIN
Changes since 1.62: +26 -2 lines
Diff to previous 1.62 (colored)

Use MRU negotiated with remote system as MTU. This fixes PR kern/18850
by Curt Sampson.

Revision 1.62 / (download) - annotate - [select for diffs], Sun Jan 19 23:45:33 2003 UTC (20 years ago) by simonb
Branch: MAIN
Changes since 1.61: +2 -3 lines
Diff to previous 1.61 (colored)

Remove a break after a goto.

Revision 1.46.4.5 / (download) - annotate - [select for diffs], Fri Jan 10 06:49:47 2003 UTC (20 years, 1 month ago) by jmc
Branch: netbsd-1-6
Changes since 1.46.4.4: +22 -17 lines
Diff to previous 1.46.4.4 (colored) to branchpoint 1.46 (colored)

Pull up revisions 1.47-1.48 (requested by tron in ticket #1061)
 correct tcp header chasing in pp_fastq processing. should fix kern/17491.

Revision 1.20.2.17 / (download) - annotate - [select for diffs], Sun Dec 29 20:55:44 2002 UTC (20 years, 1 month ago) by thorpej
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.20.2.16: +12 -5 lines
Diff to previous 1.20.2.16 (colored) next main 1.21 (colored)

Sync with HEAD.

Revision 1.61 / (download) - annotate - [select for diffs], Sat Dec 28 21:09:14 2002 UTC (20 years, 1 month ago) by kristerw
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base, fvdl_fs64_base
Changes since 1.60: +12 -5 lines
Diff to previous 1.60 (colored)

Restore the system priority level in case of errors.

OK:ed by martin.

Revision 1.20.2.16 / (download) - annotate - [select for diffs], Fri Oct 18 02:45:12 2002 UTC (20 years, 3 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.20.2.15: +202 -188 lines
Diff to previous 1.20.2.15 (colored)

Catch up to -current.

Revision 1.23.2.8 / (download) - annotate - [select for diffs], Thu Oct 10 18:43:46 2002 UTC (20 years, 4 months ago) by jdolecek
Branch: kqueue
Changes since 1.23.2.7: +206 -192 lines
Diff to previous 1.23.2.7 (colored) to branchpoint 1.23 (colored) next main 1.24 (colored)

sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work

Revision 1.60 / (download) - annotate - [select for diffs], Fri Sep 27 06:20:30 2002 UTC (20 years, 4 months ago) by itojun
Branch: MAIN
CVS Tags: kqueue-beforemerge, kqueue-base, kqueue-aftermerge, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw
Changes since 1.59: +21 -8 lines
Diff to previous 1.59 (colored)

license clarification from the author, via openbsd
>BSD-style license from Serge Vakulenko <vak@cronyx.ru>

Revision 1.59 / (download) - annotate - [select for diffs], Wed Sep 25 07:24:06 2002 UTC (20 years, 4 months ago) by itojun
Branch: MAIN
Changes since 1.58: +186 -185 lines
Diff to previous 1.58 (colored)

KNF

Revision 1.20.2.15 / (download) - annotate - [select for diffs], Tue Sep 17 21:22:53 2002 UTC (20 years, 4 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.20.2.14: +12 -5 lines
Diff to previous 1.20.2.14 (colored)

Catch up to -current.

Revision 1.58 / (download) - annotate - [select for diffs], Wed Sep 11 05:36:27 2002 UTC (20 years, 5 months ago) by itojun
Branch: MAIN
Changes since 1.57: +4 -4 lines
Diff to previous 1.57 (colored)

KNF - return is not a function.

Revision 1.23.2.7 / (download) - annotate - [select for diffs], Fri Sep 6 08:48:57 2002 UTC (20 years, 5 months ago) by jdolecek
Branch: kqueue
Changes since 1.23.2.6: +93 -61 lines
Diff to previous 1.23.2.6 (colored) to branchpoint 1.23 (colored)

sync kqueue branch with HEAD

Revision 1.57 / (download) - annotate - [select for diffs], Sun Sep 1 18:54:12 2002 UTC (20 years, 5 months ago) by martin
Branch: MAIN
Changes since 1.56: +12 -5 lines
Diff to previous 1.56 (colored)

If the peer did not answer LCP echo requests in-time, but we got user
data through within the last LCP keepalive interval, do not count this
as a keepalive failure.

Addresses parts of kern/17723.

Revision 1.46.2.3 / (download) - annotate - [select for diffs], Thu Aug 29 00:56:42 2002 UTC (20 years, 5 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.46.2.2: +51 -38 lines
Diff to previous 1.46.2.2 (colored) to branchpoint 1.46 (colored) next main 1.47 (colored)

catch up with -current.

Revision 1.46.4.4 / (download) - annotate - [select for diffs], Sat Aug 17 05:49:31 2002 UTC (20 years, 5 months ago) by lukem
Branch: netbsd-1-6
CVS Tags: netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2
Changes since 1.46.4.3: +18 -10 lines
Diff to previous 1.46.4.3 (colored) to branchpoint 1.46 (colored)

Pull up revision 1.55 (requested by groo in ticket #669):
Patches from Frank Kardel:
- length was one off in names and secrets.
- add win 98 kludge but we keep it disabled for now.
- setup the authorization bit early so that we don't end up doing ppp
  negotiations without authorization.

Revision 1.46.4.3 / (download) - annotate - [select for diffs], Sat Aug 17 05:35:48 2002 UTC (20 years, 5 months ago) by lukem
Branch: netbsd-1-6
Changes since 1.46.4.2: +20 -17 lines
Diff to previous 1.46.4.2 (colored) to branchpoint 1.46 (colored)

Pull up revision 1.54 (requested by groo in ticket #669):
Don't throw away the name and the secret lengths. This eliminates all the
strlen() calls, and there was a whole bunch of them.

Revision 1.46.4.2 / (download) - annotate - [select for diffs], Sat Aug 17 05:34:02 2002 UTC (20 years, 5 months ago) by lukem
Branch: netbsd-1-6
Changes since 1.46.4.1: +7 -13 lines
Diff to previous 1.46.4.1 (colored) to branchpoint 1.46 (colored)

Pull up revision 1.53 (requested by groo in ticket #669):
avoid modifying the buffers, by checking for matching lengths first. From
Frank Kardel.

Revision 1.46.4.1 / (download) - annotate - [select for diffs], Sat Aug 17 05:22:08 2002 UTC (20 years, 5 months ago) by lukem
Branch: netbsd-1-6
Changes since 1.46: +18 -10 lines
Diff to previous 1.46 (colored)

Pull up revision 1.52 (requested by groo in ticket #669):
Use strcmp() instead of memcmp() because if we get passed a 0 length name
and secret, we'll authenticate successfully! While there, rename passwd to
secret so that code looks nicer.

Revision 1.20.2.14 / (download) - annotate - [select for diffs], Thu Aug 1 02:46:40 2002 UTC (20 years, 6 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.20.2.13: +83 -58 lines
Diff to previous 1.20.2.13 (colored)

Catch up to -current.

Revision 1.56 / (download) - annotate - [select for diffs], Tue Jul 30 13:16:35 2002 UTC (20 years, 6 months ago) by christos
Branch: MAIN
CVS Tags: gehenna-devsw-base
Changes since 1.55: +16 -16 lines
Diff to previous 1.55 (colored)

Fix async map handling. Many thanks to Joerg Wunsch for the explanation.

Revision 1.55 / (download) - annotate - [select for diffs], Sun Jul 28 22:16:47 2002 UTC (20 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.54: +18 -10 lines
Diff to previous 1.54 (colored)

Patches from Frank Kardel:
- length was one off in names and secrets.
- add win 98 kludge but we keep it disabled for now.
- setup the authorization bit early so that we don't end up doing ppp
  negotiations without authorization.

Revision 1.54 / (download) - annotate - [select for diffs], Sun Jul 28 19:54:47 2002 UTC (20 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.53: +20 -17 lines
Diff to previous 1.53 (colored)

Don't throw away the name and the secret lengths. This eliminates all the
strlen() calls, and there was a whole bunch of them.

Revision 1.53 / (download) - annotate - [select for diffs], Sun Jul 28 15:12:29 2002 UTC (20 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.52: +7 -13 lines
Diff to previous 1.52 (colored)

avoid modifying the buffers, by checking for matching lengths first. From
Frank Kardel.

Revision 1.52 / (download) - annotate - [select for diffs], Sat Jul 27 19:09:07 2002 UTC (20 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.51: +18 -10 lines
Diff to previous 1.51 (colored)

Use strcmp() instead of memcmp() because if we get passed a 0 length name
and secret, we'll authenticate successfully! While there, rename passwd to
secret so that code looks nicer.

Revision 1.46.2.2 / (download) - annotate - [select for diffs], Mon Jul 15 10:36:50 2002 UTC (20 years, 6 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.46.2.1: +34 -22 lines
Diff to previous 1.46.2.1 (colored) to branchpoint 1.46 (colored)

catch up with -current.

Revision 1.51 / (download) - annotate - [select for diffs], Sat Jul 13 11:08:03 2002 UTC (20 years, 7 months ago) by martin
Branch: MAIN
Changes since 1.50: +7 -7 lines
Diff to previous 1.50 (colored)

Use "mono_time" instead of "time" for timeout calculations.

Revision 1.20.2.13 / (download) - annotate - [select for diffs], Fri Jul 12 01:40:30 2002 UTC (20 years, 7 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.20.2.12: +2 -3 lines
Diff to previous 1.20.2.12 (colored)

No longer need to pull in lwp.h; proc.h pulls it in for us.

Revision 1.50 / (download) - annotate - [select for diffs], Thu Jul 11 21:37:51 2002 UTC (20 years, 7 months ago) by yamt
Branch: MAIN
Changes since 1.49: +8 -3 lines
Diff to previous 1.49 (colored)

don't access freed memory.

Revision 1.49 / (download) - annotate - [select for diffs], Thu Jul 11 21:21:53 2002 UTC (20 years, 7 months ago) by yamt
Branch: MAIN
Changes since 1.48: +5 -3 lines
Diff to previous 1.48 (colored)

don't access freed memory.

Revision 1.48 / (download) - annotate - [select for diffs], Sat Jul 6 18:33:45 2002 UTC (20 years, 7 months ago) by itojun
Branch: MAIN
Changes since 1.47: +22 -17 lines
Diff to previous 1.47 (colored)

correct tcp header chasing in pp_fastq processing. should fix kern/17491.

Revision 1.20.2.12 / (download) - annotate - [select for diffs], Mon Jun 24 22:11:36 2002 UTC (20 years, 7 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.20.2.11: +3 -3 lines
Diff to previous 1.20.2.11 (colored)

Curproc->curlwp renaming.

Change uses of "curproc->l_proc" back to "curproc", which is more like the
original use. Bare uses of "curproc" are now "curlwp".

"curproc" is now #defined in proc.h as ((curlwp) ? (curlwp)->l_proc) : NULL)
so that it is always safe to reference curproc (*de*referencing curproc
is another story, but that's always been true).

Revision 1.23.2.6 / (download) - annotate - [select for diffs], Sun Jun 23 17:50:28 2002 UTC (20 years, 7 months ago) by jdolecek
Branch: kqueue
Changes since 1.23.2.5: +14 -12 lines
Diff to previous 1.23.2.5 (colored) to branchpoint 1.23 (colored)

catch up with -current on kqueue branch

Revision 1.20.2.11 / (download) - annotate - [select for diffs], Thu Jun 20 03:48:16 2002 UTC (20 years, 7 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.20.2.10: +14 -12 lines
Diff to previous 1.20.2.10 (colored)

Catch up to -current.

Revision 1.46.2.1 / (download) - annotate - [select for diffs], Thu May 30 13:52:25 2002 UTC (20 years, 8 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.46: +3 -3 lines
Diff to previous 1.46 (colored)

Catch up with -current.

Revision 1.47 / (download) - annotate - [select for diffs], Wed May 29 01:38:46 2002 UTC (20 years, 8 months ago) by itojun
Branch: MAIN
Changes since 1.46: +3 -3 lines
Diff to previous 1.46 (colored)

don't panic on invalid CONF_ACK from remote (in general, issueing panic
on remote input is bad practice)

Revision 1.46 / (download) - annotate - [select for diffs], Mon Apr 29 16:29:29 2002 UTC (20 years, 9 months ago) by martin
Branch: MAIN
CVS Tags: netbsd-1-6-base, netbsd-1-6-RC1
Branch point for: netbsd-1-6, gehenna-devsw
Changes since 1.45: +13 -11 lines
Diff to previous 1.45 (colored)

"if (debug)" some log messages not signaling real errors but happening
in normal operation.

Revision 1.20.2.10 / (download) - annotate - [select for diffs], Mon Apr 1 07:48:23 2002 UTC (20 years, 10 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.20.2.9: +57 -8 lines
Diff to previous 1.20.2.9 (colored)

Catch up to -current.
(CVS: It's not just a program. It's an adventure!)

Revision 1.23.2.5 / (download) - annotate - [select for diffs], Sat Mar 16 16:02:07 2002 UTC (20 years, 10 months ago) by jdolecek
Branch: kqueue
Changes since 1.23.2.4: +59 -10 lines
Diff to previous 1.23.2.4 (colored) to branchpoint 1.23 (colored)

Catch up with -current.

Revision 1.45 / (download) - annotate - [select for diffs], Sat Mar 2 16:23:42 2002 UTC (20 years, 11 months ago) by martin
Branch: MAIN
CVS Tags: newlock-base, newlock, eeh-devprop-base, eeh-devprop
Changes since 1.44: +57 -8 lines
Diff to previous 1.44 (colored)

Add support to query the peer for DNS addreses when negotiating IPCP.
Add ioctls to retrieve the results.

While here remove a malloc()/free() of an unused buffer.

Revision 1.20.2.9 / (download) - annotate - [select for diffs], Thu Feb 28 04:15:02 2002 UTC (20 years, 11 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.20.2.8: +118 -71 lines
Diff to previous 1.20.2.8 (colored)

Catch up to -current.

Revision 1.23.2.4 / (download) - annotate - [select for diffs], Mon Feb 11 20:10:30 2002 UTC (21 years ago) by jdolecek
Branch: kqueue
Changes since 1.23.2.3: +116 -69 lines
Diff to previous 1.23.2.3 (colored) to branchpoint 1.23 (colored)

Sync w/ -current.

Revision 1.44 / (download) - annotate - [select for diffs], Sun Feb 10 15:17:21 2002 UTC (21 years ago) by martin
Branch: MAIN
CVS Tags: ifpoll-base
Changes since 1.43: +4 -4 lines
Diff to previous 1.43 (colored)

Use IF_IS_EMPTY and IFQ_IS_EMPTY instead of accessing queue members
directly. Noticed by Thomas Klausner.

Revision 1.20.2.8 / (download) - annotate - [select for diffs], Fri Feb 1 05:15:52 2002 UTC (21 years ago) by gmcgarry
Branch: nathanw_sa
Changes since 1.20.2.7: +4 -3 lines
Diff to previous 1.20.2.7 (colored)

lwp'ify

Revision 1.43 / (download) - annotate - [select for diffs], Mon Jan 21 11:37:29 2002 UTC (21 years ago) by martin
Branch: MAIN
Changes since 1.42: +4 -4 lines
Diff to previous 1.42 (colored)

Fix copy&pasto: truncate strings copied in at *their* right length, not
some other strings length.

Found by Arne Helme.

Revision 1.42 / (download) - annotate - [select for diffs], Fri Jan 18 22:39:12 2002 UTC (21 years ago) by jdolecek
Branch: MAIN
Changes since 1.41: +78 -67 lines
Diff to previous 1.41 (colored)

couple cosmetic style fixes, and drop ^L's

Revision 1.41 / (download) - annotate - [select for diffs], Tue Jan 15 12:28:08 2002 UTC (21 years ago) by martin
Branch: MAIN
Changes since 1.40: +54 -22 lines
Diff to previous 1.40 (colored)

Make fields in ioctl parameters that are not allowed to be negative u_ints.
Better range & sanity checking for ioctl arguments (thanks, Jaromir!)

Revision 1.40 / (download) - annotate - [select for diffs], Mon Jan 14 07:39:14 2002 UTC (21 years ago) by martin
Branch: MAIN
Changes since 1.39: +7 -3 lines
Diff to previous 1.39 (colored)

Initialize the activity timestamp when opening a connection. Only idle-
timeout connection that made it to phase NETWORK yet. (For drivers using
the internal timeout mechanism; isdnd, that does the timeout handling for
ISDN drivers, still needs to be fixed.)

Thanks to Wolfgang Solfrank for finding this.

Revision 1.20.2.7 / (download) - annotate - [select for diffs], Fri Jan 11 23:39:44 2002 UTC (21 years, 1 month ago) by nathanw
Branch: nathanw_sa
Changes since 1.20.2.6: +300 -173 lines
Diff to previous 1.20.2.6 (colored)

More catchup.

Revision 1.23.2.3 / (download) - annotate - [select for diffs], Thu Jan 10 20:02:11 2002 UTC (21 years, 1 month ago) by thorpej
Branch: kqueue
Changes since 1.23.2.2: +518 -569 lines
Diff to previous 1.23.2.2 (colored) to branchpoint 1.23 (colored)

Sync kqueue branch with -current.

Revision 1.20.2.6 / (download) - annotate - [select for diffs], Tue Jan 8 00:33:53 2002 UTC (21 years, 1 month ago) by nathanw
Branch: nathanw_sa
Changes since 1.20.2.5: +214 -129 lines
Diff to previous 1.20.2.5 (colored)

Catch up to -current.

Revision 1.39 / (download) - annotate - [select for diffs], Mon Jan 7 10:49:02 2002 UTC (21 years, 1 month ago) by martin
Branch: MAIN
Changes since 1.38: +44 -3 lines
Diff to previous 1.38 (colored)

Implement a retry counter for failed authorizations and limit it to
a configurable maximum (default: 5).

Some ISPs shut down accounts (at least temporarily) after to many bad
retries. This hit me recently due to a stupid pilot error and the fast
retry rate.

Revision 1.38 / (download) - annotate - [select for diffs], Sun Jan 6 20:14:29 2002 UTC (21 years, 1 month ago) by martin
Branch: MAIN
Changes since 1.37: +37 -2 lines
Diff to previous 1.37 (colored)

Implement an activity timestamp, recording the last time payload data
passed through.

Implement optional idle timeout.

Revision 1.37 / (download) - annotate - [select for diffs], Sat Jan 5 19:26:44 2002 UTC (21 years, 1 month ago) by thorpej
Branch: MAIN
Changes since 1.36: +4 -4 lines
Diff to previous 1.36 (colored)

Fix LP64 printf format problem.

Revision 1.36 / (download) - annotate - [select for diffs], Fri Jan 4 12:21:25 2002 UTC (21 years, 1 month ago) by martin
Branch: MAIN
Changes since 1.35: +222 -171 lines
Diff to previous 1.35 (colored)

Move net/if_sppp.h to net/if_spppvar.h, create a new net/if_sppp.h
containing the userland visible thinks (i.e. ioctl definitions).

Remove all (both) old ioctls, as they had a brain dead API and made keeping
binary compatibility more or less impossible.

Replace by several new ioctls. While there, remove any arbitrary limits
(resulting from the old, broken ioctls) and allow any length of names
and passwords.

Revision 1.35 / (download) - annotate - [select for diffs], Sun Dec 16 23:55:28 2001 UTC (21 years, 1 month ago) by martin
Branch: MAIN
Changes since 1.34: +2 -3 lines
Diff to previous 1.34 (colored)

Remove yet another spurious (debug?) output.

Revision 1.34 / (download) - annotate - [select for diffs], Sun Dec 16 00:55:40 2001 UTC (21 years, 1 month ago) by martin
Branch: MAIN
Changes since 1.33: +2 -4 lines
Diff to previous 1.33 (colored)

Remove some spurious (debug?) output.

Revision 1.33 / (download) - annotate - [select for diffs], Sat Dec 15 20:40:37 2001 UTC (21 years, 1 month ago) by martin
Branch: MAIN
Changes since 1.32: +16 -7 lines
Diff to previous 1.32 (colored)

Make reconnects after LCP keepalive detected an error actually work.

Revision 1.32 / (download) - annotate - [select for diffs], Mon Dec 10 00:22:21 2001 UTC (21 years, 2 months ago) by martin
Branch: MAIN
Changes since 1.31: +6 -2 lines
Diff to previous 1.31 (colored)

We explicitly close LCP when going to state CLOSED, so we better open
it again when going from INITIAL to STARTING. This has been done for
passive or auto-conecting interfaces always, but not for permanent
ones.

This fixes session reestablishement for PPPoE interfaces without LINK1 set,
and probably also closes PR kern/11161.

Thanks to Jared D. McNeill and Ross Harvey for sugesting debug methology.

Revision 1.31 / (download) - annotate - [select for diffs], Sat Dec 8 19:46:39 2001 UTC (21 years, 2 months ago) by martin
Branch: MAIN
Changes since 1.30: +143 -73 lines
Diff to previous 1.30 (colored)

Change the way IPCP negotiation is handled.

Collect both local and remote address and set them to the interface in
one step (the peer adress was not set at all before).

This causes the peer address now to show up on the interface and all
messages to the routing socket to be send with correct data. The latter
has been the last missing piece to complete PPPoE support.

Revision 1.30 / (download) - annotate - [select for diffs], Tue Dec 4 21:32:15 2001 UTC (21 years, 2 months ago) by ross
Branch: MAIN
Changes since 1.29: +57 -52 lines
Diff to previous 1.29 (colored)

code cleanup for portability

Revision 1.20.2.5 / (download) - annotate - [select for diffs], Wed Nov 14 19:17:25 2001 UTC (21 years, 2 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.20.2.4: +12 -275 lines
Diff to previous 1.20.2.4 (colored)

Catch up to -current.

Revision 1.29 / (download) - annotate - [select for diffs], Mon Nov 12 23:49:43 2001 UTC (21 years, 3 months ago) by lukem
Branch: MAIN
Changes since 1.28: +4 -1 lines
Diff to previous 1.28 (colored)

add RCSIDs

Revision 1.26.4.1 / (download) - annotate - [select for diffs], Mon Nov 12 21:19:18 2001 UTC (21 years, 3 months ago) by thorpej
Branch: thorpej-mips-cache
Changes since 1.26: +9 -275 lines
Diff to previous 1.26 (colored) next main 1.27 (colored)

Sync the thorpej-mips-cache branch with -current.

Revision 1.28 / (download) - annotate - [select for diffs], Mon Nov 5 18:02:15 2001 UTC (21 years, 3 months ago) by matt
Branch: MAIN
CVS Tags: thorpej-mips-cache-base
Changes since 1.27: +9 -13 lines
Diff to previous 1.27 (colored)

Switch to using queue access macros instead of refering to the member
fields explicitly.

Revision 1.27 / (download) - annotate - [select for diffs], Mon Oct 29 19:15:48 2001 UTC (21 years, 3 months ago) by martin
Branch: MAIN
Changes since 1.26: +1 -263 lines
Diff to previous 1.26 (colored)

In preparation for further changes: remove big parts of the ifdef mess
for OSes we no longer share this file with.

Revision 1.20.2.4 / (download) - annotate - [select for diffs], Fri Sep 21 22:36:45 2001 UTC (21 years, 4 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.20.2.3: +7 -7 lines
Diff to previous 1.20.2.3 (colored)

Catch up to -current.

Revision 1.23.2.2 / (download) - annotate - [select for diffs], Sat Aug 25 06:16:58 2001 UTC (21 years, 5 months ago) by thorpej
Branch: kqueue
Changes since 1.23.2.1: +7 -7 lines
Diff to previous 1.23.2.1 (colored) to branchpoint 1.23 (colored)

Merge Aug 24 -current into the kqueue branch.

Revision 1.20.2.3 / (download) - annotate - [select for diffs], Fri Aug 24 00:12:14 2001 UTC (21 years, 5 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.20.2.2: +20 -23 lines
Diff to previous 1.20.2.2 (colored)

Catch up with -current.

Revision 1.26 / (download) - annotate - [select for diffs], Thu Aug 23 00:56:03 2001 UTC (21 years, 5 months ago) by itojun
Branch: MAIN
CVS Tags: thorpej-devvp-base3, thorpej-devvp-base2, thorpej-devvp-base, thorpej-devvp, pre-chs-ubcperf, post-chs-ubcperf
Branch point for: thorpej-mips-cache
Changes since 1.25: +7 -7 lines
Diff to previous 1.25 (colored)

IFQ_PURGE cannot be used against ifqueue.  use IF_PURGE.

Revision 1.23.2.1 / (download) - annotate - [select for diffs], Fri Aug 3 04:13:51 2001 UTC (21 years, 6 months ago) by lukem
Branch: kqueue
Changes since 1.23: +20 -23 lines
Diff to previous 1.23 (colored)

update to -current

Revision 1.10.4.2 / (download) - annotate - [select for diffs], Sun Jul 29 19:51:36 2001 UTC (21 years, 6 months ago) by he
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-PATCH003, netbsd-1-5-PATCH002
Changes since 1.10.4.1: +6 -9 lines
Diff to previous 1.10.4.1 (colored) to branchpoint 1.10 (colored) next main 1.11 (colored)

Pull up revision 1.24 (requested by martin):
  Fix bug causing NCP bit mask to get out of sync.  Fixes PR#11161.

Revision 1.25 / (download) - annotate - [select for diffs], Wed Jul 18 16:43:09 2001 UTC (21 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.24: +15 -15 lines
Diff to previous 1.24 (colored)

bzero -> memset

Revision 1.24 / (download) - annotate - [select for diffs], Tue Jul 17 19:12:02 2001 UTC (21 years, 6 months ago) by martin
Branch: MAIN
Changes since 1.23: +6 -9 lines
Diff to previous 1.23 (colored)

Fix a slight bug introduced with revision 1.9 (IPv6 integration) where
the bit mask of open NCPs got out of sync.
Defer the (potential) closing of LCP after a NCP went down until after
the state machines got updated.

This fixes PR kern/11161.

Revision 1.20.2.2 / (download) - annotate - [select for diffs], Thu Jun 21 20:08:13 2001 UTC (21 years, 7 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.20.2.1: +232 -187 lines
Diff to previous 1.20.2.1 (colored)

Catch up to -current.

Revision 1.5.2.5 / (download) - annotate - [select for diffs], Sat Apr 21 17:46:40 2001 UTC (21 years, 9 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.5.2.4: +232 -187 lines
Diff to previous 1.5.2.4 (colored) to branchpoint 1.5 (colored) next main 1.6 (colored)

Sync with HEAD

Revision 1.23 / (download) - annotate - [select for diffs], Fri Apr 13 23:30:15 2001 UTC (21 years, 10 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base
Branch point for: kqueue
Changes since 1.22: +18 -18 lines
Diff to previous 1.22 (colored)

Remove the use of splimp() from the NetBSD kernel.  splnet()
and only splnet() is allowed for the protection of data structures
used by network devices.

Revision 1.22 / (download) - annotate - [select for diffs], Mon Apr 9 19:33:01 2001 UTC (21 years, 10 months ago) by martin
Branch: MAIN
Changes since 1.21: +215 -170 lines
Diff to previous 1.21 (colored)

Add another option for encapsulation: PP_NOFRAMING.
In this mode, the PPP packets start with the protocol identifier and don't
have any explicit framing (which may be added by the lower level driver).

Make input/output statistics a little bit more correct by adding a hardware
driver adjustable framing length for each packet (instead of the constant
value "3" used before).

While there, bump authentication name length from 32 to 48 (I have a
connection where I need more than 32). XXX - this should not be artificialy
limited at all.

Revision 1.20.2.1 / (download) - annotate - [select for diffs], Mon Apr 9 01:58:13 2001 UTC (21 years, 10 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.20: +1 -5 lines
Diff to previous 1.20 (colored)

Catch up with -current.

Revision 1.5.2.4 / (download) - annotate - [select for diffs], Tue Mar 27 15:32:27 2001 UTC (21 years, 10 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.5.2.3: +0 -4 lines
Diff to previous 1.5.2.3 (colored) to branchpoint 1.5 (colored)

Sync with HEAD.

Revision 1.21 / (download) - annotate - [select for diffs], Sun Mar 25 19:39:21 2001 UTC (21 years, 10 months ago) by martin
Branch: MAIN
Changes since 1.20: +1 -5 lines
Diff to previous 1.20 (colored)

Make the 'cmd' argument to ioctl an unsigned long, as it is everywhere
else.

Revision 1.5.2.3 / (download) - annotate - [select for diffs], Thu Jan 18 09:23:52 2001 UTC (22 years ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.5.2.2: +16 -5 lines
Diff to previous 1.5.2.2 (colored) to branchpoint 1.5 (colored)

Sync with head (for UBC+NFS fixes, mostly).

Revision 1.20 / (download) - annotate - [select for diffs], Wed Jan 17 00:30:52 2001 UTC (22 years ago) by thorpej
Branch: MAIN
Branch point for: nathanw_sa
Changes since 1.19: +5 -1 lines
Diff to previous 1.19 (colored)

Fix a rather annoying problem where the sockaddr_dl which holds
the link level name for the interface (ifp->if_sadl) is allocated
before ifp->if_addrlen is initialized, which could lead to allocating
too little space for the link level address.

Do this by splitting allocation of the link level name out of
if_attach() and into if_alloc_sadl(), which is normally called
by functions like ether_ifattach().  Network interfaces which
don't have a link-specific attach routine must call if_alloc_sadl()
themselves (example: gif).

Link level names are freed by if_free_sadl(), which can be called
from e.g. ether_ifdetach().  Drivers never need call if_free_sadl()
themselves as if_detach() will do it if it is not already done.

While here, add the ability to pass an AF_LINK address to
SIOCSIFADDR in ether_ioctl() (this is what caused me to notice
the problem that the above fixes).

Revision 1.19 / (download) - annotate - [select for diffs], Tue Jan 16 15:28:27 2001 UTC (22 years ago) by itojun
Branch: MAIN
Changes since 1.18: +8 -2 lines
Diff to previous 1.18 (colored)

run IPCP only if we have IPv4 in kernel

Revision 1.18 / (download) - annotate - [select for diffs], Mon Jan 15 13:40:35 2001 UTC (22 years ago) by martin
Branch: MAIN
Changes since 1.17: +4 -3 lines
Diff to previous 1.17 (colored)

Don't peek at part of a structure via fuword. Does not work well on
64bit architectures. XXX - have to check other changes in the I4B
distribution, this had been fixed there a long time ago.

Revision 1.17 / (download) - annotate - [select for diffs], Sun Jan 7 21:47:28 2001 UTC (22 years, 1 month ago) by martin
Branch: MAIN
Changes since 1.16: +3 -3 lines
Diff to previous 1.16 (colored)

64bit police.
Rumors say there are archs without ISA busses, so avoid including
(uneccesarily) isa bus headers in MI files.
XXX this is the minimal solution, layer interface calls will have
XXX to be revisited later

Revision 1.5.2.2 / (download) - annotate - [select for diffs], Fri Jan 5 17:36:51 2001 UTC (22 years, 1 month ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.5.2.1: +36 -37 lines
Diff to previous 1.5.2.1 (colored) to branchpoint 1.5 (colored)

Sync with HEAD

Revision 1.16 / (download) - annotate - [select for diffs], Mon Dec 18 20:50:36 2000 UTC (22 years, 1 month ago) by thorpej
Branch: MAIN
Changes since 1.15: +8 -27 lines
Diff to previous 1.15 (colored)

Use IFQ_PURGE().

Revision 1.15 / (download) - annotate - [select for diffs], Wed Dec 13 22:07:51 2000 UTC (22 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.14: +29 -11 lines
Diff to previous 1.14 (colored)

Add ALTQ glue.

Revision 1.5.2.1 / (download) - annotate - [select for diffs], Mon Nov 20 18:10:05 2000 UTC (22 years, 2 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.5: +1123 -236 lines
Diff to previous 1.5 (colored)

Update thorpej_scsipi to -current as of a month ago

Revision 1.10.4.1 / (download) - annotate - [select for diffs], Tue Oct 17 01:06:48 2000 UTC (22 years, 3 months ago) by tv
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-RELEASE, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA
Changes since 1.10: +5 -5 lines
Diff to previous 1.10 (colored)

Pullup 1.13 [itojun]:
fix operator precedence (& and &&).  do not transmit too much message
from LCP layer to NCP layer.  PR 11161.

Revision 1.14 / (download) - annotate - [select for diffs], Tue Oct 10 11:43:51 2000 UTC (22 years, 4 months ago) by itojun
Branch: MAIN
Changes since 1.13: +2 -2 lines
Diff to previous 1.13 (colored)

fix comment (s/IPv6/IP/)

Revision 1.13 / (download) - annotate - [select for diffs], Sun Oct 8 02:37:42 2000 UTC (22 years, 4 months ago) by itojun
Branch: MAIN
Changes since 1.12: +5 -5 lines
Diff to previous 1.12 (colored)

fix operator precedence (& and &&).  do not transmit too much message
from LCP layer to NCP layer.  PR 11161.

Revision 1.12 / (download) - annotate - [select for diffs], Mon Oct 2 03:53:47 2000 UTC (22 years, 4 months ago) by itojun
Branch: MAIN
Changes since 1.11: +5 -5 lines
Diff to previous 1.11 (colored)

fix compilation without INET

Revision 1.11 / (download) - annotate - [select for diffs], Sun Jul 2 17:38:09 2000 UTC (22 years, 7 months ago) by sommerfeld
Branch: MAIN
Changes since 1.10: +2 -14 lines
Diff to previous 1.10 (colored)

Merge if_spppsubr.c PPP protocol declarations list with the one found
in ppp_defs.h, and have if_spppsubr.c include ppp_defs.h rather than
duplicate its definitions.

[This is a stopgap measure to clean up build lossage.]

Revision 1.10 / (download) - annotate - [select for diffs], Tue May 16 05:45:27 2000 UTC (22 years, 8 months ago) by itojun
Branch: MAIN
CVS Tags: netbsd-1-5-base, netbsd-1-5-ALPHA2, minoura-xpg4dl-base, minoura-xpg4dl
Branch point for: netbsd-1-5
Changes since 1.9: +10 -2 lines
Diff to previous 1.9 (colored)

propose better IPv6 ifid alternative to the peer, when ifid collides
during IPv6CP negotiation.  it is very rare to see collision.

Revision 1.9 / (download) - annotate - [select for diffs], Tue May 2 12:43:16 2000 UTC (22 years, 9 months ago) by itojun
Branch: MAIN
Changes since 1.8: +857 -76 lines
Diff to previous 1.8 (colored)

IPv6CP support.  if IPv6 link-local address is configured to the interface,
the interface tries to negotiate ifid with the other end by using IPv6CP.

other changes:
- do not share ppp sequence number across protocols.
- if LCP proto-rej is received, drop the protocol mentioned by the message.
  this is to be friendly with non-IPv6 peer (if the peer complains due to
  lack of IPv6CP, drop IPv6CP).  this basically implements "RXJ+" state
  transition in the RFC.
- cleanup debugging message.  always print blank just before message.

CAVEAT:
- if the peer uses the same MAC address as our side (pretty unlikely)
  the code may go into req-rej loop.
- even though we negotiate ifid, we don't configure destination address
  onto the interface.  it is not really necessary to do so (IMHO).
- I've tested this code on a NetBSD 1.4.2 node, which was with fair amount
  of modifications.  not sure if the committed code does it right... (please
  test and send reports)

Revision 1.8 / (download) - annotate - [select for diffs], Wed Apr 12 10:51:15 2000 UTC (22 years, 10 months ago) by itojun
Branch: MAIN
Changes since 1.7: +23 -2 lines
Diff to previous 1.7 (colored)

add more IPv6 cases.  not tested.
TODO: IPv6CP support.  currently IPv6 packet will be generated right
after link up (spec violation)

Revision 1.7 / (download) - annotate - [select for diffs], Thu Mar 23 07:03:25 2000 UTC (22 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.6: +93 -4 lines
Diff to previous 1.6 (colored)

New callout mechanism with two major improvements over the old
timeout()/untimeout() API:
- Clients supply callout handle storage, thus eliminating problems of
  resource allocation.
- Insertion and removal of callouts is constant time, important as
  this facility is used quite a lot in the kernel.

The old timeout()/untimeout() API has been removed from the kernel.

Revision 1.5.8.1 / (download) - annotate - [select for diffs], Mon Dec 27 18:36:10 1999 UTC (23 years, 1 month ago) by wrstuden
Branch: wrstuden-devbsize
Changes since 1.5: +4 -4 lines
Diff to previous 1.5 (colored) next main 1.6 (colored)

Pull up to last week's -current.

Revision 1.6 / (download) - annotate - [select for diffs], Fri Nov 19 20:41:19 1999 UTC (23 years, 2 months ago) by thorpej
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, chs-ubc2-newbase
Changes since 1.5: +4 -4 lines
Diff to previous 1.5 (colored)

Add the `packed' attribute to structures which describe wire protocol
data formats.

Revision 1.2.2.1.2.2 / (download) - annotate - [select for diffs], Mon Aug 2 22:32:29 1999 UTC (23 years, 6 months ago) by thorpej
Branch: chs-ubc2
Changes since 1.2.2.1.2.1: +28 -1 lines
Diff to previous 1.2.2.1.2.1 (colored) to branchpoint 1.2.2.1 (colored) next main 1.3 (colored)

Update from trunk.

Revision 1.5 / (download) - annotate - [select for diffs], Fri Jul 30 10:35:38 1999 UTC (23 years, 6 months ago) by itojun
Branch: MAIN
CVS Tags: fvdl-softdep-base, fvdl-softdep, comdex-fall-1999-base, comdex-fall-1999, chs-ubc2-base
Branch point for: wrstuden-devbsize, thorpej_scsipi
Changes since 1.4: +28 -1 lines
Diff to previous 1.4 (colored)

remove reference to in6_systm.h (file itself will be removed afterwords)

Revision 1.2.2.1.2.1 / (download) - annotate - [select for diffs], Mon Jun 21 01:27:36 1999 UTC (23 years, 7 months ago) by thorpej
Branch: chs-ubc2
Changes since 1.2.2.1: +1 -1 lines
Diff to previous 1.2.2.1 (colored)

Sync w/ -current.

Revision 1.2.2.1 / (download) - annotate - [select for diffs], Sun Apr 4 06:57:39 1999 UTC (23 years, 10 months ago) by explorer
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-RELEASE, netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001, kame_14_19990705, kame_14_19990628, kame_141_19991130, kame
Branch point for: chs-ubc2
Changes since 1.2: +3802 -863 lines
Diff to previous 1.2 (colored) next main 1.3 (colored)

Pull up recent changes to if_sppp*.[ch] (i4b code) with RCS id fixes

Revision 1.4 / (download) - annotate - [select for diffs], Sun Apr 4 06:57:03 1999 UTC (23 years, 10 months ago) by explorer
Branch: MAIN
Changes since 1.3: +3 -1 lines
Diff to previous 1.3 (colored)

Add NetBSD rcsid tags, and preserve old ones from i4b source

Revision 1.3 / (download) - annotate - [select for diffs], Sun Apr 4 06:07:57 1999 UTC (23 years, 10 months ago) by explorer
Branch: MAIN
Changes since 1.2: +3796 -859 lines
Diff to previous 1.2 (colored)

switch to the i4b version of if_sppp*.[ch] (with mods)

Revision 1.2 / (download) - annotate - [select for diffs], Thu Mar 25 05:25:42 1999 UTC (23 years, 10 months ago) by explorer
Branch: MAIN
CVS Tags: netbsd-1-4-base
Branch point for: netbsd-1-4
Changes since 1.1: +2 -2 lines
Diff to previous 1.1 (colored)

put RCS ids in the right place.  And yes, this is a SYNC ppp interface,
used for high-speed (T1, HSSI, DS3) interfaces.

Revision 1.1 / (download) - annotate - [select for diffs], Thu Mar 25 03:38:00 1999 UTC (23 years, 10 months ago) by explorer
Branch: MAIN

port FreeBSD's serial ppp layer to NetBSD.  The PPP part seems broken still,
but the lmc driver uses the HDLC bits from here anyway.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>