blob: f4fb0efb26c6eb78f3cac21f5a331df7d8d41984 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
package com.lumaserv.bgp.protocol.attribute;
import lombok.Getter;
import lombok.Setter;
import java.nio.ByteBuffer;
@Setter
@Getter
public class ASPathLimitAttribute implements PathAttribute {
byte upperBound;
int as;
public ASPathLimitAttribute(byte typeCode, byte[] data) {
upperBound = data[0];
as = ((data[1] & 0xFF) << 24) |
((data[2] & 0xFF) << 16) |
((data[3] & 0xFF) << 8) |
(data[4] & 0xFF);
}
public byte getTypeCode() {
return 21;
}
public void build(ByteBuffer b) {
}
}
|