ObjFW  Check-in [9a261b4ba9]

Overview
Comment:Fix +[OFSystemInfo networkInterfaces] on NetBSD
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 9a261b4ba9f903270c3b60d0c534330f32a4840c045e5641bf0b88e74e3ec87e
User & Date: js on 2024-05-05 09:42:53
Other Links: manifest | tags
Context
2024-05-05
12:15
Increase ObjFW library minor version check-in: ab1d9b0ecb user: js tags: trunk
09:43
Fix +[OFSystemInfo networkInterfaces] on NetBSD check-in: 6f0bb25b4e user: js tags: 1.1
09:42
Fix +[OFSystemInfo networkInterfaces] on NetBSD check-in: 9a261b4ba9 user: js tags: trunk
08:39
GitHub Actions: Load SCTP kernel module on FreeBSD check-in: ebb50f7d8f user: js tags: trunk
Changes

Modified src/platform/POSIX/OFSystemInfo+NetworkInterfaces.m from [d2c08c8ec3] to [0e4f3315ec].

244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
#   endif
			}
#  endif

			[addresses addItem: &address];

next:
#  ifdef HAVE_STRUCT_SOCKADDR_SA_LEN
			if (current->ifr_addr.sa_len > sizeof(struct sockaddr))
				buffer += sizeof(struct ifreq) -
				    sizeof(struct sockaddr) +
				    current->ifr_addr.sa_len;
			else
#  endif
				buffer += sizeof(struct ifreq);







|







244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
#   endif
			}
#  endif

			[addresses addItem: &address];

next:
#  if defined(HAVE_STRUCT_SOCKADDR_SA_LEN) && !defined(OF_NETBSD)
			if (current->ifr_addr.sa_len > sizeof(struct sockaddr))
				buffer += sizeof(struct ifreq) -
				    sizeof(struct sockaddr) +
				    current->ifr_addr.sa_len;
			else
#  endif
				buffer += sizeof(struct ifreq);