Lines Matching refs:base
37 TunForwarder(base::unique_fd tunFd);
45 static base::unique_fd createTun(const std::string& ifname);
51 static base::Result<v4pair> makePair(const std::array<std::string, 2>& addrs);
64 static base::Result<v6pair> makePair(const std::array<std::string, 2>& addrs);
80 base::Result<void> validatePacket(netdutils::Slice tunPacket) const;
81 base::Result<void> validateIpv4Packet(netdutils::Slice ipv4Packet) const;
82 base::Result<void> validateIpv6Packet(netdutils::Slice ipv6Packet) const;
83 base::Result<void> validateUdpPacket(netdutils::Slice udpPacket) const;
84 base::Result<void> validateTcpPacket(netdutils::Slice tcpPacket) const;
88 base::Result<void> translatePacket(netdutils::Slice tunPacket) const;
89 base::Result<void> translateIpv4Packet(netdutils::Slice ipv4Packet) const;
90 base::Result<void> translateIpv6Packet(netdutils::Slice ipv6Packet) const;
97 base::unique_fd mTunFd;
98 base::unique_fd mEventFd;