All of lore.kernel.org
 help / color / mirror / Atom feed
From: Oliver Hartkopp <socketcan@hartkopp.net>
To: Thomas Graf <tgraf@suug.ch>
Cc: linux-can@vger.kernel.org
Subject: Re: [PATCH 0/4] can: gw: Netlink related fixes
Date: Thu, 05 Jul 2012 18:16:41 +0200	[thread overview]
Message-ID: <4FF5BDE9.7000001@hartkopp.net> (raw)
In-Reply-To: <cover.1341489914.git.tgraf@suug.ch>

On 05.07.2012 14:19, Thomas Graf wrote:


> These patches fix some Netlink quirks in the CAN gateway code.
> Unfortunately I do not own any CAN hardware so this is compile
> tested only. I'm fairly confident though as the changes are
> mostly straight forward. I would appreciate if someone could
> run them through a test suite or something though.
> 
> 
> Thomas Graf (4):
>   can: Don't bump nlmsg_len manually
>   can: Use nla_policy to validate netlink attributes
>   can: Properly fill the netlink header when responding to RTM_GETROUTE
>   can: Remove pointless casts
> 
>  net/can/gw.c |   90 +++++++++++++++++++++------------------------------------
>  1 files changed, 33 insertions(+), 57 deletions(-)
> 


Hi Thomas,

thanks for the cleanups!

The can-gw was my first netlink based project and i did the best i knew.

From the first sight it looks good. I now also got behind the nla_policy
trick, which checks the minimal length too.

I'll test the patches this weekend with the virtual CAN interfaces (no CAN HW
needed), so that we probably catch the current development window.

Best regards,
Oliver

  parent reply	other threads:[~2012-07-05 16:16 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-05 12:19 [PATCH 0/4] can: gw: Netlink related fixes Thomas Graf
2012-07-05 12:19 ` [PATCH 1/4] can: Don't bump nlmsg_len manually Thomas Graf
2012-07-05 12:19 ` [PATCH 2/4] can: Use nla_policy to validate netlink attributes Thomas Graf
2012-07-05 12:19 ` [PATCH 3/4] can: Properly fill the netlink header when responding to RTM_GETROUTE Thomas Graf
2012-07-06 20:39   ` Oliver Hartkopp
2012-07-09  9:43     ` Thomas Graf
2012-07-09 16:28       ` Oliver Hartkopp
2012-07-07  9:18   ` Oliver Hartkopp
2012-07-10 15:29     ` Marc Kleine-Budde
2012-07-10 18:48       ` Oliver Hartkopp
2012-07-05 12:19 ` [PATCH 4/4] can: Remove pointless casts Thomas Graf
2012-07-05 16:16 ` Oliver Hartkopp [this message]
2012-07-10 20:55 ` [PATCH 0/4] can: gw: Netlink related fixes Marc Kleine-Budde

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=4FF5BDE9.7000001@hartkopp.net \
    --to=socketcan@hartkopp.net \
    --cc=linux-can@vger.kernel.org \
    --cc=tgraf@suug.ch \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.