Permalink
Browse files

fix type declaration (refs #549)

  • Loading branch information...
1 parent 2d7f6fc commit 995aee370e6ad0e59a4f11768aa92a2ce9a2ad63 @RoadRunnr RoadRunnr committed Aug 15, 2011
Showing with 8 additions and 8 deletions.
  1. +8 −8 include/netlink.hrl
View
16 include/netlink.hrl
@@ -22,19 +22,19 @@
-define(NETLINK_SCSITRANSPORT, 18).
-define(NETLINK_ECRYPTFS, 19).
--type flags() :: list(atom()).
+-type nl_flags() :: list(atom()).
-type family() :: atom().
-type protocol() :: atom().
-type arphdr() :: atom().
-type ifindex() :: non_neg_integer().
-type resid() :: non_neg_integer().
-type nla() :: list({atom(),term()}).
-type ctnetlink_msg() :: {family(),non_neg_integer(),non_neg_integer(),list()}.
--type rtnetlink_neigh() :: {family(),ifindex(),non_neg_integer(),flags(),non_neg_integer(),nla()}.
--type rtnetlink_route() :: {family(),non_neg_integer(),non_neg_integer(),non_neg_integer(),non_neg_integer(),protocol(),non_neg_integer(),non_neg_integer(),flags(),nla()}.
--type rtnetlink_addr() :: {family(),non_neg_integer(),flags(),non_neg_integer(),non_neg_integer(),nla()}.
--type rtnetlink_link() :: {family(),arphdr(),non_neg_integer(),flags(),flags(),nla()}.
--type rtnetlink_prefix() :: {family(),ifindex(),non_neg_integer(),non_neg_integer(),flags(),nla()}.
+-type rtnetlink_neigh() :: {family(),ifindex(),non_neg_integer(),nl_flags(),non_neg_integer(),nla()}.
+-type rtnetlink_route() :: {family(),non_neg_integer(),non_neg_integer(),non_neg_integer(),non_neg_integer(),protocol(),non_neg_integer(),non_neg_integer(),nl_flags(),nla()}.
+-type rtnetlink_addr() :: {family(),non_neg_integer(),nl_flags(),non_neg_integer(),non_neg_integer(),nla()}.
+-type rtnetlink_link() :: {family(),arphdr(),non_neg_integer(),nl_flags(),nl_flags(),nla()}.
+-type rtnetlink_prefix() :: {family(),ifindex(),non_neg_integer(),non_neg_integer(),nl_flags(),nla()}.
-type rtnetlink_msg() :: rtnetlink_neigh() | rtnetlink_route() | rtnetlink_addr() | rtnetlink_link() | rtnetlink_prefix().
-record(rtnetlink, {
@@ -47,15 +47,15 @@
-record(ctnetlink, {
type ::'new'|'get'|'delete'|'get_ctrzero',
- flags ::flags(),
+ flags ::nl_flags(),
seq ::non_neg_integer(),
pid ::non_neg_integer(),
msg ::ctnetlink_msg()
}).
-record(ctnetlink_exp, {
type ::'new'|'get'|'delete'|'get_ctrzero',
- flags ::flags(),
+ flags ::nl_flags(),
seq ::non_neg_integer(),
pid ::non_neg_integer(),
msg ::ctnetlink_msg()

0 comments on commit 995aee3

Please sign in to comment.