Make linux(4) support SO_PROTOCOL. Running Python test suite
with python3.8 from Focal triggers those. MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D25491
This commit is contained in:
parent
874d8270d9
commit
4fe5361cbe
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=362735
@ -236,6 +236,8 @@ linux_to_bsd_so_sockopt(int opt)
|
|||||||
return (SO_TIMESTAMP);
|
return (SO_TIMESTAMP);
|
||||||
case LINUX_SO_ACCEPTCONN:
|
case LINUX_SO_ACCEPTCONN:
|
||||||
return (SO_ACCEPTCONN);
|
return (SO_ACCEPTCONN);
|
||||||
|
case LINUX_SO_PROTOCOL:
|
||||||
|
return (SO_PROTOCOL);
|
||||||
}
|
}
|
||||||
return (-1);
|
return (-1);
|
||||||
}
|
}
|
||||||
|
@ -197,6 +197,7 @@ int linux_accept(struct thread *td, struct linux_accept_args *args);
|
|||||||
#define LINUX_SO_ACCEPTCONN 30
|
#define LINUX_SO_ACCEPTCONN 30
|
||||||
#define LINUX_SO_SNDBUFFORCE 32
|
#define LINUX_SO_SNDBUFFORCE 32
|
||||||
#define LINUX_SO_RCVBUFFORCE 33
|
#define LINUX_SO_RCVBUFFORCE 33
|
||||||
|
#define LINUX_SO_PROTOCOL 38
|
||||||
|
|
||||||
/* Socket options */
|
/* Socket options */
|
||||||
#define LINUX_IP_TOS 1
|
#define LINUX_IP_TOS 1
|
||||||
|
Loading…
Reference in New Issue
Block a user