Jian Li | 10a0906 | 2016-07-26 23:58:50 +0900 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2016-present Open Networking Laboratory |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | package org.onosproject.lisp.msg.protocols; |
| 17 | |
Jian Li | 18f3bce | 2016-08-04 17:36:41 +0900 | [diff] [blame] | 18 | import com.google.common.base.Objects; |
Jian Li | 4767190 | 2016-08-11 01:18:18 +0900 | [diff] [blame] | 19 | import com.google.common.collect.ImmutableList; |
| 20 | import com.google.common.collect.Lists; |
Jian Li | 26069e2 | 2016-08-10 22:00:52 +0900 | [diff] [blame] | 21 | import io.netty.buffer.ByteBuf; |
Jian Li | 4767190 | 2016-08-11 01:18:18 +0900 | [diff] [blame] | 22 | import org.onlab.util.ByteOperator; |
Jian Li | 26069e2 | 2016-08-10 22:00:52 +0900 | [diff] [blame] | 23 | import org.onosproject.lisp.msg.exceptions.LispParseError; |
Jian Li | a7b394d | 2016-08-21 23:11:46 +0900 | [diff] [blame] | 24 | import org.onosproject.lisp.msg.exceptions.LispReaderException; |
Jian Li | edc5db1 | 2016-08-23 17:30:19 +0900 | [diff] [blame] | 25 | import org.onosproject.lisp.msg.exceptions.LispWriterException; |
Jian Li | 10a0906 | 2016-07-26 23:58:50 +0900 | [diff] [blame] | 26 | import org.onosproject.lisp.msg.types.LispAfiAddress; |
| 27 | |
Jian Li | 4767190 | 2016-08-11 01:18:18 +0900 | [diff] [blame] | 28 | import java.util.List; |
| 29 | |
Jian Li | 18f3bce | 2016-08-04 17:36:41 +0900 | [diff] [blame] | 30 | import static com.google.common.base.MoreObjects.toStringHelper; |
Jian Li | edc5db1 | 2016-08-23 17:30:19 +0900 | [diff] [blame] | 31 | import static org.onosproject.lisp.msg.types.LispAfiAddress.AfiAddressWriter; |
| 32 | import static org.onosproject.lisp.msg.protocols.DefaultLispLocatorRecord.LocatorRecordWriter; |
Jian Li | 18f3bce | 2016-08-04 17:36:41 +0900 | [diff] [blame] | 33 | |
Jian Li | 10a0906 | 2016-07-26 23:58:50 +0900 | [diff] [blame] | 34 | /** |
| 35 | * Default implementation of LispMapRecord. |
| 36 | */ |
Jian Li | 631e62a | 2016-08-03 22:42:00 +0900 | [diff] [blame] | 37 | public final class DefaultLispMapRecord implements LispMapRecord { |
Jian Li | 10a0906 | 2016-07-26 23:58:50 +0900 | [diff] [blame] | 38 | |
Jian Li | 631e62a | 2016-08-03 22:42:00 +0900 | [diff] [blame] | 39 | private final int recordTtl; |
| 40 | private final int locatorCount; |
| 41 | private final byte maskLength; |
| 42 | private final LispMapReplyAction action; |
| 43 | private final boolean authoritative; |
| 44 | private final short mapVersionNumber; |
| 45 | private final LispAfiAddress eidPrefixAfi; |
Jian Li | 4767190 | 2016-08-11 01:18:18 +0900 | [diff] [blame] | 46 | private final List<LispLocatorRecord> locatorRecords; |
Jian Li | 10a0906 | 2016-07-26 23:58:50 +0900 | [diff] [blame] | 47 | |
Jian Li | 631e62a | 2016-08-03 22:42:00 +0900 | [diff] [blame] | 48 | /** |
| 49 | * A private constructor that protects object instantiation from external. |
| 50 | * |
| 51 | * @param recordTtl record time-to-live value |
| 52 | * @param locatorCount locator's count number |
| 53 | * @param maskLength mask length |
| 54 | * @param action lisp map reply action |
| 55 | * @param authoritative authoritative flag |
| 56 | * @param mapVersionNumber map version number |
| 57 | * @param eidPrefixAfi EID prefix AFI address |
| 58 | */ |
| 59 | private DefaultLispMapRecord(int recordTtl, int locatorCount, byte maskLength, |
| 60 | LispMapReplyAction action, boolean authoritative, |
Jian Li | 4767190 | 2016-08-11 01:18:18 +0900 | [diff] [blame] | 61 | short mapVersionNumber, LispAfiAddress eidPrefixAfi, |
| 62 | List<LispLocatorRecord> locatorRecords) { |
Jian Li | 631e62a | 2016-08-03 22:42:00 +0900 | [diff] [blame] | 63 | this.recordTtl = recordTtl; |
| 64 | this.locatorCount = locatorCount; |
| 65 | this.maskLength = maskLength; |
| 66 | this.action = action; |
| 67 | this.authoritative = authoritative; |
| 68 | this.mapVersionNumber = mapVersionNumber; |
| 69 | this.eidPrefixAfi = eidPrefixAfi; |
Jian Li | 4767190 | 2016-08-11 01:18:18 +0900 | [diff] [blame] | 70 | this.locatorRecords = locatorRecords; |
Jian Li | 631e62a | 2016-08-03 22:42:00 +0900 | [diff] [blame] | 71 | } |
| 72 | |
| 73 | @Override |
Jian Li | 10a0906 | 2016-07-26 23:58:50 +0900 | [diff] [blame] | 74 | public int getRecordTtl() { |
| 75 | return recordTtl; |
| 76 | } |
| 77 | |
Jian Li | 631e62a | 2016-08-03 22:42:00 +0900 | [diff] [blame] | 78 | @Override |
Jian Li | 10a0906 | 2016-07-26 23:58:50 +0900 | [diff] [blame] | 79 | public int getLocatorCount() { |
| 80 | return locatorCount; |
| 81 | } |
| 82 | |
Jian Li | 631e62a | 2016-08-03 22:42:00 +0900 | [diff] [blame] | 83 | @Override |
Jian Li | 10a0906 | 2016-07-26 23:58:50 +0900 | [diff] [blame] | 84 | public byte getMaskLength() { |
| 85 | return maskLength; |
| 86 | } |
| 87 | |
Jian Li | 631e62a | 2016-08-03 22:42:00 +0900 | [diff] [blame] | 88 | @Override |
Jian Li | 10a0906 | 2016-07-26 23:58:50 +0900 | [diff] [blame] | 89 | public LispMapReplyAction getAction() { |
| 90 | return action; |
| 91 | } |
| 92 | |
Jian Li | 631e62a | 2016-08-03 22:42:00 +0900 | [diff] [blame] | 93 | @Override |
Jian Li | 10a0906 | 2016-07-26 23:58:50 +0900 | [diff] [blame] | 94 | public boolean isAuthoritative() { |
| 95 | return authoritative; |
| 96 | } |
| 97 | |
Jian Li | 631e62a | 2016-08-03 22:42:00 +0900 | [diff] [blame] | 98 | @Override |
Jian Li | 10a0906 | 2016-07-26 23:58:50 +0900 | [diff] [blame] | 99 | public short getMapVersionNumber() { |
| 100 | return mapVersionNumber; |
| 101 | } |
| 102 | |
Jian Li | 631e62a | 2016-08-03 22:42:00 +0900 | [diff] [blame] | 103 | @Override |
Jian Li | 10a0906 | 2016-07-26 23:58:50 +0900 | [diff] [blame] | 104 | public LispAfiAddress getEidPrefixAfi() { |
| 105 | return eidPrefixAfi; |
| 106 | } |
| 107 | |
Jian Li | 18f3bce | 2016-08-04 17:36:41 +0900 | [diff] [blame] | 108 | @Override |
Jian Li | 4767190 | 2016-08-11 01:18:18 +0900 | [diff] [blame] | 109 | public List<LispLocatorRecord> getLocators() { |
| 110 | return ImmutableList.copyOf(locatorRecords); |
| 111 | } |
| 112 | |
| 113 | @Override |
| 114 | public void writeTo(ByteBuf byteBuf) { |
| 115 | |
| 116 | } |
| 117 | |
| 118 | @Override |
Jian Li | 18f3bce | 2016-08-04 17:36:41 +0900 | [diff] [blame] | 119 | public String toString() { |
| 120 | return toStringHelper(this) |
| 121 | .add("record TTL", recordTtl) |
| 122 | .add("locatorCount", locatorCount) |
| 123 | .add("maskLength", maskLength) |
| 124 | .add("action", action) |
| 125 | .add("authoritative", authoritative) |
| 126 | .add("mapVersionNumber", mapVersionNumber) |
Jian Li | 4767190 | 2016-08-11 01:18:18 +0900 | [diff] [blame] | 127 | .add("EID prefix AFI address", eidPrefixAfi) |
| 128 | .add("locator records", locatorRecords).toString(); |
| 129 | |
Jian Li | 18f3bce | 2016-08-04 17:36:41 +0900 | [diff] [blame] | 130 | } |
| 131 | |
| 132 | @Override |
| 133 | public boolean equals(Object o) { |
| 134 | if (this == o) { |
| 135 | return true; |
| 136 | } |
| 137 | if (o == null || getClass() != o.getClass()) { |
| 138 | return false; |
| 139 | } |
| 140 | DefaultLispMapRecord that = (DefaultLispMapRecord) o; |
| 141 | return Objects.equal(recordTtl, that.recordTtl) && |
| 142 | Objects.equal(locatorCount, that.locatorCount) && |
| 143 | Objects.equal(maskLength, that.maskLength) && |
| 144 | Objects.equal(action, that.action) && |
| 145 | Objects.equal(authoritative, that.authoritative) && |
| 146 | Objects.equal(mapVersionNumber, that.mapVersionNumber) && |
Jian Li | 4767190 | 2016-08-11 01:18:18 +0900 | [diff] [blame] | 147 | Objects.equal(eidPrefixAfi, that.eidPrefixAfi) && |
| 148 | Objects.equal(locatorRecords, that.locatorRecords); |
Jian Li | 18f3bce | 2016-08-04 17:36:41 +0900 | [diff] [blame] | 149 | } |
| 150 | |
| 151 | @Override |
| 152 | public int hashCode() { |
| 153 | return Objects.hashCode(recordTtl, locatorCount, maskLength, action, |
Jian Li | 4767190 | 2016-08-11 01:18:18 +0900 | [diff] [blame] | 154 | authoritative, mapVersionNumber, eidPrefixAfi, locatorRecords); |
Jian Li | 18f3bce | 2016-08-04 17:36:41 +0900 | [diff] [blame] | 155 | } |
| 156 | |
Jian Li | 10a0906 | 2016-07-26 23:58:50 +0900 | [diff] [blame] | 157 | public static final class DefaultMapRecordBuilder implements MapRecordBuilder { |
| 158 | |
Jian Li | 631e62a | 2016-08-03 22:42:00 +0900 | [diff] [blame] | 159 | private int recordTtl; |
| 160 | private int locatorCount; |
| 161 | private byte maskLength; |
| 162 | private LispMapReplyAction action; |
| 163 | private boolean authoritative; |
| 164 | private short mapVersionNumber; |
| 165 | private LispAfiAddress eidPrefixAfi; |
Jian Li | 4767190 | 2016-08-11 01:18:18 +0900 | [diff] [blame] | 166 | private List<LispLocatorRecord> locatorRecords; |
Jian Li | 631e62a | 2016-08-03 22:42:00 +0900 | [diff] [blame] | 167 | |
Jian Li | 10a0906 | 2016-07-26 23:58:50 +0900 | [diff] [blame] | 168 | @Override |
| 169 | public MapRecordBuilder withRecordTtl(int recordTtl) { |
Jian Li | 631e62a | 2016-08-03 22:42:00 +0900 | [diff] [blame] | 170 | this.recordTtl = recordTtl; |
| 171 | return this; |
Jian Li | 10a0906 | 2016-07-26 23:58:50 +0900 | [diff] [blame] | 172 | } |
| 173 | |
| 174 | @Override |
| 175 | public MapRecordBuilder withLocatorCount(int locatorCount) { |
Jian Li | 631e62a | 2016-08-03 22:42:00 +0900 | [diff] [blame] | 176 | this.locatorCount = locatorCount; |
| 177 | return this; |
Jian Li | 10a0906 | 2016-07-26 23:58:50 +0900 | [diff] [blame] | 178 | } |
| 179 | |
| 180 | @Override |
| 181 | public MapRecordBuilder withMaskLength(byte maskLength) { |
Jian Li | 631e62a | 2016-08-03 22:42:00 +0900 | [diff] [blame] | 182 | this.maskLength = maskLength; |
| 183 | return this; |
Jian Li | 10a0906 | 2016-07-26 23:58:50 +0900 | [diff] [blame] | 184 | } |
| 185 | |
| 186 | @Override |
| 187 | public MapRecordBuilder withAction(LispMapReplyAction action) { |
Jian Li | 631e62a | 2016-08-03 22:42:00 +0900 | [diff] [blame] | 188 | this.action = action; |
| 189 | return this; |
Jian Li | 10a0906 | 2016-07-26 23:58:50 +0900 | [diff] [blame] | 190 | } |
| 191 | |
| 192 | @Override |
| 193 | public MapRecordBuilder withAuthoritative(boolean authoritative) { |
Jian Li | 631e62a | 2016-08-03 22:42:00 +0900 | [diff] [blame] | 194 | this.authoritative = authoritative; |
| 195 | return this; |
Jian Li | 10a0906 | 2016-07-26 23:58:50 +0900 | [diff] [blame] | 196 | } |
| 197 | |
| 198 | @Override |
| 199 | public MapRecordBuilder withMapVersionNumber(short mapVersionNumber) { |
Jian Li | 631e62a | 2016-08-03 22:42:00 +0900 | [diff] [blame] | 200 | this.mapVersionNumber = mapVersionNumber; |
| 201 | return this; |
Jian Li | 10a0906 | 2016-07-26 23:58:50 +0900 | [diff] [blame] | 202 | } |
| 203 | |
| 204 | @Override |
| 205 | public MapRecordBuilder withEidPrefixAfi(LispAfiAddress prefix) { |
Jian Li | 631e62a | 2016-08-03 22:42:00 +0900 | [diff] [blame] | 206 | this.eidPrefixAfi = prefix; |
| 207 | return this; |
| 208 | } |
| 209 | |
| 210 | @Override |
Jian Li | 4767190 | 2016-08-11 01:18:18 +0900 | [diff] [blame] | 211 | public MapRecordBuilder withLocators(List<LispLocatorRecord> records) { |
Jian Li | e4ba2a4 | 2016-08-29 20:24:15 +0900 | [diff] [blame^] | 212 | if (records != null) { |
| 213 | this.locatorRecords = ImmutableList.copyOf(records); |
| 214 | } else { |
| 215 | this.locatorRecords = Lists.newArrayList(); |
| 216 | } |
Jian Li | 4767190 | 2016-08-11 01:18:18 +0900 | [diff] [blame] | 217 | return this; |
| 218 | } |
| 219 | |
| 220 | @Override |
Jian Li | 631e62a | 2016-08-03 22:42:00 +0900 | [diff] [blame] | 221 | public LispMapRecord build() { |
Jian Li | e4ba2a4 | 2016-08-29 20:24:15 +0900 | [diff] [blame^] | 222 | |
| 223 | if (locatorRecords == null) { |
| 224 | locatorRecords = Lists.newArrayList(); |
| 225 | } |
| 226 | |
Jian Li | 631e62a | 2016-08-03 22:42:00 +0900 | [diff] [blame] | 227 | return new DefaultLispMapRecord(recordTtl, locatorCount, maskLength, |
Jian Li | 4767190 | 2016-08-11 01:18:18 +0900 | [diff] [blame] | 228 | action, authoritative, mapVersionNumber, eidPrefixAfi, locatorRecords); |
Jian Li | 10a0906 | 2016-07-26 23:58:50 +0900 | [diff] [blame] | 229 | } |
| 230 | } |
Jian Li | 26069e2 | 2016-08-10 22:00:52 +0900 | [diff] [blame] | 231 | |
| 232 | /** |
Jian Li | 4767190 | 2016-08-11 01:18:18 +0900 | [diff] [blame] | 233 | * A LISP message reader for MapRecord portion. |
Jian Li | 26069e2 | 2016-08-10 22:00:52 +0900 | [diff] [blame] | 234 | */ |
Jian Li | 4767190 | 2016-08-11 01:18:18 +0900 | [diff] [blame] | 235 | public static final class MapRecordReader implements LispMessageReader<LispMapRecord> { |
| 236 | |
| 237 | private static final int AUTHORITATIVE_INDEX = 4; |
| 238 | private static final int RESERVED_SKIP_LENGTH = 1; |
Jian Li | 26069e2 | 2016-08-10 22:00:52 +0900 | [diff] [blame] | 239 | |
Jian Li | e4ba2a4 | 2016-08-29 20:24:15 +0900 | [diff] [blame^] | 240 | private static final int REPLY_ACTION_SHIFT_BIT = 5; |
| 241 | |
Jian Li | 26069e2 | 2016-08-10 22:00:52 +0900 | [diff] [blame] | 242 | @Override |
Jian Li | a7b394d | 2016-08-21 23:11:46 +0900 | [diff] [blame] | 243 | public LispMapRecord readFrom(ByteBuf byteBuf) throws LispParseError, LispReaderException { |
Jian Li | 4767190 | 2016-08-11 01:18:18 +0900 | [diff] [blame] | 244 | |
| 245 | // Record TTL -> 32 bits |
| 246 | int recordTtl = byteBuf.readInt(); |
| 247 | |
| 248 | // Locator count -> 8 bits |
Jian Li | e4ba2a4 | 2016-08-29 20:24:15 +0900 | [diff] [blame^] | 249 | int locatorCount = byteBuf.readUnsignedByte(); |
Jian Li | 4767190 | 2016-08-11 01:18:18 +0900 | [diff] [blame] | 250 | |
| 251 | // EID mask length -> 8 bits |
| 252 | byte maskLength = (byte) byteBuf.readUnsignedByte(); |
| 253 | |
Jian Li | e4ba2a4 | 2016-08-29 20:24:15 +0900 | [diff] [blame^] | 254 | byte actionWithFlag = (byte) byteBuf.readUnsignedByte(); |
Jian Li | 4767190 | 2016-08-11 01:18:18 +0900 | [diff] [blame] | 255 | |
Jian Li | e4ba2a4 | 2016-08-29 20:24:15 +0900 | [diff] [blame^] | 256 | // action -> 3 bit |
| 257 | int actionByte = actionWithFlag >> REPLY_ACTION_SHIFT_BIT; |
| 258 | LispMapReplyAction action = LispMapReplyAction.valueOf(actionByte); |
| 259 | if (action == null) { |
| 260 | action = LispMapReplyAction.NoAction; |
| 261 | } |
Jian Li | 4767190 | 2016-08-11 01:18:18 +0900 | [diff] [blame] | 262 | |
| 263 | // authoritative flag -> 1 bit |
Jian Li | e4ba2a4 | 2016-08-29 20:24:15 +0900 | [diff] [blame^] | 264 | boolean authoritative = ByteOperator.getBit((byte) (actionWithFlag >> AUTHORITATIVE_INDEX), 0); |
Jian Li | 4767190 | 2016-08-11 01:18:18 +0900 | [diff] [blame] | 265 | |
| 266 | // let's skip the reserved field |
| 267 | byteBuf.skipBytes(RESERVED_SKIP_LENGTH); |
| 268 | |
| 269 | // Map version number -> 12 bits, we treat Rsvd field is all zero |
| 270 | short mapVersionNumber = (short) byteBuf.readUnsignedShort(); |
| 271 | |
Jian Li | a7b394d | 2016-08-21 23:11:46 +0900 | [diff] [blame] | 272 | LispAfiAddress eidPrefixAfi = new LispAfiAddress.AfiAddressReader().readFrom(byteBuf); |
Jian Li | 4767190 | 2016-08-11 01:18:18 +0900 | [diff] [blame] | 273 | |
| 274 | List<LispLocatorRecord> locators = Lists.newArrayList(); |
| 275 | for (int i = 0; i < locatorCount; i++) { |
| 276 | locators.add(new DefaultLispLocatorRecord.LocatorRecordReader().readFrom(byteBuf)); |
| 277 | } |
| 278 | |
| 279 | return new DefaultMapRecordBuilder() |
| 280 | .withRecordTtl(recordTtl) |
| 281 | .withLocatorCount(locatorCount) |
| 282 | .withMaskLength(maskLength) |
Jian Li | e4ba2a4 | 2016-08-29 20:24:15 +0900 | [diff] [blame^] | 283 | .withAction(action) |
Jian Li | 4767190 | 2016-08-11 01:18:18 +0900 | [diff] [blame] | 284 | .withAuthoritative(authoritative) |
| 285 | .withMapVersionNumber(mapVersionNumber) |
| 286 | .withLocators(locators) |
Jian Li | a7b394d | 2016-08-21 23:11:46 +0900 | [diff] [blame] | 287 | .withEidPrefixAfi(eidPrefixAfi) |
Jian Li | 4767190 | 2016-08-11 01:18:18 +0900 | [diff] [blame] | 288 | .build(); |
Jian Li | 26069e2 | 2016-08-10 22:00:52 +0900 | [diff] [blame] | 289 | } |
| 290 | } |
Jian Li | edc5db1 | 2016-08-23 17:30:19 +0900 | [diff] [blame] | 291 | |
| 292 | /** |
| 293 | * A LISP message writer for MapRecord portion. |
| 294 | */ |
| 295 | public static final class MapRecordWriter implements LispMessageWriter<LispMapRecord> { |
| 296 | |
| 297 | private static final int REPLY_ACTION_SHIFT_BIT = 5; |
| 298 | private static final int AUTHORITATIVE_FLAG_SHIFT_BIT = 4; |
| 299 | |
| 300 | private static final int ENABLE_BIT = 1; |
| 301 | private static final int DISABLE_BIT = 0; |
| 302 | |
| 303 | @Override |
| 304 | public void writeTo(ByteBuf byteBuf, LispMapRecord message) throws LispWriterException { |
| 305 | |
| 306 | // record TTL |
| 307 | byteBuf.writeInt(message.getRecordTtl()); |
| 308 | |
| 309 | // locator count |
| 310 | byteBuf.writeByte((byte) message.getLocatorCount()); |
| 311 | |
| 312 | // EID mask length |
| 313 | byteBuf.writeByte(message.getMaskLength()); |
| 314 | |
| 315 | // reply action |
| 316 | byte action = (byte) (message.getAction().getAction() << REPLY_ACTION_SHIFT_BIT); |
| 317 | |
| 318 | // authoritative bit |
| 319 | byte authoritative = DISABLE_BIT; |
| 320 | if (message.isAuthoritative()) { |
Jian Li | e4ba2a4 | 2016-08-29 20:24:15 +0900 | [diff] [blame^] | 321 | authoritative = ENABLE_BIT << AUTHORITATIVE_FLAG_SHIFT_BIT; |
Jian Li | edc5db1 | 2016-08-23 17:30:19 +0900 | [diff] [blame] | 322 | } |
Jian Li | edc5db1 | 2016-08-23 17:30:19 +0900 | [diff] [blame] | 323 | |
| 324 | byteBuf.writeByte((byte) (action + authoritative)); |
| 325 | |
| 326 | // fill zero into reserved field |
| 327 | byteBuf.writeByte((short) 0); |
| 328 | |
| 329 | // map version number |
| 330 | byteBuf.writeShort(message.getMapVersionNumber()); |
| 331 | |
| 332 | // EID prefix AFI with EID prefix |
| 333 | AfiAddressWriter afiAddressWriter = new AfiAddressWriter(); |
| 334 | afiAddressWriter.writeTo(byteBuf, message.getEidPrefixAfi()); |
| 335 | |
| 336 | // serialize locator |
| 337 | LocatorRecordWriter recordWriter = new LocatorRecordWriter(); |
| 338 | List<LispLocatorRecord> locators = message.getLocators(); |
| 339 | for (int i = 0; i < locators.size(); i++) { |
| 340 | recordWriter.writeTo(byteBuf, locators.get(i)); |
| 341 | } |
| 342 | } |
| 343 | } |
Jian Li | 10a0906 | 2016-07-26 23:58:50 +0900 | [diff] [blame] | 344 | } |