CVS: cvs.openbsd.org: src

2024-03-23 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2024/03/23 18:14:19

Removed files:
sbin/iked  : radius.c 

Log message:
Remove radius.c which is added mistakenly and under review.



CVS: cvs.openbsd.org: src

2024-03-23 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2024/03/23 18:05:01

Modified files:
sbin/iked  : eap.c 
Added files:
sbin/iked  : radius.c 

Log message:
Allow zero-length identity response

ok tobhe



CVS: cvs.openbsd.org: src

2024-03-23 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2024/03/23 16:51:49

Modified files:
lib/libevent   : kqueue.c 

Log message:
In kq_del(), delete matching EV_ADD entries to prevent libevent from
passing both EV_ADD and EV_DELETE for the same fd to kevent().

ok visa



CVS: cvs.openbsd.org: src

2024-02-26 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2024/02/26 03:42:05

Modified files:
usr.sbin/npppd/npppd: npppd_auth.c npppd_auth_local.h 
  npppd_radius.c npppd_radius.h ppp.c 

Log message:
Add NAS-Identifier "npppd" for RADIUS requests.  Also send Accouting-On
when RADIUS accounting is configured.



CVS: cvs.openbsd.org: src

2024-02-26 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2024/02/26 01:47:28

Modified files:
usr.sbin/npppd/npppd: chap.c npppd_radius.c pap.c radius_req.c 
  radius_req.h 

Log message:
Put the RADIUS message authenticator in the Access-Request and check
the message authenticators of any received messages from servers only
if they include a message authenticator.



CVS: cvs.openbsd.org: src

2024-02-26 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2024/02/26 01:29:37

Modified files:
usr.sbin/npppd/l2tp: l2tp.h 
usr.sbin/npppd/npppd: npppd_iface.h npppd_local.h 
usr.sbin/npppd/pptp: pptp.h 

Log message:
Use unsigned integers for bit fields.  Also fix white spaces.



CVS: cvs.openbsd.org: src

2024-02-26 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2024/02/26 01:25:51

Modified files:
usr.sbin/npppd/common: addr_range.c debugutil.c hash.c 
   recvfromto.c 
usr.sbin/npppd/npppd: fsm.c fsm.h 

Log message:
Convert K style function declarations to ANSI.



CVS: cvs.openbsd.org: src

2024-02-24 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2024/02/24 23:22:45

Modified files:
lib/libradius  : radius.h 

Log message:
Fix a typo



CVS: cvs.openbsd.org: src

2024-02-09 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2024/02/09 04:59:23

Modified files:
lib/libradius  : radius_eapmsk.c 

Log message:
Don't assume MPPE-{Send,Recv}-Keys are used only for MS-CHAP (or
16 bytes length).  initial diff from markus



CVS: cvs.openbsd.org: src

2024-02-08 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2024/02/09 00:46:32

Modified files:
usr.sbin/radiusd: radiusd.c 

Log message:
Refactor some functions to prepare accounting support.



CVS: cvs.openbsd.org: src

2024-02-08 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2024/02/09 00:41:32

Modified files:
usr.sbin/radiusd: radiusd_bsdauth.c radiusd_module.c 
  radiusd_module.h radiusd_radius.c 
  radiusd_standard.c 

Log message:
Add nochroot parameter to module_drop_privilege() so that modules can
use unveil(2) instead of chroot(2) if need.



CVS: cvs.openbsd.org: src

2024-02-06 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2024/02/06 03:53:20

Modified files:
usr.sbin/radiusd: radiusd_standard.c 

Log message:
Fix the radius standard module to remove the specified attribute from
response properly.



CVS: cvs.openbsd.org: src

2024-02-05 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2024/02/05 22:39:28

Modified files:
sbin/ipsecctl  : ipsecctl.c 

Log message:
Tweak previous.  Passing "dns" to pledge(2) is suitable for the purpose.

input deraadt, ok tobhe



CVS: cvs.openbsd.org: src

2024-01-28 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2024/01/28 17:59:55

Modified files:
sbin/ipsecctl  : ipsecctl.c 

Log message:
Open /etc/{services,protocols} before pledge(2).

ok tobhe



CVS: cvs.openbsd.org: src

2024-01-18 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2024/01/18 23:32:28

Modified files:
lib/libradius  : radius.h 

Log message:
Define the IPv6 related attributes from RFC 2865.



CVS: cvs.openbsd.org: src

2024-01-07 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2024/01/07 21:16:48

Modified files:
usr.sbin/radiusd: radiusd.c radiusd.h radiusd_module.c 
  radiusd_module.h radiusd_standard.c 

Log message:
Pass the request packet to response decorations for future use.
This is required for many cases and will be used future.



CVS: cvs.openbsd.org: src

2023-10-22 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2023/10/22 18:58:32

Modified files:
usr.sbin/radiusd: radiusd.c 

Log message:
Fix radiusd(8) to fixup MPPE-{Send,Recv}-Key and Tunnel-Password
attributes of the response properly.



CVS: cvs.openbsd.org: src

2023-09-24 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2023/09/24 00:09:35

Modified files:
etc/examples   : radiusd.conf 

Log message:
Strip realm part for bsdauth.  This is required and an exmaple usage of
new radius_standard module.



CVS: cvs.openbsd.org: src

2023-09-23 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2023/09/23 23:56:06

Modified files:
sys/net: if_wg.c 

Log message:
The stage queue should be freeed when wg_peer is destroyed.
diff from IIJ.

ok bluhm mvs



CVS: cvs.openbsd.org: src

2023-09-14 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2023/09/14 03:55:28

Modified files:
usr.sbin/radiusd: radiusd.conf.5 

Log message:
Clarify the interval after 30sec.



CVS: cvs.openbsd.org: src

2023-09-14 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2023/09/14 03:54:31

Modified files:
usr.sbin/relayd: pfe_filter.c 

Log message:
Revert the previous.  It was committed by my mistake.



CVS: cvs.openbsd.org: src

2023-09-14 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2023/09/14 03:51:14

Modified files:
usr.sbin/relayd: pfe_filter.c 

Log message:
Clarify the interval after 30sec.



CVS: cvs.openbsd.org: src

2023-09-11 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2023/09/11 01:33:07

Modified files:
usr.sbin/npppd/l2tp: l2tp_subr.c 

Log message:
Check if the avp->length is not broken.   Also make sure that
avp_enum() checks if avp->length is valid.

ok mvp



CVS: cvs.openbsd.org: src

2023-09-07 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2023/09/07 23:56:22

Modified files:
usr.sbin/radiusd: Makefile parse.y radiusd.c radiusd.conf.5 
  radiusd.h radiusd_local.h radiusd_module.c 
  radiusd_module.h 
Added files:
usr.sbin/radiusd: radiusd_standard.c 
usr.sbin/radiusd/radiusd_standard: Makefile 

Log message:
Add request or response decoration feature which is used through the
radiusd module interface.  This makes additional modules can modify
RADIUS request or response messages.  Also add new "radius_standard"
module which uses this new feature, provides some generic features
like "strip-atmark-realm" which removes the realm part from the
User-Name attribute.  from IIJ.



CVS: cvs.openbsd.org: src

2023-09-07 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2023/09/07 23:49:59

src/usr.sbin/radiusd/radiusd_standard

Update of /cvs/src/usr.sbin/radiusd/radiusd_standard
In directory cvs.openbsd.org:/tmp/cvs-serv14327/radiusd_standard

Log Message:
Directory /cvs/src/usr.sbin/radiusd/radiusd_standard added to the repository



CVS: cvs.openbsd.org: src

2023-09-04 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2023/09/04 18:32:01

Modified files:
usr.sbin/radiusd: parse.y radiusd.c 

Log message:
Refuse an incomplete config, an authentication block which doesn't
have authentication module.  The code doesn't expect this.



CVS: cvs.openbsd.org: src

2023-09-04 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2023/09/04 17:55:23

Modified files:
usr.sbin/radiusd: radiusd.c 

Log message:
Revert previous.  It caused the stdio of the modules be NONBLOCK.
Generally programs don't expect that.



CVS: cvs.openbsd.org: src

2023-09-04 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2023/09/04 06:28:18

Modified files:
usr.sbin/radiusd: parse.y radiusd.conf.5 

Log message:
Don't surround by "" at much as possible.



CVS: cvs.openbsd.org: src

2023-09-04 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2023/09/04 04:50:52

Modified files:
usr.sbin/radiusd: radiusd.c 

Log message:
Specify SOCK_NONBLOCK for socketpair(2) instead of fcntl(2).



CVS: cvs.openbsd.org: src

2023-09-04 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2023/09/04 04:49:20

Modified files:
usr.sbin/radiusd: radiusd_radius.c 

Log message:
Don't return an extra OK message.  Also call module_destroy() when
exit(3).



CVS: cvs.openbsd.org: src

2023-08-29 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2023/08/29 01:54:01

Modified files:
regress/lib/libz: utils_unittest.cc 

Log message:
Have #include  when using fprintf().  This is needed if
wchar.h stops including stdio.h.  from asou

ok tb



CVS: cvs.openbsd.org: src

2023-08-18 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2023/08/18 00:45:15

Modified files:
etc/examples   : radiusd.conf 

Log message:
Tweak radiusd.conf example.  input from an anonymous user.



CVS: cvs.openbsd.org: src

2023-08-18 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2023/08/18 00:37:20

Modified files:
usr.sbin/radiusd: parse.y 

Log message:
Fix the config parser to be able to have comment lines at middle of
"client" block.  Also fix a memory leak and improve the error messages
when parse errors.



CVS: cvs.openbsd.org: src

2023-08-18 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2023/08/18 00:12:27

Modified files:
usr.sbin/radiusd: radiusd_bsdauth.c 

Log message:
Properly terminate the arguments for execv() with NULL.



CVS: cvs.openbsd.org: src

2023-07-30 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2023/07/30 02:46:03

Modified files:
sys/dev/pci: azalia.c 

Log message:
Attach "Intel 700 Series HD Audio" (0x51ca).  The audio device on vaio
VJPK23, azalia doesn't match because its subclass is audio not hd audio.

ok jsg



CVS: cvs.openbsd.org: src

2023-07-19 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2023/07/19 20:26:24

Modified files:
sys/arch/i386/conf: RAMDISK RAMDISK_CD 
sys/arch/amd64/conf: RAMDISK RAMDISK_CD 

Log message:
Assign wsdisplay0 to the glass console always.  The same change is
done for GENERIC already.

ok kettenis kn



CVS: cvs.openbsd.org: src

2023-07-15 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2023/07/15 21:01:31

Modified files:
sys/kern   : kern_sysctl.c 
sys/sys: mbuf.h 
usr.bin/netstat: mbuf.c 

Log message:
Make the mbstat preserve the same size which is actually used.  Also
revert the previous that the mbstat is located on the stack.

ok claudio



CVS: cvs.openbsd.org: src

2023-07-08 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2023/07/08 02:53:26

Modified files:
lib/libradius  : radius.c radius.h radius_attr.c radius_eapmsk.c 
 radius_userpass.c 

Log message:
Tidy up #include lines.



CVS: cvs.openbsd.org: src

2023-07-07 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2023/07/07 08:17:35

Modified files:
sys/sys: mbuf.h 
usr.bin/netstat: mbuf.c 

Log message:
Expand the counters in struct mbstat from u_short to u_long.

ok blumn mvs



CVS: cvs.openbsd.org: src

2023-07-07 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2023/07/07 03:15:13

Modified files:
usr.bin/netstat: inet.c 

Log message:
Use "llu%" for printing the uint64_t fields in tcpcb.

ok blumn



CVS: cvs.openbsd.org: src

2023-04-29 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2023/04/29 18:58:38

Modified files:
sbin/atactl: atactl.c 

Log message:
Fix that atactl sd0 readattr didn't work for some disks.  Change it to
check the cksums of the attribute values instead of comparing the
revisions.  diff from NetBSD through naito.yuichiro at gmail.com. test
by kolipe.c at exoticsilicon.com.

ok kevlo miod deraadt



CVS: cvs.openbsd.org: www

2023-04-17 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:www
Changes by: yasu...@cvs.openbsd.org 2023/04/17 21:42:43

Modified files:
faq/pf : carp.html 

Log message:
Update the carp page.  In current implementation, changing the
demotion counter with the link state of the physical interface is
unrelated to net.inet.carp.preempt.

ok tj



CVS: cvs.openbsd.org: src

2023-03-13 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2023/03/13 18:24:05

Modified files:
sys/netinet: tcp_input.c tcp_timer.c tcp_timer.h 
 tcp_usrreq.c tcp_var.h 

Log message:
To avoid misunderstanding, keep variables for tcp keepalive in
milliseconds, which is the same unit of tcp_now().  However, keep the
unit of sysctl variables in seconds and convert their unit in
tcp_sysctl().  Additionally revert TCPTV_SRTTDFLT back to 3 seconds,
which was mistakenly changed to 1.5 seconds by tcp_timer.h 1.19.

ok claudio



CVS: cvs.openbsd.org: src

2023-01-22 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2023/01/22 16:05:51

Modified files:
sys/net: pf.c 

Log message:
Fix pf_anchor_stackframe commit to revert pf rule matching to the
previous behavior that stops when any rule matches within quick
anchors.

ok sasha kn



CVS: cvs.openbsd.org: src

2022-12-27 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2022/12/27 18:39:21

Modified files:
sys/arch/octeon/dev: cn30xxasx.c cn30xxasxreg.h cn30xxasxvar.h 
 cn30xxbootbusreg.h cn30xxciureg.h 
 cn30xxfau.c cn30xxfaureg.h cn30xxfauvar.h 
 cn30xxfpa.c cn30xxfpareg.h cn30xxfpavar.h 
 cn30xxgmx.c cn30xxgmxreg.h cn30xxgmxvar.h 
 cn30xxipd.c cn30xxipdreg.h cn30xxipdvar.h 
 cn30xxnpireg.h cn30xxpip.c cn30xxpipreg.h 
 cn30xxpipvar.h cn30xxpko.c cn30xxpkoreg.h 
 cn30xxpkovar.h cn30xxpow.c cn30xxpowreg.h 
 cn30xxpowvar.h cn30xxsmi.c cn30xxsmireg.h 
 cn30xxsmivar.h cn30xxuartreg.h if_cnmac.c 
 if_cnmacvar.h octhcireg.h 
sys/arch/octeon/include: octeon_model.h 

Log message:
Fix the word in the copyright.  IIJ is not a regent.  ok from nakayama
at iij

found and ok miod



CVS: cvs.openbsd.org: src

2022-12-12 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2022/12/12 17:59:53

Modified files:
usr.sbin/radiusd: radiusd.conf.5 

Log message:
Clarify the default is to require message authentication.



CVS: cvs.openbsd.org: src

2022-12-07 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2022/12/07 22:59:39

Modified files:
sys/netinet: tcp_input.c 

Log message:
Convert tcptv_keep_init in milliseconds before comparing other values
of tcp time.  This fixes the retransmit timer of syn_cache which was
broken.  reported by naddy, input dlg, test jca

ok jca



CVS: cvs.openbsd.org: src

2022-12-07 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2022/12/07 22:45:36

Modified files:
sys/dev/pv : pvbus.c 

Log message:
Fix pvbus to specify M_ZERO properly.

ok kn mvs mlarkin asou deraadt



CVS: cvs.openbsd.org: src

2022-12-03 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2022/12/03 03:57:04

Modified files:
sys/dev/pv : vmt.c 

Log message:
Modify vmt to use the buffer allocated in pvbus directly instead of
the buffer in the vmt softc when doing RPC for PVBUSIOC_KV{READ|WRITE}
ioctl.

ok asou



CVS: cvs.openbsd.org: src

2022-11-07 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2022/11/07 04:22:56

Modified files:
sys/netinet: tcp_input.c tcp_output.c tcp_subr.c tcp_timer.c 
 tcp_timer.h tcp_usrreq.c tcp_var.h 
lib/libc/sys   : sysctl.2 

Log message:
Modify TCP receive buffer size auto scaling to use the smoothed RTT
(SRTT) instead of the timestamp option.  Since the timestamp option is
disabled on some OSs (eg. Windows) or dropped by some
firewalls/routers, in such a case the window size had been fixed at
16KB, this limits throughput at very low on high latency networks.
Also replace "tcp_now" from 2HZ tick counter to binuptime in
milliseconds to calculate the SRTT better.

tested by krw matthieu jmatthew dlg djm stu stsp
ok claudio



CVS: cvs.openbsd.org: src

2022-09-20 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2022/09/20 23:55:18

Modified files:
usr.sbin/httpd : server_http.c 

Log message:
Default request message body size should be 0.

ok claudio



CVS: cvs.openbsd.org: src

2022-09-11 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2022/09/11 02:38:39

Modified files:
sys/dev/pci: if_vmx.c 

Log message:
Handle if pci_intr_establish() failed.  This actually happens if many
VMXNET3 are configured.  from IIJ.

ok jmatthew



CVS: cvs.openbsd.org: src

2022-09-03 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2022/09/03 08:57:54

Modified files:
sys/net: pf.c pfvar.h 

Log message:
When divert-reply is used, keep some pf states after pcb is dropped if
its local address is translated, to prevent its source port from being
reused.  regress test by blumn.

ok blumn



CVS: cvs.openbsd.org: src

2022-08-30 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2022/08/30 10:06:09

Modified files:
usr.bin/uudecode: uudecode.c 

Log message:
Use BUFSIZ instead of PATH_MAX.  Since it doesn't anything with a file
system path.  input from claudio

ok tb claudio



CVS: cvs.openbsd.org: src

2022-08-30 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2022/08/30 09:57:19

Modified files:
usr.bin/uudecode: uudecode.c 

Log message:
Give a string which length is multiple of 4 to b64_pton() since the
function assumes that the input ends at end of 24-bit group.

ok tb claudio



CVS: cvs.openbsd.org: src

2022-06-19 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2022/06/19 20:22:05

Modified files:
sys/arch/amd64/stand/efiboot: conf.c efiboot.c 

Log message:
When there are multiple GOPs, try to select first one from which we
can get a handle of DevicePath protocol if any, otherwise select first
one.  This is expected to workaround the garbled screen problem when
booting with efiboot happened on some machines.

origin diff from Alexei K.



Re: CVS: cvs.openbsd.org: src

2022-05-12 Thread YASUOKA Masahiko
On Thu, 12 May 2022 18:17:20 -0600 (MDT)
YASUOKA Masahiko  wrote:
> CVSROOT:  /cvs
> Module name:  src
> Changes by:   yasu...@cvs.openbsd.org 2022/05/12 18:17:20
> 
> Modified files:
>   usr.sbin/vmctl : main.c vmctl.c vmctl.h 
> 
> Log message:
> Follow the recent change that the unit of `imgsize' argument of
> create_imagefile() became MB.  Also change the arguement's type from
> long to uint64_t that is preferred.

Sorry first sentence has a false.  The unit became byte actually.



CVS: cvs.openbsd.org: src

2022-05-12 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2022/05/12 18:17:20

Modified files:
usr.sbin/vmctl : main.c vmctl.c vmctl.h 

Log message:
Follow the recent change that the unit of `imgsize' argument of
create_imagefile() became MB.  Also change the arguement's type from
long to uint64_t that is preferred.

ok dv



CVS: cvs.openbsd.org: src

2022-01-03 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2022/01/03 23:32:40

Modified files:
sys/net: if_bridge.c if_veb.c 
sys/netinet: ip_ipsp.c ip_ipsp.h ip_output.c ip_spd.c 
 ipsec_input.c tcp_input.c udp_usrreq.c 
sys/netinet6   : ip6_output.c 

Log message:
Add `ipsec_flows_mtx' mutex(9) to protect `ipsp_ids_*' list and
trees.  ipsp_ids_lookup() returns `ids' with bumped reference
counter.  original diff from mvs

ok mvs



CVS: cvs.openbsd.org: src

2021-11-03 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2021/11/03 22:20:14

Modified files:
sbin/ipsecctl  : ipsec.conf.5 

Log message:
Tweaks (improve previous commit)

from jmc



CVS: cvs.openbsd.org: src

2021-11-03 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2021/11/03 21:53:58

Modified files:
sbin/iked  : iked.conf.5 
sbin/ipsecctl  : ipsec.conf.5 

Log message:
Clarify "aes" will accept keys which length is in 128:256 bits.  Also
correct "cast" in ipsec.conf.5 to "cast128", add missing
"chacha20-poly1305", and sync iked.conf.5 and ipsec.conf.5 some
places.

ok jmc sthen



CVS: cvs.openbsd.org: src

2021-11-02 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2021/11/02 23:59:25

Modified files:
sbin/isakmpd   : isakmpd.conf.5 

Log message:
Clarify that ANY can be used for several parameters of IPsec transform.

ok jmc sthen



CVS: cvs.openbsd.org: src

2021-05-22 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2021/05/22 02:29:57

Modified files:
usr.sbin/npppd/l2tp: l2tp_ctrl.c 
Removed files:
usr.sbin/npppd/common: ipsec_util.c ipsec_util.h 
   ipsec_util_local.h 

Log message:
Remove ipsec_utils.c, its headers, and the code block which use it
from npppd(8).  They had been disabled for long time.



CVS: cvs.openbsd.org: src

2021-05-15 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2021/05/15 02:07:20

Modified files:
sys/sys: mbuf.h 
sys/net: pipex.c 
sys/netinet: ip_input.c 
share/man/man9 : mbuf_tags.9 

Log message:
Fix IPsec NAT-T to work with pipex(4).  Introduce a new packet tag
PACKET_TAG_IPSEC_FLOWINFO to specify the IPsec flow.

ok mvs



CVS: cvs.openbsd.org: src

2021-05-12 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2021/05/12 17:17:30

Modified files:
share/man/man9 : mbuf_tags.9 

Log message:
Remove about PACKET_TAG_PIPEX, it was replaced by ph_cookie.



CVS: cvs.openbsd.org: src

2021-03-28 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2021/03/28 21:54:40

Modified files:
usr.sbin/npppd/common: ipsec_util.c radish.c slist.c 
usr.sbin/npppd/l2tp: l2tp.h l2tp_call.c l2tp_ctrl.c l2tpd.c 
usr.sbin/npppd/npppd: chap.c chap_ms.c npppd.c npppd_auth.c 
  npppd_subr.c pap.c ppp.c ppp.h 
  radius_chap_const.h 
usr.sbin/npppd/pppoe: pppoe.h pppoe_session.c pppoed.c 
usr.sbin/npppd/pptp: pptp.h pptp_call.c pptp_ctrl.c pptp_local.h 
 pptpd.c 

Log message:
spellings
suggested by jsg



CVS: cvs.openbsd.org: src

2021-03-17 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2021/03/17 18:17:26

Modified files:
sys/dev/acpi   : dsdt.c 

Log message:
Fix previous (1.258).  It breaks if localX itself is an object reference.
found and test by Rafael Avila de Espindola

ok kettenis



CVS: cvs.openbsd.org: src

2021-03-16 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2021/03/16 23:41:34

Modified files:
sys/arch/amd64/stand/efiboot: conf.c efidev.c 

Log message:
Always use an allocated buffer for {Read,Write}Blocks() to make
efid_io() simpler.  Also fixes the problem on some machines when boot
from CD-ROM.  It happened because the previous version passed
unaligned pointers to the functions even if it is restricted by the
IoAlign property of the media.  idea from kettenis, work with asou

ok kettenis



CVS: cvs.openbsd.org: src

2021-03-10 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2021/03/10 03:51:10

Modified files:
usr.sbin/npppd/npppd: ppp.h 

Log message:
Expand the maximum length for CHAP challenge to 96 octets.  npppd
couldn't handle ICCN message which has a ProxyAuthenChallenge AVP
longer than 24 octets.  Juniper actually send such challenges.
Reported and tested by Ryan Freeman.



CVS: cvs.openbsd.org: src

2021-03-07 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2021/03/07 15:53:46

Modified files:
sys/dev/acpi   : dsdt.c 

Log message:
Fix aml_store() to work properly when the lvalue is a reference of
LocalX.  In that case, resolving the reference must be done before
resetting the LocalX variable.  test daniel

ok kettenis



CVS: cvs.openbsd.org: src

2021-03-05 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2021/03/05 01:41:26

Modified files:
usr.sbin/npppd/pptp: pptp_call.c pptp_ctrl.c 

Log message:
Fix some heap over-read in logging in PPTP protocol handler.



CVS: cvs.openbsd.org: src

2021-01-25 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2021/01/25 02:11:36

Modified files:
sys/net: if_wg.c 

Log message:
Fix wg(4) ioctl to be able to handle multiple wgpeers.
Diff from Yuichiro NAITO.

ok procter



CVS: cvs.openbsd.org: www

2020-10-10 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:www
Changes by: yasu...@cvs.openbsd.org 2020/10/10 19:19:17

Modified files:
faq: upgrade68.html 

Log message:
Add a paragraph about npppd.conf permission has been changed.
Point out tj, work with mvs and schwarze



CVS: cvs.openbsd.org: src

2020-09-17 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2020/09/17 08:26:59

Modified files:
sbin/pfctl : parse.y 

Log message:
Fix the previous commit whose conditions were reversed.

ok kn



CVS: cvs.openbsd.org: src

2020-09-17 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2020/09/17 04:09:44

Modified files:
sbin/pfctl : parse.y 

Log message:
Make pfctl(8) check if the rtable really exists when parsing the
config.  work with and diff from kn

ok kn



CVS: cvs.openbsd.org: src

2020-09-12 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2020/09/12 01:34:17

Modified files:
usr.sbin/httpd : http.h server_fcgi.c server_http.c 

Log message:
Use the original requested URI for REQUEST_URI.

ok millert florian



CVS: cvs.openbsd.org: src

2020-08-27 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2020/08/27 04:47:52

Modified files:
sys/net: if_pppx.c pipex.c pipex.h pipex_local.h 

Log message:
Make pipex(4) more common for pppac(4) and pppx(4).  Replace
pipex_iface of struct pipex_session with owner_sc which refers the
owner device.  This makes ioctl commands for pppac or pppx device
simpler.  PIPEX{S,G}MODE became dummy since both pppac and pppx is
always used with pipex.  Also move some pppac specific things to the
pppac part on if_pppx.c.

suggestions from mvs, ok mvs



CVS: cvs.openbsd.org: src

2020-07-28 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2020/07/28 20:32:13

Modified files:
sys/net: pf_lb.c 

Log message:
Fix previous commit which referred wrong address and returned wrong
value.

ok sashan



CVS: cvs.openbsd.org: src

2020-07-28 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2020/07/28 10:47:42

Modified files:
sys/net: pf_lb.c pf_table.c pfvar.h 

Log message:
Use the table on root always if current table is not active.

ok sashan



CVS: cvs.openbsd.org: src

2020-07-28 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2020/07/28 10:44:34

Modified files:
sys/netinet: ip_carp.c 

Log message:
Don't treat an error if carppeer is an unicast and the peer is down.

ok kn



CVS: cvs.openbsd.org: src

2020-07-24 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2020/07/24 08:06:33

Modified files:
sys/net: pf_lb.c 

Log message:
Increase state counter for least-states when the address is selected
by sticky-address.  Also fix the problem that the interface which is
specified by the selected table entry is not used properly.

ok jung sashan



CVS: cvs.openbsd.org: src

2020-07-07 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2020/07/07 08:53:36

Modified files:
sbin/route : route.c 

Log message:
Stop using make_addr() which trims trailing zeros of the netmask, set
family and length field.  This fixes route(8) to handle "::/0"
properly.  Also fix "route add -inet 0.0.0.0 -prefixlen 0 (gateway)"
to work properly.

ok kn



CVS: cvs.openbsd.org: src

2020-06-08 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2020/06/08 20:39:27

Modified files:
usr.sbin/npppd/l2tp: l2tp.h l2tp_ctrl.c 

Log message:
Prepare buffer for both receive and transmit side so that a client can
use them separately.  Actually a version of CISCO does and expects the
peer does the same.  Also fix some typos.



CVS: cvs.openbsd.org: src

2020-06-03 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2020/06/03 22:27:51

Modified files:
sys/net: pf_table.c 

Log message:
Fix pfr_kentry_byaddr() to be used for a rule in an anchor.  It
couldn't find an entry if its table is attached a table on the root.
This fixes the problem "route-to  least-states" doesn't work.
The problem is found by IIJ.

OK sashan



CVS: cvs.openbsd.org: src

2020-05-28 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2020/05/28 09:06:36

Modified files:
sys/arch/amd64/amd64: machdep.c 

Log message:
Call cninit() after parsing boot parameter to make cninit() possible
to select the VGA or the EFI framebuffer properly.  Previous
initializes VGA unconditionally, it caused serious problems like the
video distortion and so on.  As a downside of this commit, some early
panic or debug messages will not be displayed.

test Andrew Daugherity, jsg
ok jsg kettenis



CVS: cvs.openbsd.org: src

2020-04-17 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2020/04/17 22:03:56

Modified files:
sys/net: if_pppx.c 

Log message:
Use MHLEN for the space size of mbuf header.  This fixes the panic
when using pppac without pipex.

ok dlg



CVS: cvs.openbsd.org: src

2020-03-08 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2020/03/08 22:51:24

Modified files:
sys/dev: ipmi.c 

Log message:
Return error value when sending "sensor reading" is failed. This fixes
"ipmi0: sendcmd fails" errors when there is a sensor which is
enumurated but reading it is failed.

ok mpi



CVS: cvs.openbsd.org: src

2020-03-08 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2020/03/08 22:38:46

Modified files:
sys/dev/ic : com.c 

Log message:
Update the console device always when attaching the real device
driver.  The information by the driver is supposed more reliable than
the information which was set up earlier.

ok patrick



CVS: cvs.openbsd.org: src

2020-02-19 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2020/02/19 17:45:09

Modified files:
usr.bin/ftp: fetch.c 

Log message:
Backout revision 1.190 partially.  That part was an unintended change which
is work in progress.



CVS: cvs.openbsd.org: src

2020-02-18 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2020/02/19 00:29:53

Modified files:
usr.bin/ftp: fetch.c 

Log message:
Don't put the userinfo in request URI.  This also makes accessing a
https server with user/password through "http_proxy" environment
variable work properly.

ok jca



CVS: cvs.openbsd.org: src

2020-02-15 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2020/02/15 04:35:31

Modified files:
sys/dev/ic : nvme.c 

Log message:
Don't touch the phase bit at nvme_poll_done().  This makes dumpsys()
work with nvme.

ok jmatthew



CVS: cvs.openbsd.org: src

2020-02-14 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2020/02/15 00:16:03

Modified files:
sys/net: pipex_local.h 

Log message:
Remove needless #ifdef.
Diff from Jan Stary.

ok claudio



CVS: cvs.openbsd.org: src

2020-01-23 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2020/01/23 19:14:09

Modified files:
sbin/isakmpd   : monitor.c 

Log message:
Fix isakmpd monitor process to use the exit status of main process
when exiting.

"make sense" deraadt



CVS: cvs.openbsd.org: src

2019-12-22 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2019/12/22 19:18:51

Modified files:
gnu/usr.bin/binutils/gdb: amd64obsd-tdep.c 

Log message:
Teach gdb that the trap frame should be used for alltraps_kern_meltdown().

ok bluhm kettenis



CVS: cvs.openbsd.org: src

2019-12-11 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2019/12/11 17:10:29

Modified files:
usr.sbin/ldpd  : adjacency.c hello.c ldpe.h 

Log message:
Make ldpd lookup the adjacency not only by source IP address but also
by LSR Id, since remote peer may change its LSR Id.  diff from and
test by Vitaliy Guschin.

ok claudio



CVS: cvs.openbsd.org: src

2019-11-18 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2019/11/18 20:33:43

Modified files:
sys/dev/pci: if_ixl.c 

Log message:
Correct the link speed constant variables.  From Shoichi Yamaguchi.

ok jmatthew



CVS: cvs.openbsd.org: src

2019-11-08 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2019/11/08 20:53:44

Modified files:
sys/dev/pci: if_vic.c 

Log message:
Ack the interrupt first, so that it can receive interrupts for new
arrival packets.  diff from IIJ.

ok dlg



CVS: cvs.openbsd.org: src

2019-11-07 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2019/11/07 18:20:22

Modified files:
sys/dev/hid: hidmt.c hidmtvar.h 

Log message:
Add support for button 2 and 3 to imt(4).

ok jcs



CVS: cvs.openbsd.org: src

2019-10-01 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2019/10/01 22:51:34

Modified files:
sys/dev/pci: if_ixl.c 

Log message:
When dequeuing an aqb from the live queue and move it to the idle queue,
remove it from the live queue.  Found by Shoichi Yamaguchi.

ok dlg



CVS: cvs.openbsd.org: src

2019-08-06 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2019/08/06 22:22:16

Modified files:
lib/libedit: terminal.c 

Log message:
Initialize the line buffer by zero when allocation.  This fixes the
problem a crash happens after the window size change.
Worked and discussed with asou and schwarze.

ok schwarze



  1   2   3   4   5   6   >