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

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class OriginAttribute implements PathAttribute {

    byte origin;

    public OriginAttribute(byte typeCode, byte[] data) {
        origin = data[0];
    }

    public byte getTypeCode() {
        return 1;
    }

    public byte[] build() {
        return new byte[0];
    }

}