Android-cuttlefish cvd tool
Classes | Namespaces | Functions
nft_messages_helper.h File Reference
#include <stdint.h>
#include <string>
#include <vector>
#include "absl/strings/string_view.h"
#include "allocd/net/netlink_request.h"
Include dependency graph for nft_messages_helper.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  cuttlefish::nft_test::Attr
 
struct  cuttlefish::nft_test::Message
 
struct  cuttlefish::nft_test::Expression
 

Namespaces

namespace  cuttlefish
 
namespace  cuttlefish::nft_test
 

Functions

std::vector< Message > cuttlefish::nft_test::ParseMessages (const std::vector< char > &data)
 
std::vector< Message > cuttlefish::nft_test::ParseMessages (const NetlinkRequest &message)
 
std::string cuttlefish::nft_test::GetStringAttr (const std::vector< Attr > &attrs, uint16_t type)
 
uint32_t cuttlefish::nft_test::GetUint32BigEndianAttr (const std::vector< Attr > &attrs, uint16_t type)
 
std::vector< Attr > cuttlefish::nft_test::GetNestedAttrs (const std::vector< Attr > &attrs, uint16_t type)
 
std::string cuttlefish::nft_test::GetIpv4AddressAttr (const std::vector< Attr > &attrs, uint16_t type)
 
std::vector< Expression > cuttlefish::nft_test::GetRuleExpressions (const Message &rule)
 
uint16_t cuttlefish::nft_test::NftType (uint16_t message)
 
std::vector< char > cuttlefish::nft_test::BuildErrorReply (int error)
 
std::vector< char > cuttlefish::nft_test::BuildTableReply (absl::string_view name)
 
std::vector< char > cuttlefish::nft_test::Concat (std::vector< char > a, const std::vector< char > &b)