On Mon, Jan 15, 2018 at 07:18:17PM +0100, Lorenzo Bianconi wrote: > > On Sun, Jan 14, 2018 at 03:50:55PM +0100, Lorenzo Bianconi wrote: > >> Add sanity check on l2specific_type provided by userspace in > >> l2tp_nl_cmd_session_create() since just L2TP_L2SPECTYPE_DEFAULT and > >> L2TP_L2SPECTYPE_NONE are currently supported. > >> Moreover do not always initialize l2specific_type if userspace requests > >> a given l2-specific sublayer type > >> > > I don't understand your last sentence. l2specific_type is always > > initialised in your patch (or session creation is aborted). > > > > I mean to explicitly set l2specific_type to L2TP_L2SPECTYPE_DEFAULT > only if the userspace does not provide a value for it (I moved the > 'default' initialization in the 'else' case) > Ok, I thought you were talking about a functional change.
- [PATCH v2 net-next 4/5] l2tp: remove l2specific_len confi... Lorenzo Bianconi
- [PATCH v2 net-next 1/5] l2tp: fix switch default error ha... Lorenzo Bianconi
- Re: [PATCH v2 net-next 1/5] l2tp: fix switch default... Guillaume Nault
- Re: [PATCH v2 net-next 1/5] l2tp: fix switch def... Lorenzo Bianconi
- Re: [PATCH v2 net-next 1/5] l2tp: fix switch... James Chapman
- Re: [PATCH v2 net-next 1/5] l2tp: fix sw... Lorenzo Bianconi
- Re: [PATCH v2 net-next 1/5] l2tp: fix switch... Guillaume Nault
- [PATCH v2 net-next 2/5] l2tp: double-check l2specific_typ... Lorenzo Bianconi
- Re: [PATCH v2 net-next 2/5] l2tp: double-check l2spe... Guillaume Nault
- Re: [PATCH v2 net-next 2/5] l2tp: double-check l... Lorenzo Bianconi
- Re: [PATCH v2 net-next 2/5] l2tp: double-che... Guillaume Nault
- Re: [PATCH v2 net-next 0/5] l2tp: set l2specific_len base... Guillaume Nault
- Re: [PATCH v2 net-next 0/5] l2tp: set l2specific_len... Lorenzo Bianconi
- Re: [PATCH v2 net-next 0/5] l2tp: set l2specific... Guillaume Nault