summaryrefslogtreecommitdiff
path: root/accel-pppd/ctrl/l2tp/packet.c
diff options
context:
space:
mode:
authorGuillaume Nault <g.nault@alphalink.fr>2013-02-13 13:49:10 +0100
committerKozlov Dmitry <xeb@mail.ru>2013-02-13 17:24:03 +0400
commita91e53c79225217513d08b186d6d03f8306a559e (patch)
treebb1793731ec1eac115e620c0e8737168e89b9182 /accel-pppd/ctrl/l2tp/packet.c
parentfc30dc8a5461c5f1b97faef85d12ecc8aa759723 (diff)
downloadaccel-ppp-a91e53c79225217513d08b186d6d03f8306a559e.tar.gz
accel-ppp-a91e53c79225217513d08b186d6d03f8306a559e.zip
l2tp: Add const qualifier for l2tp_packet_print()
Declare parameters and variables of l2tp_packet_print() as constant. Also update l2tp_dict_find_value() prototype to accept options passed by l2tp_packet_print(). Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
Diffstat (limited to 'accel-pppd/ctrl/l2tp/packet.c')
-rw-r--r--accel-pppd/ctrl/l2tp/packet.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/accel-pppd/ctrl/l2tp/packet.c b/accel-pppd/ctrl/l2tp/packet.c
index c9de3c7..3385956 100644
--- a/accel-pppd/ctrl/l2tp/packet.c
+++ b/accel-pppd/ctrl/l2tp/packet.c
@@ -19,10 +19,11 @@ static mempool_t attr_pool;
static mempool_t pack_pool;
static mempool_t buf_pool;
-void l2tp_packet_print(struct l2tp_packet_t *pack, void (*print)(const char *fmt, ...))
+void l2tp_packet_print(const struct l2tp_packet_t *pack,
+ void (*print)(const char *fmt, ...))
{
- struct l2tp_attr_t *attr;
- struct l2tp_dict_value_t *val;
+ const struct l2tp_attr_t *attr;
+ const struct l2tp_dict_value_t *val;
if (pack->hdr.ver == 2) {
print("[L2TP tid=%u sid=%u", ntohs(pack->hdr.tid), ntohs(pack->hdr.sid));