36#include <tins/macros.h>
37#include <tins/endianness.h>
38#include <tins/ip_address.h>
39#include <tins/hw_address.h>
243 void ciaddr(ipaddress_type address);
249 void yiaddr(ipaddress_type address);
255 void siaddr(ipaddress_type address);
261 void giaddr(ipaddress_type address);
276 bootp_.chaddr[
i] = 0;
297 void vend(
const vend_type&
newvend_);
320 return new BootP(*
this);
Represents a range of addresses.
Definition address_range.h:167
Represents a BootP PDU.
Definition bootp.h:47
PDUType pdu_type() const
Getter for the PDU's type.
Definition bootp.h:314
vend_type & vend()
Getter for the vend field.
Definition bootp.h:331
ipaddress_type yiaddr() const
Getter for the yiaddr field.
Definition bootp.h:151
chaddr_type chaddr() const
Getter for the chaddr field.
Definition bootp.h:169
uint8_t hops() const
Getter for the hops field.
Definition bootp.h:122
uint16_t padding() const
Getter for the padding field.
Definition bootp.h:139
ipaddress_type siaddr() const
Getter for the siaddr field.
Definition bootp.h:157
uint32_t xid() const
Getter for the xid field.
Definition bootp.h:128
BootP * clone() const
Definition bootp.h:319
void chaddr(const HWAddress< n > &new_chaddr)
Setter for the chaddr field. The new_chaddr pointer must be at least BOOTP::hlen() bytes long.
Definition bootp.h:269
const uint8_t * file() const
Getter for the file field.
Definition bootp.h:181
const vend_type & vend() const
Getter for the vend field.
Definition bootp.h:187
uint16_t secs() const
Getter for the secs field.
Definition bootp.h:134
const uint8_t * sname() const
Getter for the sname field.
Definition bootp.h:175
HWAddress< 16 > chaddr_type
Definition bootp.h:57
std::vector< uint8_t > vend_type
Definition bootp.h:62
ipaddress_type giaddr() const
Getter for the giaddr field.
Definition bootp.h:163
uint8_t opcode() const
Getter for the opcode field.
Definition bootp.h:104
OpCodes
Enum which contains the different opcodes BootP messages.
Definition bootp.h:72
ipaddress_type ciaddr() const
Getter for the ciaddr field.
Definition bootp.h:145
uint8_t htype() const
Getter for the htype field.
Definition bootp.h:110
IPv4Address ipaddress_type
Definition bootp.h:52
uint8_t hlen() const
Getter for the hlen field.
Definition bootp.h:116
Abstraction of an IPv4 address.
Definition ip_address.h:45
Base class for protocol data units.
Definition pdu.h:107
PDUType
Enum which identifies each type of PDU.
Definition pdu.h:127
The Tins namespace.
Definition address_range.h:38