commit | 4f4c5343660c8dae0f7fd0c00560e3bd0395ecb2 | [log] [tgz] |
---|---|---|
author | Matteo Scandolo <matteo.scandolo@gmail.com> | Fri Oct 23 10:17:00 2020 -0700 |
committer | Pier Luigi Ventre <pier@opennetworking.org> | Sat Oct 24 08:22:19 2020 +0000 |
tree | 775fc6c29e5bc7680c0375a05a7f1c95148349da | |
parent | 4027cac71993e8696091a9b3ca75ffe8df5a8e16 [diff] |
Adding helper method in RADIUS packet Change-Id: Ia4641a89699ffbc2dd1a591f323829399b728e6b
diff --git a/utils/misc/src/main/java/org/onlab/packet/RADIUS.java b/utils/misc/src/main/java/org/onlab/packet/RADIUS.java index 3f3b517..0553b91 100644 --- a/utils/misc/src/main/java/org/onlab/packet/RADIUS.java +++ b/utils/misc/src/main/java/org/onlab/packet/RADIUS.java
@@ -105,6 +105,15 @@ } /** + * Get the identifier in a readable format. + * + * @return identifier + */ + public int getReadableIdentifier() { + return this.identifier & 0xff; + } + + /** * Sets the identifier. * * @param identifier identifier