summaryrefslogtreecommitdiff
path: root/src/main/java/com/lumaserv/bgp/protocol/attribute/DevelopmentAttribute.java
blob: b4cf21389d648cd969e813c1e19935ecdb007f46 (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
package com.lumaserv.bgp.protocol.attribute;

import lombok.Getter;
import lombok.Setter;

import java.nio.ByteBuffer;

@Getter
@Setter
public class DevelopmentAttribute implements PathAttribute {

    byte[] data;

    public DevelopmentAttribute(byte typeCode, byte[] data) {
        this.data = data;
    }

    public void build(ByteBuffer b) {
        b.put(data);
    }

    public byte getTypeCode() {
        return (byte) 255;
    }

}