Page MenuHomeFreeBSD

yanhaowang (Yan-Hao Wang)
User

Projects

User does not belong to any projects.

User Details

User Since
Jun 25 2022, 1:00 PM (137 w, 1 d)

Recent Activity

Oct 12 2024

lwhsu renamed yanhaowang from bses30074_gmail.com to yanhaowang.
Oct 12 2024, 1:14 PM

Aug 20 2024

yanhaowang updated the diff for D45124: rwhod: IPv6 clean.
  • Use MCAST_JOIN_GROUP to replace IP_ADD_MEMBERSHIP and IPV6_JOIN_GROUP.
  • Warn if multiple addresses are return. getaddrinfo() may return multiple address and I give a warn message and tell it only on address will be used to create socket.
Aug 20 2024, 9:08 AM

Aug 5 2024

yanhaowang updated the summary of D45515: ypbind: IPv6 clean by adding version 3 of ypbind.
Aug 5 2024, 3:20 AM
yanhaowang added reviewers for D46225: rquotad: ipv6 clean: hrs, lwhsu.
Aug 5 2024, 3:04 AM
yanhaowang requested review of D46225: rquotad: ipv6 clean.
Aug 5 2024, 3:03 AM

Aug 4 2024

yanhaowang updated the test plan for D46188: rup: Add verions 4 from Sun.
Aug 4 2024, 12:20 PM
yanhaowang updated the diff for D46188: rup: Add verions 4 from Sun.

Test in localhost and jail

Aug 4 2024, 12:17 PM
yanhaowang updated the summary of D46188: rup: Add verions 4 from Sun.
Aug 4 2024, 11:19 AM
yanhaowang updated the diff for D45988: rusers: Add version 3 of rusers.

Remove message from Sun

Aug 4 2024, 9:36 AM
yanhaowang updated the test plan for D45988: rusers: Add version 3 of rusers.
Aug 4 2024, 9:34 AM
yanhaowang updated the diff for D45988: rusers: Add version 3 of rusers.

Fix format

Aug 4 2024, 7:07 AM

Aug 1 2024

yanhaowang retitled D46188: rup: Add verions 4 from Sun from rstat: Add verions 4 from Sun to rup: Add verions 4 from Sun.
Aug 1 2024, 1:01 PM
yanhaowang added a comment to D46188: rup: Add verions 4 from Sun.
In D46188#1052994, @bses30074_gmail.com wrote:

The RPC server code is fine but while I in rup.c RPC client. I can't compile it because the linker.

kola@freebsd:/usr/src/usr.bin/rup $ sudo make all install
... 
ld: error: undefined symbol: xdr_statsvar
>>> referenced by rup.c:301 (/usr/src/usr.bin/rup/rup.c:301)
>>>               rup.o:(main)
>>> referenced by rup.c:254 (/usr/src/usr.bin/rup/rup.c:254)
>>>               rup.o:(main)
cc: error: linker command failed with exit code 1 (use -v to see invocation)
*** Error code 1

Stop.
make: stopped in /usr/src/usr.bin/rup

I don't know why because it seem xdr_statsvar has already define in rstat.x and will exist in the header file (rstat.h) which compiled from .x file.

It's newly added to rstat.x so you also need to build and install it, try make all install in src/include/rpcsvc?

Aug 1 2024, 12:56 PM
yanhaowang updated the summary of D45988: rusers: Add version 3 of rusers.
Aug 1 2024, 12:42 PM
yanhaowang updated the diff for D45988: rusers: Add version 3 of rusers.

Remove unrelated file

Aug 1 2024, 12:37 PM
yanhaowang updated the diff for D45988: rusers: Add version 3 of rusers.

Test in localhost

Aug 1 2024, 12:34 PM

Jul 31 2024

yanhaowang added a comment to D46188: rup: Add verions 4 from Sun.

The RPC server code is fine but while I in rup.c RPC client. I can't compile it because the linker.

Jul 31 2024, 7:55 AM
yanhaowang added reviewers for D46188: rup: Add verions 4 from Sun: lwhsu, hrs.
Jul 31 2024, 7:50 AM
yanhaowang updated the diff for D46188: rup: Add verions 4 from Sun.

Fix file permission again

Jul 31 2024, 7:49 AM
yanhaowang updated the diff for D46188: rup: Add verions 4 from Sun.
Jul 31 2024, 7:48 AM
yanhaowang requested review of D46188: rup: Add verions 4 from Sun.
Jul 31 2024, 7:47 AM

Jul 30 2024

yanhaowang updated the test plan for D45903: rarpd: remove gethostby*() calls.
Jul 30 2024, 3:41 AM

Jul 28 2024

yanhaowang updated the diff for D45594: arp: remove gethostby*() calls.

Fix getaddr function

Jul 28 2024, 9:24 AM
yanhaowang updated the test plan for D45594: arp: remove gethostby*() calls.
Jul 28 2024, 9:23 AM
yanhaowang updated the test plan for D45723: systat: remove gethostby*() calls.
Jul 28 2024, 8:30 AM

Jul 27 2024

yanhaowang updated the test plan for D45911: traceroute: remove gethostby*() calls.
Jul 27 2024, 12:54 PM
yanhaowang updated the test plan for D45926: netstat: remove gethostby*() calls.
Jul 27 2024, 12:45 PM
yanhaowang updated the diff for D45949: getent: remove gethostby*() calls.

Determine FQDN or not

Jul 27 2024, 12:18 PM
yanhaowang updated the summary of D45949: getent: remove gethostby*() calls.
Jul 27 2024, 9:35 AM
yanhaowang updated the diff for D45949: getent: remove gethostby*() calls.

Add socktype on getaddrinfo

Jul 27 2024, 8:49 AM

Jul 19 2024

yanhaowang updated the diff for D45988: rusers: Add version 3 of rusers.

Add clnt_call function for version 3

Jul 19 2024, 8:29 AM

Jul 17 2024

yanhaowang updated the diff for D45949: getent: remove gethostby*() calls.

Remove warns in makefile

Jul 17 2024, 3:28 AM
yanhaowang added reviewers for D45988: rusers: Add version 3 of rusers: hrs, lwhsu.
Jul 17 2024, 3:17 AM
yanhaowang added inline comments to D45988: rusers: Add version 3 of rusers.
Jul 17 2024, 3:17 AM
yanhaowang updated the summary of D45988: rusers: Add version 3 of rusers.
Jul 17 2024, 3:11 AM
yanhaowang requested review of D45988: rusers: Add version 3 of rusers.
Jul 17 2024, 3:10 AM

Jul 11 2024

yanhaowang added reviewers for D45949: getent: remove gethostby*() calls: hrs, lwhsu.
Jul 11 2024, 7:09 AM
yanhaowang added inline comments to D45949: getent: remove gethostby*() calls.
Jul 11 2024, 7:09 AM
yanhaowang updated the diff for D45949: getent: remove gethostby*() calls.

Fix file permission

Jul 11 2024, 7:06 AM
yanhaowang requested review of D45949: getent: remove gethostby*() calls.
Jul 11 2024, 7:05 AM

Jul 9 2024

yanhaowang added reviewers for D45926: netstat: remove gethostby*() calls: hrs, lwhsu.
Jul 9 2024, 3:53 AM
yanhaowang updated the diff for D45926: netstat: remove gethostby*() calls.

Fix file permission

Jul 9 2024, 3:52 AM
yanhaowang requested review of D45926: netstat: remove gethostby*() calls.
Jul 9 2024, 3:51 AM

Jul 8 2024

yanhaowang added reviewers for D45911: traceroute: remove gethostby*() calls: hrs, lwhsu.
Jul 8 2024, 9:25 AM
yanhaowang added inline comments to D45911: traceroute: remove gethostby*() calls.
Jul 8 2024, 9:24 AM
yanhaowang requested review of D45911: traceroute: remove gethostby*() calls.
Jul 8 2024, 9:22 AM
yanhaowang updated the diff for D45903: rarpd: remove gethostby*() calls.

Fix return value error

Jul 8 2024, 8:05 AM
yanhaowang updated the diff for D45723: systat: remove gethostby*() calls.

Revise showhosts() for improved efficiency

Jul 8 2024, 7:55 AM
yanhaowang updated the diff for D45601: ppp: remove gethostby*() calls.

Fix format

Jul 8 2024, 7:31 AM
yanhaowang updated the diff for D45594: arp: remove gethostby*() calls.

Fix typo and format

Jul 8 2024, 7:25 AM

Jul 7 2024

yanhaowang added reviewers for D45903: rarpd: remove gethostby*() calls: hrs, lwhsu.
Jul 7 2024, 10:51 AM
yanhaowang updated the diff for D45601: ppp: remove gethostby*() calls.

Remove unused variable

Jul 7 2024, 10:49 AM
yanhaowang updated the diff for D45723: systat: remove gethostby*() calls.

Remove unused variable

Jul 7 2024, 10:43 AM
yanhaowang updated the diff for D45903: rarpd: remove gethostby*() calls.

Fix file permission.

Jul 7 2024, 10:36 AM
yanhaowang requested review of D45903: rarpd: remove gethostby*() calls.
Jul 7 2024, 10:35 AM
yanhaowang updated the diff for D45723: systat: remove gethostby*() calls.

Update according Hiroki advise in D45594

Jul 7 2024, 7:41 AM
yanhaowang updated the diff for D45601: ppp: remove gethostby*() calls.

Update according Hiroki advise in D45594

Jul 7 2024, 7:15 AM

Jul 4 2024

yanhaowang updated the diff for D45594: arp: remove gethostby*() calls.

Update according Hiroki advise

Jul 4 2024, 8:56 AM
yanhaowang updated the summary of D45515: ypbind: IPv6 clean by adding version 3 of ypbind.
Jul 4 2024, 8:34 AM
yanhaowang updated the diff for D45515: ypbind: IPv6 clean by adding version 3 of ypbind.
  1. Use unsigned int instead of rpcvers_t.
  2. Remove struct netconfig in ypbind_binding_3 structure.
Jul 4 2024, 8:25 AM

Jul 3 2024

yanhaowang updated the diff for D45594: arp: remove gethostby*() calls.

Revise according Hiroki advise

Jul 3 2024, 2:47 AM

Jun 27 2024

yanhaowang updated the summary of D45515: ypbind: IPv6 clean by adding version 3 of ypbind.
Jun 27 2024, 10:11 AM
yanhaowang updated the summary of D45515: ypbind: IPv6 clean by adding version 3 of ypbind.
Jun 27 2024, 10:10 AM
yanhaowang updated the summary of D45515: ypbind: IPv6 clean by adding version 3 of ypbind.
Jun 27 2024, 10:10 AM
yanhaowang updated the diff for D45515: ypbind: IPv6 clean by adding version 3 of ypbind.
  • Use rpcb_unset instead of pmap_unset
Jun 27 2024, 10:04 AM
yanhaowang updated the summary of D45515: ypbind: IPv6 clean by adding version 3 of ypbind.
Jun 27 2024, 2:43 AM

Jun 25 2024

yanhaowang updated the diff for D45601: ppp: remove gethostby*() calls.
  • Remove for loop
Jun 25 2024, 2:44 AM
yanhaowang updated the summary of D45594: arp: remove gethostby*() calls.
Jun 25 2024, 2:32 AM
yanhaowang updated the diff for D45594: arp: remove gethostby*() calls.
  • Remove for loop
Jun 25 2024, 2:31 AM
yanhaowang added reviewers for D45723: systat: remove gethostby*() calls: hrs, lwhsu.
Jun 25 2024, 2:24 AM
yanhaowang updated the diff for D45723: systat: remove gethostby*() calls.

Fix file permission

Jun 25 2024, 2:23 AM
yanhaowang requested review of D45723: systat: remove gethostby*() calls.
Jun 25 2024, 2:21 AM

Jun 16 2024

yanhaowang updated the diff for D45601: ppp: remove gethostby*() calls.
  • Remove unused variable
Jun 16 2024, 7:42 AM
yanhaowang added reviewers for D45601: ppp: remove gethostby*() calls: hrs, lwhsu.
Jun 16 2024, 3:34 AM
yanhaowang requested review of D45601: ppp: remove gethostby*() calls.
Jun 16 2024, 3:29 AM
yanhaowang updated the diff for D45594: arp: remove gethostby*() calls.

Revise error code

Jun 16 2024, 3:20 AM
yanhaowang retitled D45594: arp: remove gethostby*() calls from arp: remove "gethostby*" function to arp: remove gethostby*() calls.
Jun 16 2024, 3:03 AM

Jun 15 2024

yanhaowang updated the diff for D45594: arp: remove gethostby*() calls.
Jun 15 2024, 12:51 PM

Jun 14 2024

yanhaowang added inline comments to D45594: arp: remove gethostby*() calls.
Jun 14 2024, 11:32 AM
yanhaowang added reviewers for D45594: arp: remove gethostby*() calls: hrs, lwhsu.
Jun 14 2024, 11:28 AM
yanhaowang updated the diff for D45594: arp: remove gethostby*() calls.

Fix file permission.

Jun 14 2024, 11:27 AM
yanhaowang requested review of D45594: arp: remove gethostby*() calls.
Jun 14 2024, 11:26 AM

Jun 11 2024

yanhaowang updated the diff for D45515: ypbind: IPv6 clean by adding version 3 of ypbind.

Fix file permission

Jun 11 2024, 6:15 PM
yanhaowang updated the diff for D45124: rwhod: IPv6 clean.
  • Fix file permission.
Jun 11 2024, 6:09 PM
yanhaowang updated the diff for D45124: rwhod: IPv6 clean.
  • Revise according Hiroki advice in ypbind(8)
Jun 11 2024, 6:03 PM

Jun 10 2024

yanhaowang added inline comments to D45515: ypbind: IPv6 clean by adding version 3 of ypbind.
Jun 10 2024, 7:23 AM
yanhaowang updated the diff for D45515: ypbind: IPv6 clean by adding version 3 of ypbind.
  • Move variable to "yp.x" file and fix variable name
  • Revise according the advice from Hiroki
Jun 10 2024, 7:19 AM

Jun 6 2024

yanhaowang updated the diff for D45515: ypbind: IPv6 clean by adding version 3 of ypbind.
  • Restore "ypset.c" which add accidentally
Jun 6 2024, 5:13 PM
yanhaowang added a comment to D45515: ypbind: IPv6 clean by adding version 3 of ypbind.

This patch attempts to implement version 3 of YP from Sun (https://src.illumos.org/source/xref/illumos-gate/usr/src/cmd/ypcmd/yp_b_svc.c?r=2a8bcb4e#337) into FreeBSD. It is part of my Google Summer of Code 2024 project (https://wiki.freebsd.org/SummerOfCode2024Projects/IPv6SupportAndCleanupOfAddressFamilyDependencyInUserlandUtilities). I believe uploading the ongoing work for discussion with my mentor (Hiroki) is efficient. If this is not a good approach, please let me know, and I will cancel the patch immediately and seek another way to discuss it.

Jun 6 2024, 5:09 PM
yanhaowang added reviewers for D45515: ypbind: IPv6 clean by adding version 3 of ypbind: hrs, lwhsu.
Jun 6 2024, 5:09 PM
yanhaowang requested review of D45515: ypbind: IPv6 clean by adding version 3 of ypbind.
Jun 6 2024, 5:08 PM

May 18 2024

yanhaowang updated the diff for D45124: rwhod: IPv6 clean.

Addressed IPv6 and formatting issues

May 18 2024, 7:36 AM

May 9 2024

yanhaowang added a comment to D45124: rwhod: IPv6 clean.
In D45124#1029225, @imp wrote:

What do you do if neither INET nor INET6 are defined? In a lot of cases, it looks like you fail. Likewise when you don't have the right address family compiled in.

May 9 2024, 1:28 PM

May 8 2024

yanhaowang abandoned D45123: rwhod: IPv6 clean.

I accidentally created it. There is already another revision, D45124.

May 8 2024, 2:08 PM
yanhaowang added reviewers for D45124: rwhod: IPv6 clean: hrs, lwhsu.
May 8 2024, 1:42 PM
yanhaowang added a comment to D45124: rwhod: IPv6 clean.

I tested the IPv6-only machine and found no errors affecting it. Here are some methods I employed to ensure IPv6 cleanliness:

May 8 2024, 1:41 PM
yanhaowang requested review of D45124: rwhod: IPv6 clean.
May 8 2024, 1:38 PM
yanhaowang requested review of D45123: rwhod: IPv6 clean.
May 8 2024, 1:36 PM

Jan 27 2024

yanhaowang added a comment to F75131370: image.png.

Oh, I get it. It is using the "dev.pcm.0.dest" to control the output. In my device, it is like below. The HDMI output can work whilst setting it to 2.

Jan 27 2024, 8:30 AM

Jan 20 2024

yanhaowang added a comment to F75131370: image.png.

This is my test result:

Jan 20 2024, 1:08 AM