aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2016-11-10 18:29:50 +0100
committerHarald Welte <laforge@gnumonks.org>2016-11-15 22:35:38 +0000
commitc04c6ed4af36afa414f6f9a1828a131c0d30c4ce (patch)
tree144c732de0386b71eaec94646b2aeac367da5a0f /openbsc
parent7d3093506ad9621caf2a5af11602ec081ab76480 (diff)
abisip-find: use protocol constant
Use library define instead of directly using hardcoded value. Change-Id: Ie9b8bc55bf40cf005434f27e205d47ffab959413
Diffstat (limited to 'openbsc')
-rw-r--r--openbsc/src/ipaccess/abisip-find.c4
1 files changed, 2 insertions, 2 deletions
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)