]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r342168,357786: Allow ng_nat to be attached to a ethernet interface
authorEugene Grosbein <eugen@FreeBSD.org>
Tue, 7 Apr 2020 16:44:14 +0000 (16:44 +0000)
committerEugene Grosbein <eugen@FreeBSD.org>
Tue, 7 Apr 2020 16:44:14 +0000 (16:44 +0000)
commitb846c4519e4a3eff183211ab80cc59deeac6321d
tree519f054ce2fff2cec7ce03ff53503460b21ae417
parente5e97139134ec51103addf1d86422c81e40a6ec7
MFC r342168,357786: Allow ng_nat to be attached to a ethernet interface

Allow ng_nat to be attached to a ethernet interface directly via ng_ether(4)
or the likes. Add new control message types: setdlt and getdlt to switch
from default DLT_RAW (no encapsulation) to DLT_EN10MB (ethernet).

Submitted by: sobomax
Reviewed by: glebius
Differential Revision: https://reviews.freebsd.org/D18535
Relnotes: yes
share/man/man4/ng_nat.4
sys/netgraph/ng_nat.c
sys/netgraph/ng_nat.h