public static class HdlcPppPacket.Builder extends AbstractPacket.AbstractBuilder
Constructor and Description |
---|
HdlcPppPacket.Builder() |
Modifier and Type | Method and Description |
---|---|
HdlcPppPacket.Builder |
address(byte address) |
HdlcPppPacket |
build()
Build a packet object using values set to this object.
|
HdlcPppPacket.Builder |
control(byte control) |
Packet.Builder |
getPayloadBuilder()
Get the payload builder of this object.
|
HdlcPppPacket.Builder |
pad(byte[] pad) |
HdlcPppPacket.Builder |
payloadBuilder(Packet.Builder payloadBuilder)
Set the payload builder.
|
HdlcPppPacket.Builder |
protocol(PppDllProtocol protocol) |
get, getOuterOf, iterator
public HdlcPppPacket.Builder address(byte address)
address
- 0xFF by default. Don't change it to comply with the protocol.public HdlcPppPacket.Builder control(byte control)
control
- 0x03 by default. Don't change it to comply with the protocol.public HdlcPppPacket.Builder protocol(PppDllProtocol protocol)
protocol
- protocolpublic HdlcPppPacket.Builder payloadBuilder(Packet.Builder payloadBuilder)
Packet.Builder
payloadBuilder
in interface Packet.Builder
payloadBuilder
- a Builder object to setpublic HdlcPppPacket.Builder pad(byte[] pad)
pad
- padpublic HdlcPppPacket build()
Packet.Builder
build
in interface Packet.Builder
build
in class AbstractPacket.AbstractBuilder
public Packet.Builder getPayloadBuilder()
Packet.Builder
getPayloadBuilder
in interface Packet.Builder
getPayloadBuilder
in class AbstractPacket.AbstractBuilder
Copyright © 2011–2016 Pcap4J.org. All rights reserved.