summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorThomas Graf <tgraf@suug.ch>2010-10-28 22:14:34 (GMT)
committerThomas Graf <tgraf@suug.ch>2010-10-28 22:14:34 (GMT)
commit0fe5b29423c1ad97012a865f1cd8b4f7ff37f143 (patch)
tree2776ab0e83cea83f4582b0f2313901a7c4c918be /include
parent65e386c8ba490d405f539322a12e1f1c7ea2eb5c (diff)
downloadlibnl-0fe5b29423c1ad97012a865f1cd8b4f7ff37f143.zip
libnl-0fe5b29423c1ad97012a865f1cd8b4f7ff37f143.tar.gz
libnl-0fe5b29423c1ad97012a865f1cd8b4f7ff37f143.tar.bz2
Extended pktloc to support nbyte locations for ipv6, etc.
The alignment column/field now also takes a number, specifying the length in bytes of the field described by the location
Diffstat (limited to 'include')
-rw-r--r--include/netlink/route/pktloc.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/netlink/route/pktloc.h b/include/netlink/route/pktloc.h
index dbca8dc..ad8c66c 100644
--- a/include/netlink/route/pktloc.h
+++ b/include/netlink/route/pktloc.h
@@ -25,9 +25,9 @@ extern "C" {
struct rtnl_pktloc
{
char * name;
- uint8_t align;
uint8_t layer;
uint16_t offset;
+ uint16_t align;
uint32_t mask;
uint32_t refcnt;
@@ -35,6 +35,7 @@ struct rtnl_pktloc
};
extern int rtnl_pktloc_lookup(const char *, struct rtnl_pktloc **);
+extern struct rtnl_pktloc *rtnl_pktloc_alloc(void);
extern void rtnl_pktloc_put(struct rtnl_pktloc *);
extern int rtnl_pktloc_add(struct rtnl_pktloc *);
extern void rtnl_pktloc_foreach(void (*cb)(struct rtnl_pktloc *, void *),