Util-Linux package development
 help / color / mirror / Atom feed
From: Stef Walter <stefw@redhat.com>
To: util-linux@vger.kernel.org
Subject: Re: [PATCH] agetty: Reprompt once the network addresses change if address displayed
Date: Thu, 9 Jul 2015 09:20:09 +0200	[thread overview]
Message-ID: <559E20A9.7010307@redhat.com> (raw)
In-Reply-To: <20150706140711.GF17734@vapier>

On 06.07.2015 16:07, Mike Frysinger wrote:
> On 03 Jul 2015 14:58, Stef Walter wrote:
>   #ifdef AGETTY_RELOAD
>>  # include <sys/inotify.h>
>> +# include <linux/netlink.h>
>> +# include <linux/rtnetlink.h>
> 
> why not use libmnl instead ?
> 	http://netfilter.org/projects/libmnl

I'm only a sporadic contributor to util-linux. I felt that adding a
dependency to util-linux wasn't my place to suggest. In addition this
patch performs very very simple usage of the netlink socket. We don't
even look at message data.

However the mantainers feel this is a better approach, I'd be happy to
implement it this way. Are you a maintainer of util-linux (sorry for the
dumb question)?

>> +static void open_netlink(void)
>> +{
>> ...
>> +		if (bind(sock,(struct sockaddr *)&addr, sizeof(addr)) < 0)
> 
> need space after the first ,

<snip>

Fixed all of these other review items and pushed the patch here:

https://github.com/stefwalter/util-linux/commits/agetty-addrchange

I'd be happy to repost the patch to the mailing list once a maintainer
decides on whether libmnl is necessary or not.

Stef


  parent reply	other threads:[~2015-07-09  7:20 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-03 12:58 [PATCH] agetty: Reprompt once the network addresses change if address displayed Stef Walter
2015-07-06 14:07 ` Mike Frysinger
2015-07-06 18:58   ` Bruce Dubbs
2015-07-07  4:25     ` Mike Frysinger
2015-07-07  5:05       ` Bruce Dubbs
2015-07-07  7:07         ` Mike Frysinger
2015-07-07 14:56           ` Bruce Dubbs
2015-07-07 15:56             ` Mike Frysinger
2015-07-09  7:20   ` Stef Walter [this message]
2015-07-20  9:26     ` Karel Zak

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=559E20A9.7010307@redhat.com \
    --to=stefw@redhat.com \
    --cc=util-linux@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox