Annotation of nono/host/netdriver_bpf.h, revision 1.1

1.1     ! root        1: //
        !             2: // nono
        !             3: // Copyright (C) 2019 [email protected]
        !             4: //
        !             5: 
        !             6: #pragma once
        !             7: 
        !             8: #include "netdriver.h"
        !             9: 
        !            10: class NetDriverBPF : public NetDriver
        !            11: {
        !            12:        typedef NetDriver inherited;
        !            13:  public:
        !            14:        // コンストラクタ
        !            15:        NetDriverBPF(EthernetDevice *p, std::mutex *m, std::condition_variable *c);
        !            16:        // デストラクタ
        !            17:        virtual ~NetDriverBPF();
        !            18: 
        !            19:        virtual bool Init();
        !            20:        virtual bool SendPacket(const std::vector<uint8>& data);
        !            21:        virtual void ThreadRun();
        !            22: 
        !            23:  private:
        !            24:        virtual void Close();
        !            25: 
        !            26:        std::string FindInterface();
        !            27: 
        !            28:        char *bpfbuf = NULL;
        !            29:        int bpfbuflen = 0;
        !            30: };

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.