Annotation of embedaddon/arping/src/mock_libpcap.c, revision 1.1

1.1     ! misho       1: #include<pcap.h>
        !             2: 
        !             3: #define UNUSED(x) (void)(x)
        !             4: 
        !             5: int
        !             6: pcap_setfilter(pcap_t *pcap, struct bpf_program *prog)
        !             7: {
        !             8:         UNUSED(pcap);
        !             9:         UNUSED(prog);
        !            10:         return 0;
        !            11: }
        !            12: 
        !            13: int
        !            14: pcap_dispatch(pcap_t *pcap, int num, pcap_handler handler, u_char *packet)
        !            15: {
        !            16:         UNUSED(pcap);
        !            17:         UNUSED(num);
        !            18:         UNUSED(handler);
        !            19:         UNUSED(packet);
        !            20:         return 0;
        !            21: }
        !            22: 
        !            23: int
        !            24: pcap_compile(pcap_t *pcap, struct bpf_program *prog, const char *x, int y,
        !            25:              bpf_u_int32 z)
        !            26: {
        !            27:         UNUSED(pcap);
        !            28:         UNUSED(prog);
        !            29:         UNUSED(x);
        !            30:         UNUSED(y);
        !            31:         UNUSED(z);
        !            32:         return 0;
        !            33: }
        !            34: 
        !            35: pcap_t*
        !            36: pcap_open_live(const char *ifname, int a, int b, int c, char *d)
        !            37: {
        !            38:         UNUSED(ifname);
        !            39:         UNUSED(a);
        !            40:         UNUSED(b);
        !            41:         UNUSED(c);
        !            42:         UNUSED(d);
        !            43:         return NULL;
        !            44: }
        !            45: 
        !            46: int
        !            47: pcap_setnonblock(pcap_t *pcap, int a, char *b)
        !            48: {
        !            49:         UNUSED(pcap);
        !            50:         UNUSED(a);
        !            51:         UNUSED(b);
        !            52:         return 0;
        !            53: }
        !            54: 
        !            55: int
        !            56: pcap_get_selectable_fd(pcap_t *pcap)
        !            57: {
        !            58:         UNUSED(pcap);
        !            59:         return 0;
        !            60: }
        !            61: 
        !            62: char*
        !            63: pcap_lookupdev(char *ifname)
        !            64: {
        !            65:         UNUSED(ifname);
        !            66:         return 0;
        !            67: }
        !            68: /* ---- Emacs Variables ----
        !            69:  * Local Variables:
        !            70:  * c-basic-offset: 8
        !            71:  * indent-tabs-mode: nil
        !            72:  * End:
        !            73:  */

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>