path: root/include
diff options
authorPatrick McHardy <>2014-01-08 13:02:15 +0000
committerPatrick McHardy <>2014-01-08 13:02:15 +0000
commitdccc746af16bdc3e85610e067eebc951b75b73f1 (patch)
tree2bfd3b0180667989d00c79955d1883889db8f27f /include
parent77ef4d83c8d030b183ff763605b2c3026545fc9c (diff)
proto: add helper function to update protocol context
Add a helper function which is to be used to update the protocol update. Signed-off-by: Patrick McHardy <<
Diffstat (limited to 'include')
1 files changed, 3 insertions, 0 deletions
diff --git a/include/proto.h b/include/proto.h
index 037ef09e..de58d4cc 100644
--- a/include/proto.h
+++ b/include/proto.h
@@ -122,6 +122,9 @@ struct proto_ctx {
extern void proto_ctx_init(struct proto_ctx *ctx, unsigned int family);
+extern void proto_ctx_update(struct proto_ctx *ctx, enum proto_bases base,
+ const struct location *loc,
+ const struct proto_desc *desc);
extern const struct proto_desc *proto_find_upper(const struct proto_desc *base,
unsigned int num);
extern int proto_find_num(const struct proto_desc *base,