mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Avoid undefined symbol error with an IPv4 only kernel.
Reported by: "Sergey A. Osokin" <osa@freebsd.org.ru>
This commit is contained in:
parent
00482d1917
commit
37e7a5a285
1 changed files with 9 additions and 1 deletions
|
|
@ -549,7 +549,15 @@ linux_socket(struct thread *td, struct linux_socket_args *args)
|
|||
* default and some apps depend on this. So, set V6ONLY to 0
|
||||
* for Linux apps if the sysctl value is set to 1.
|
||||
*/
|
||||
if (bsd_args.domain == PF_INET6 && retval_socket >= 0 && ip6_v6only) {
|
||||
if (bsd_args.domain == PF_INET6 && retval_socket >= 0
|
||||
#ifndef KLD_MODULE
|
||||
/*
|
||||
* XXX: Avoid undefined symbol error with an IPv4 only
|
||||
* kernel.
|
||||
*/
|
||||
&& ip6_v6only
|
||||
#endif
|
||||
) {
|
||||
caddr_t sg;
|
||||
int *v6only;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue