[systemd-devel] [PATCH] missing: define NET_NAME_UNKNOWN

Tom Gundersen teg at jklm.no
Thu Dec 4 10:52:11 PST 2014


Thanks!

On Thu, Dec 4, 2014 at 7:27 PM, David Herrmann <dh.herrmann at gmail.com> wrote:
> Hi
>
> On Thu, Dec 4, 2014 at 7:12 PM, Colin Walters <walters at verbum.org> wrote:
>> It's only exposed to userspace since
>>
>>   commit 685343fc3ba61a1f6eef361b786601123db16c28
>>   Author:     Tom Gundersen <teg at jklm.no>
>>   AuthorDate: Mon Jul 14 16:37:22 2014 +0200
>>   Commit:     David S. Miller <davem at davemloft.net>
>>   CommitDate: Tue Jul 15 16:12:01 2014 -0700
>>
>> to the kernel.
>
> Weird, this doesn't apply here.. but I cannot figure out why. I merged
> it manually now (and moved the constant above the other NET_NAME
> defines).
>
> Applied! Thanks
> David
>
>> ---
>>  src/shared/missing.h | 4 ++++
>>  1 file changed, 4 insertions(+)
>>
>> diff --git a/src/shared/missing.h b/src/shared/missing.h
>> index a56d265..aef232b 100644
>> --- a/src/shared/missing.h
>> +++ b/src/shared/missing.h
>> @@ -582,6 +582,10 @@ static inline int setns(int fd, int nstype) {
>>  #  define NET_NAME_RENAMED 4
>>  #endif
>>
>> +#ifndef NET_NAME_UNKNOWN
>> +#  define NET_NAME_UNKNOWN 0
>> +#endif
>> +
>>  #ifndef BPF_XOR
>>  #  define BPF_XOR 0xa0
>>  #endif
>> --
>> 1.8.3.1
>>
>>
>> _______________________________________________
>> systemd-devel mailing list
>> systemd-devel at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/systemd-devel
>>
> _______________________________________________
> systemd-devel mailing list
> systemd-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/systemd-devel


More information about the systemd-devel mailing list