diff options
Diffstat (limited to 'rdns_scan/zmap4rdns/src/socket-pfring.c')
| -rw-r--r-- | rdns_scan/zmap4rdns/src/socket-pfring.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/rdns_scan/zmap4rdns/src/socket-pfring.c b/rdns_scan/zmap4rdns/src/socket-pfring.c new file mode 100644 index 0000000..a8f3c7e --- /dev/null +++ b/rdns_scan/zmap4rdns/src/socket-pfring.c @@ -0,0 +1,22 @@ +/* + * ZMap Copyright 2013 Regents of the University of Michigan + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not + * use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + */ + +#include "socket.h" + +#include "../lib/includes.h" +#include "state.h" + +#include <pfring_zc.h> + +sock_t get_socket(uint32_t id) +{ + sock_t sock; + sock.pf.queue = zconf.pf.queues[id]; + sock.pf.buffers = zconf.pf.buffers + 256 * id; + return sock; +} |
