11 Oct, 2007

1 commit


11 Jul, 2007

1 commit


08 Jun, 2007

1 commit


26 Apr, 2007

1 commit

  • This patch introduces a new NLA_BINARY attribute policy type with the
    verification of simply checking the maximum length of the payload.

    It also fixes a small typo in the example.

    Signed-off-by: Johannes Berg
    Signed-off-by: Thomas Graf
    Signed-off-by: David S. Miller

    Johannes Berg
     

23 Sep, 2006

2 commits

  • Introduces a new attribute type NLA_NUL_STRING to support NUL
    terminated strings. Attributes of this kind require to carry
    a terminating NUL within the maximum specified in the policy.

    The `old' NLA_STRING which is not required to be NUL terminated
    is extended to provide means to specify a maximum length of the
    string.

    Aims at easing the pain with using nla_strlcpy() on temporary
    buffers.

    Signed-off-by: Thomas Graf
    Signed-off-by: David S. Miller

    Thomas Graf
     
  • Adds:
    nlmsg_get_pos() return current position in message
    nlmsg_trim() trim part of message
    nla_reserve_nohdr(skb, len) reserve room for an attribute w/o hdr
    nla_put_nohdr(skb, len, data) add attribute w/o hdr
    nla_find_nested() find attribute in nested attributes

    Fixes nlmsg_new() to take allocation flags and consider size.

    Signed-off-by: Thomas Graf
    Signed-off-by: David S. Miller

    Thomas Graf
     

01 Jul, 2006

1 commit


10 Nov, 2005

1 commit

  • Introduces a new type-safe interface for netlink message and
    attributes handling. The interface is fully binary compatible
    with the old interface towards userspace. Besides type safety,
    this interface features attribute validation capabilities,
    simplified message contstruction, and documentation.

    The resulting netlink code should be smaller, less error prone
    and easier to understand.

    Signed-off-by: Thomas Graf
    Signed-off-by: David S. Miller

    Thomas Graf