aboutsummaryrefslogtreecommitdiff
path: root/lib/netlink-protocol.h
AgeCommit message (Collapse)Author
2012-05-02Global replace of Nicira Networks.Raju Subramanian
Replaced all instances of Nicira Networks(, Inc) to Nicira, Inc. Feature #10593 Signed-off-by: Raju Subramanian <rsubramanian@nicira.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
2012-03-23treewide: Convert tabs to spaces in C source files written in OVS style.Ben Pfaff
The Open vSwitch C style doesn't use hard tabs. This commit doesn't touch files written in kernel style or that are imported from other projects where we want to minimize changes from upstream (the sflow files). Reported-by: Mehak Mahajan <mmahajan@nicira.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
2011-09-06netlink-protocol: Move CTRL_ATTR_MCAST definitions for consistency.Ben Pfaff
One of the current goals of netlink-protocol.h, for better or for worse, is to ensure that the same definitions are available whether a Linux kernel is in use or not. One of the ways it accomplishes this is by putting the conditional definitions that test for features missing in old kernels at the very end, after the dummy definitions used on non-Linux platforms. However, commit b0025c8389f "netlink-protocol: Define missing symbols" added new conditional definitions only in the Linux platform case, which means that those definitions won't be available on non-Linux platforms. This commit moves them to the end, instead. The symbols that are moved are only used from netlink-socket.c, which is only built on Linux platforms, so this does not change an actual bug. It only makes the location of the definitions consistent with prior practice.
2011-09-02netlink-protocol: Define missing symbols.Ethan Jackson
OVS fails to build with xenddk-56100build3926 because it has an outdated genetlink header.
2011-01-27netlink-socket: Add functions for joining and leaving multicast groups.Ben Pfaff
When this library was originally implemented, support for Linux 2.4 was important. The Netlink implementation in Linux only added support for joining and leaving multicast groups after a socket is bound as of Linux 2.6.14, so the library did not support it either. But the current version of Open vSwitch targets Linux 2.6.18 and over, so it's fine to add this support now, and this commit does so. This will be used more extensively in upcoming commits. Reviewed by Justin Pettit.
2010-12-10netlink: New function nl_attr_type().Ben Pfaff
Linux since v2.6.24 has a couple of couple of bits at the top of nla_type that one is apparently supposed to ignore. This commit starts doing that in Open vSwitch userspace. Acked-by: Jesse Gross <jesse@nicira.com>
2010-12-10netlink: Make netlink-protocol.h compatible with <linux/netlink.h>.Ben Pfaff
Until now, netlink-protocol.h and <linux/netlink.h> could not both be included by a single source file, because they contained conflicting definitions. This commit fixes the problem, by having netlink-protocol.h delegate to <linux/netlink.h> where it is available. Here's an example of the problem: odp-util.c includes both datapath-protocol.h and will need netlink-protocol.h also so that it can look through actions defined as struct nlattr. datapath-protocol.h includes <linux/if_link.h> for the definition of rtnl_link_stats64, and <linux/if_link.h> includes <linux/netlink.h>. Acked-by: Jesse Gross <jesse@nicira.com>
2009-06-15Update primary code license to Apache 2.0.Ben Pfaff
2009-07-08Import from old repository commit 61ef2b42a9c4ba8e1600f15bb0236765edc2ad45.v0.90.0Ben Pfaff