From c04c6ed4af36afa414f6f9a1828a131c0d30c4ce Mon Sep 17 00:00:00 2001 From: Max Date: Thu, 10 Nov 2016 18:29:50 +0100 Subject: abisip-find: use protocol constant Use library define instead of directly using hardcoded value. Change-Id: Ie9b8bc55bf40cf005434f27e205d47ffab959413 --- openbsc/src/ipaccess/abisip-find.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'openbsc/src/ipaccess') diff --git a/openbsc/src/ipaccess/abisip-find.c b/openbsc/src/ipaccess/abisip-find.c index 87c6e503f..9fe7df680 100644 --- a/openbsc/src/ipaccess/abisip-find.c +++ b/openbsc/src/ipaccess/abisip-find.c @@ -138,8 +138,8 @@ static int read_response(int fd) if (len < 0) return len; - /* 2 bytes length, 1 byte protocol (0xfe) */ - if (buf[2] != 0xfe) + /* 2 bytes length, 1 byte protocol */ + if (buf[2] != IPAC_PROTO_IPACCESS) return 0; if (buf[4] != IPAC_MSGT_ID_RESP) -- cgit v1.2.3