Patching ng_iface to allow setting the MTU via netgraph API

Andrey V. Elsukov bu7cher at yandex.ru
Thu Oct 11 09:44:00 UTC 2018


On 10.10.2018 22:43, Andreas Kempe wrote:
> Hello!
> 
> I am working on a meshnet concept and am using netgraph to put it right
> on top of the MAC layer. I am using ng_iface to do some tunneling of IP
> over my protocol and I thought it would be nice to be able to set the
> MTU of the created interface using the netgraph interface.
> 
> I created a patch to do just that and thought I could share it if
> someone would find it worthwhile using for something, but I couldn't
> really figure out where to share it. I couldn't really get clarity from
> the contribution section in the handbook.
> 
> If someone could point me in the right direction, it would be
> appreciated. I'll attach the patch to this mail as well since it is a
> quite small one.

Hi,

take a look at this review https://reviews.freebsd.org/D17180
You can use the same way.

-- 
WBR, Andrey V. Elsukov


More information about the freebsd-net mailing list