Searched refs:DHCPMessage (Results 1 – 5 of 5) sorted by relevance
/system/connectivity/dhcp_client/ |
D | dhcp_message.cc | 69 DHCPMessage::DHCPMessage() in DHCPMessage() function in dhcp_client::DHCPMessage 100 DHCPMessage::~DHCPMessage() {} in ~DHCPMessage() 102 bool DHCPMessage::InitFromBuffer(const unsigned char* buffer, in InitFromBuffer() 104 DHCPMessage* message) { in InitFromBuffer() 151 bool DHCPMessage::ParseDHCPOptions(const uint8_t* options, in ParseDHCPOptions() 203 bool DHCPMessage::ContainsValidOptions(const std::set<uint8_t>& options_set) { in ContainsValidOptions() 231 bool DHCPMessage::IsValid() { in IsValid() 274 bool DHCPMessage::Serialize(ByteString* data) const { in Serialize() 371 uint16_t DHCPMessage::ComputeChecksum(const uint8_t* data, size_t len) { in ComputeChecksum() 388 void DHCPMessage::SetClientIdentifier( in SetClientIdentifier() [all …]
|
D | dhcp_message_unittest.cc | 169 uint16_t checksum = DHCPMessage::ComputeChecksum(kFakeBufferEvenLength, in TEST_F() 175 uint16_t checksum = DHCPMessage::ComputeChecksum(kFakeBufferOddLength, in TEST_F() 181 DHCPMessage msg; in TEST_F() 182 EXPECT_TRUE(DHCPMessage::InitFromBuffer(kFakeDHCPOfferMessage, in TEST_F() 200 DHCPMessage msg; in TEST_F() 201 EXPECT_TRUE(DHCPMessage::InitFromBuffer(kFakeDHCPAckMessage, in TEST_F() 219 DHCPMessage msg; in TEST_F() 220 EXPECT_TRUE(DHCPMessage::InitFromBuffer(kFakeDHCPNakMessage, in TEST_F()
|
D | dhcpv4.h | 53 bool MakeRawPacket(const DHCPMessage& message, shill::ByteString* buffer); 61 void HandleOffer(const DHCPMessage& msg); 62 void HandleAck(const DHCPMessage& msg); 63 void HandleNak(const DHCPMessage& msg);
|
D | dhcp_message.h | 52 class DHCPMessage { 54 DHCPMessage(); 55 ~DHCPMessage(); 60 DHCPMessage* message); 61 static void InitRequest(DHCPMessage* message); 178 DISALLOW_COPY_AND_ASSIGN(DHCPMessage);
|
D | dhcpv4.cc | 111 DHCPMessage msg; in ParseRawPacket() 112 if (!DHCPMessage::InitFromBuffer(buffer, data->len - header_len, &msg)) { in ParseRawPacket() 213 void DHCPV4::HandleOffer(const DHCPMessage& msg) { in HandleOffer() 217 void DHCPV4::HandleAck(const DHCPMessage& msg) { in HandleAck() 221 void DHCPV4::HandleNak(const DHCPMessage& msg) { in HandleNak() 225 bool DHCPV4::MakeRawPacket(const DHCPMessage& message, ByteString* output) { in MakeRawPacket() 259 udp->uh_sum = htons(DHCPMessage::ComputeChecksum( in MakeRawPacket() 280 ip->check = htons(DHCPMessage::ComputeChecksum( in MakeRawPacket()
|