repo_name stringlengths 5 122 | path stringlengths 3 232 | text stringlengths 6 1.05M |
|---|---|---|
vicharl/containerdns | kdns/src/netdev.h | #ifndef _DNSNETDEV_H_
#define _DNSNETDEV_H_
#include <rte_mbuf.h>
#include <rte_ether.h>
#include <rte_mempool.h>
#include <rte_udp.h>
#include <rte_ip.h>
#include "metrics.h"
#define NETIF_MAX_PKT_BURST (32)
struct netif_queue_stats {
uint64_t pkts_rcv; /* Total number of receive packets */
uin... |
vicharl/containerdns | kdns/core/zone.h | /*
* zone.h -- zone compiler.
*
* Copyright (c) 2001-2006, NLnet Labs.
*
* Modified Work Copyright (c) 2018 The TIGLabs Authors.
*
*/
#ifndef _ZONEC_H_
#define _ZONEC_H_
#include "domain_store.h"
#define MAXTOKENSLEN 512 /* Maximum number of tokens per entry */
#define B64BUFSIZE 65535 /* Buffer size for b6... |
vicharl/containerdns | kdns/dpdk-17.02/drivers/net/qede/base/ecore_hsi_init_tool.h | /*
* Copyright (c) 2016 QLogic Corporation.
* All rights reserved.
* www.qlogic.com
*
* See LICENSE.qede_pmd for copyright and licensing details.
*/
#ifndef __ECORE_HSI_INIT_TOOL__
#define __ECORE_HSI_INIT_TOOL__
/**************************************/
/* Init Tool HSI constants and macros */
/*****************... |
vicharl/containerdns | kdns/core/dns.h | <reponame>vicharl/containerdns<filename>kdns/core/dns.h
/*
* dns.h -- DNS definitions.
*
* Copyright (c) 2001-2006, NLnet Labs.
*
* Modified Work Copyright (c) 2018 The TIGLabs Authors.
*
*/
#ifndef _DNS_H_
#define _DNS_H_
#include <stdint.h>
#include <assert.h>
#include <stdio.h>
#include "buffer.h"
typedef... |
vicharl/containerdns | kdns/dpdk-17.02/app/test-crypto-perf/main.c | <reponame>vicharl/containerdns
#include <stdio.h>
#include <unistd.h>
#include <rte_eal.h>
#include <rte_cryptodev.h>
#include "cperf.h"
#include "cperf_options.h"
#include "cperf_test_vector_parsing.h"
#include "cperf_test_throughput.h"
#include "cperf_test_latency.h"
const char *cperf_test_type_strs[] = {
[CPERF_... |
vicharl/containerdns | kdns/dpdk-17.02/drivers/net/fm10k/fm10k_rxtx_vec.c | <filename>kdns/dpdk-17.02/drivers/net/fm10k/fm10k_rxtx_vec.c<gh_stars>100-1000
/*-
* BSD LICENSE
*
* Copyright(c) 2013-2015 Intel Corporation. All rights reserved.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that t... |
vicharl/containerdns | kdns/dpdk-17.02/app/test-crypto-perf/cperf_options_parsing.c | /*-
* BSD LICENSE
*
* Copyright(c) 2016-2017 Intel Corporation. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain the above co... |
vicharl/containerdns | kdns/src/tcp_process.c | /*
* tcp+process.c
*/
#define _GNU_SOURCE
#include <pthread.h>
#include <string.h>
#include <errno.h>
#include <unistd.h>
#include <arpa/inet.h>
#include <sys/select.h>
#include <sys/socket.h>
#include <netdb.h>
#include <fcntl.h>
#include <stdio.h>
#include "netdev.h"
#include "util.h"
#include "dns-conf.h"
#in... |
vicharl/containerdns | kdns/dpdk-17.02/drivers/net/qede/base/ecore_int_api.h | /*
* Copyright (c) 2016 QLogic Corporation.
* All rights reserved.
* www.qlogic.com
*
* See LICENSE.qede_pmd for copyright and licensing details.
*/
#ifndef __ECORE_INT_API_H__
#define __ECORE_INT_API_H__
#ifndef __EXTRACT__LINUX__
#define ECORE_SB_IDX 0x0002
#define RX_PI 0
#define TX_PI(tc) (RX_PI + 1 + tc... |
vicharl/containerdns | kdns/core/util.h | /*
* util.h -- set of various support routines.
*
* Copyright (c) 2001-2006, NLnet Labs.
*
* Modified Work Copyright (c) 2018 The TIGLabs Authors.
*
*/
#ifndef _UTIL_H_
#define _UTIL_H_
#include <sys/time.h>
#include <stdarg.h>
#include <stdio.h>
#include <time.h>
#include <stdint.h>
#include <sys/socket.h>
#i... |
vicharl/containerdns | kdns/dpdk-17.02/app/test-crypto-perf/cperf_verify_parser.c | #include <stdio.h>
#include <rte_malloc.h>
#include "cperf_options.h"
#include "cperf_test_vectors.h"
#include "cperf_verify_parser.h"
int
free_test_vector(struct cperf_test_vector *vector, struct cperf_options *opts)
{
if (vector == NULL || opts == NULL)
return -1;
if (opts->test_file == NULL) {
if (vector->i... |
vicharl/containerdns | kdns/src/rate_limit.h | #ifndef _RATE_LIMIT_H_
#define _RATE_LIMIT_H_
typedef enum {
RATE_LIMIT_TYPE_ALL,
RATE_LIMIT_TYPE_FWD,
RATE_LIMIT_TYPE_EXCEEDED_LOG,
RATE_LIMIT_TYPE_MAX,
} rate_limit_type;
int rate_limit(uint32_t sip, rate_limit_type type, unsigned lcore_id);
int rate_limit_init(uint32_t all_per_second, uint32_t fwd... |
vicharl/containerdns | kdns/dpdk-17.02/app/test-crypto-perf/cperf_test_latency.c | <reponame>vicharl/containerdns
/*-
* BSD LICENSE
*
* Copyright(c) 2016-2017 Intel Corporation. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of sourc... |
vicharl/containerdns | kdns/src/tcp_process.h | #ifndef _TCP_PROCESS_H_
#define _TCP_PROCESS_H_
#include <arpa/inet.h>
#include "db_update.h"
void tcp_statsdata_get(struct netif_queue_stats *sta);
void tcp_statsdata_reset(void);
int tcp_process_init(void);
int tcp_domian_databd_update(struct domin_info_update *update);
int tcp_zones_reload(char *del_zones, cha... |
vicharl/containerdns | kdns/deps/libmicrohttpd/src/microhttpd/response.c | /*
This file is part of libmicrohttpd
Copyright (C) 2007, 2009, 2010, 2016, 2017 <NAME> and <NAME>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version ... |
vicharl/containerdns | kdns/dpdk-17.02/drivers/net/sfc/sfc_port.c | <filename>kdns/dpdk-17.02/drivers/net/sfc/sfc_port.c
/*-
* Copyright (c) 2016 Solarflare Communications Inc.
* All rights reserved.
*
* This software was jointly developed between OKTET Labs (under contract
* for Solarflare) and Solarflare Communications, Inc.
*
* Redistribution and use in source and binary form... |
vicharl/containerdns | kdns/dpdk-17.02/examples/distributor/main.c | <reponame>vicharl/containerdns<gh_stars>100-1000
/*-
* BSD LICENSE
*
* Copyright(c) 2010-2014 Intel Corporation. All rights reserved.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* a... |
vicharl/containerdns | kdns/dpdk-17.02/drivers/net/qede/base/reg_addr.h | /*
* Copyright (c) 2016 QLogic Corporation.
* All rights reserved.
* www.qlogic.com
*
* See LICENSE.qede_pmd for copyright and licensing details.
*/
/*
* Copyright (c) 2016 QLogic Corporation.
* All rights reserved.
* www.qlogic.com
*
* See LICENSE.qede_pmd for copyright and licensing details.
*/
#define ... |
vicharl/containerdns | kdns/dpdk-17.02/drivers/net/i40e/base/i40e_prototype.h | /*******************************************************************************
Copyright (c) 2013 - 2015, Intel Corporation
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of sour... |
vicharl/containerdns | kdns/dpdk-17.02/drivers/net/qede/qede_eth_if.c | /*
* Copyright (c) 2016 QLogic Corporation.
* All rights reserved.
* www.qlogic.com
*
* See LICENSE.qede_pmd for copyright and licensing details.
*/
#include "qede_ethdev.h"
static int
qed_start_vport(struct ecore_dev *edev, struct qed_start_vport_params *p_params)
{
int rc, i;
for_each_hwfn(edev, i) {
str... |
vicharl/containerdns | kdns/dpdk-17.02/drivers/net/e1000/em_rxtx.c | <filename>kdns/dpdk-17.02/drivers/net/e1000/em_rxtx.c
/*-
* BSD LICENSE
*
* Copyright(c) 2010-2016 Intel Corporation. All rights reserved.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
... |
vicharl/containerdns | kdns/dpdk-17.02/drivers/net/qede/base/ecore_dcbx.h | /*
* Copyright (c) 2016 QLogic Corporation.
* All rights reserved.
* www.qlogic.com
*
* See LICENSE.qede_pmd for copyright and licensing details.
*/
#ifndef __ECORE_DCBX_H__
#define __ECORE_DCBX_H__
#include "ecore.h"
#include "ecore_mcp.h"
#include "mcp_public.h"
#include "reg_addr.h"
#include "ecore_hw.h"
#in... |
vicharl/containerdns | kdns/dpdk-17.02/lib/librte_eal/common/eal_common_bus.c | /*-
* BSD LICENSE
*
* Copyright(c) 2016 NXP
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain the above copyright
* ... |
vicharl/containerdns | kdns/deps/libmicrohttpd/src/microhttpd/connection_https.c | /*
This file is part of libmicrohttpd
Copyright (C) 2007, 2008, 2010 <NAME> and <NAME>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the L... |
vicharl/containerdns | kdns/core/view.h | <reponame>vicharl/containerdns
/*
*
* Copyright (c) 2018 The TIGLabs Authors.
*
*/
#ifndef __DNS_VIEW_H__
#define __DNS_VIEW_H__
#include <stdint.h>
#include <stdlib.h>
#include <arpa/inet.h>
#include "kdns.h"
#define VIEW_NULL_VALUE NULL
#define VIEW_NO_NODE NULL
/* type of stored value */
enum view_action ... |
vicharl/containerdns | kdns/dpdk-17.02/drivers/net/sfc/sfc.h | <reponame>vicharl/containerdns
/*-
* Copyright (c) 2016 Solarflare Communications Inc.
* All rights reserved.
*
* This software was jointly developed between OKTET Labs (under contract
* for Solarflare) and Solarflare Communications, Inc.
*
* Redistribution and use in source and binary forms, with or without
* ... |
vicharl/containerdns | kdns/dpdk-17.02/drivers/net/sfc/base/ef10_impl.h | <filename>kdns/dpdk-17.02/drivers/net/sfc/base/ef10_impl.h
/*
* Copyright (c) 2015-2016 Solarflare Communications Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions... |
vicharl/containerdns | kdns/dpdk-17.02/app/test-crypto-perf/cperf_ops.c | /*-
* BSD LICENSE
*
* Copyright(c) 2016-2017 Intel Corporation. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain the above co... |
vicharl/containerdns | kdns/dpdk-17.02/drivers/net/sfc/sfc_kvargs.h | /*-
* Copyright (c) 2016 Solarflare Communications Inc.
* All rights reserved.
*
* This software was jointly developed between OKTET Labs (under contract
* for Solarflare) and Solarflare Communications, Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted pro... |
vicharl/containerdns | kdns/src/process.c | #define _GNU_SOURCE
#include <pthread.h>
#include <rte_mbuf.h>
#include <rte_ether.h>
#include <rte_ip.h>
#include <rte_malloc.h>
#include <rte_udp.h>
#include <arpa/inet.h>
#include <rte_byteorder.h>
#include <rte_ethdev.h>
#include <rte_kni.h>
#include <rte_arp.h>
#include <rte_icmp.h>
#include "rte_cycles.h"
#inc... |
vicharl/containerdns | kdns/dpdk-17.02/lib/librte_ether/rte_flow.c | <reponame>vicharl/containerdns
/*-
* BSD LICENSE
*
* Copyright 2016 6WIND S.A.
* Copyright 2016 Mellanox.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code ... |
vicharl/containerdns | kdns/src/kdns-adap.h | <reponame>vicharl/containerdns
#ifndef _NSD_APAPTER_H_
#define _NSD_APAPTER_H_
#include "query.h"
#include "kdns.h"
#include "util.h"
int kdns_init(char *zones, unsigned lcore_id);
int kdns_prepare_init(struct kdns *kdns, struct query **query, char *zones);
kdns_query_st *dns_packet_proess(uint32_t sip, uint8_t *qu... |
vicharl/containerdns | kdns/src/view_update.h | #ifndef __VIEW_UPDATE_H__
#define __VIEW_UPDATE_H__
#include "kdns.h"
#include "view.h"
#include "webserver.h"
#include "query.h"
#include "ctrl_msg.h"
typedef struct view_info_update {
ctrl_msg cmsg;
enum view_action action;
char cidrs[MAX_VIEW_NAME_LEN];
char view_name[MAX_VIEW_NAME_LEN];
str... |
vicharl/containerdns | kdns/dpdk-17.02/drivers/crypto/scheduler/scheduler_pmd_ops.c | <filename>kdns/dpdk-17.02/drivers/crypto/scheduler/scheduler_pmd_ops.c
/*-
* BSD LICENSE
*
* Copyright(c) 2017 Intel Corporation. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
... |
vicharl/containerdns | kdns/src/db_update.h | #ifndef __DB_UPDATE_H__
#define __DB_UPDATE_H__
#include "domain_store.h"
#include "zone.h"
#include "kdns.h"
#include "ctrl_msg.h"
#define DB_MAX_NAME_LEN 255
enum db_action {
DOMAN_ACTION_ADD,
DOMAN_ACTION_DEL
};
typedef struct domin_info_update {
ctrl_msg cmsg;
enum db_action action;
uint32... |
vicharl/containerdns | kdns/dpdk-17.02/drivers/crypto/aesni_gcm/aesni_gcm_pmd.c | <gh_stars>100-1000
/*-
* BSD LICENSE
*
* Copyright(c) 2016 Intel Corporation. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retai... |
vicharl/containerdns | kdns/dpdk-17.02/lib/librte_eal/common/include/arch/arm/rte_vect.h | <filename>kdns/dpdk-17.02/lib/librte_eal/common/include/arch/arm/rte_vect.h
/*-
* BSD LICENSE
*
* Copyright(c) 2015 Cavium Networks. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met... |
vicharl/containerdns | kdns/dpdk-17.02/drivers/net/sfc/base/ef10_tx.c | /*
* Copyright (c) 2012-2016 Solarflare Communications Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* ... |
vicharl/containerdns | kdns/dpdk-17.02/lib/librte_eal/common/include/generic/rte_io.h | <filename>kdns/dpdk-17.02/lib/librte_eal/common/include/generic/rte_io.h
/*
* BSD LICENSE
*
* Copyright(c) 2016 Cavium networks. All rights reserved.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following c... |
vicharl/containerdns | kdns/dpdk-17.02/drivers/crypto/aesni_gcm/aesni_gcm_pmd_private.h | <reponame>vicharl/containerdns
/*-
* BSD LICENSE
*
* Copyright(c) 2016 Intel Corporation. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source cod... |
vicharl/containerdns | kdns/dpdk-17.02/drivers/net/szedata2/rte_eth_szedata2.h | /*-
* BSD LICENSE
*
* Copyright (c) 2015 - 2016 CESNET
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain the above copyri... |
vicharl/containerdns | kdns/dpdk-17.02/drivers/net/ixgbe/base/ixgbe_x550.h | /*******************************************************************************
Copyright (c) 2001-2015, Intel Corporation
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source... |
vicharl/containerdns | kdns/core/kdns.h | <filename>kdns/core/kdns.h
/*
* kdns.h -- kdns(8) definitions and prototypes
*
* Copyright (c) 2001-2006, NLnet Labs.
*
* Modified Work Copyright (c) 2018 The TIGLabs Authors.
*
*/
#ifndef _NSD_H_
#define _NSD_H_
#include "dns.h"
#define MAX_CORES 64
#define DEFAULT_VIEW_NAME "no_info"
#define MAX_VIEW_NAM... |
vicharl/containerdns | kdns/dpdk-17.02/drivers/net/virtio/virtio_user/virtio_user_dev.c | <filename>kdns/dpdk-17.02/drivers/net/virtio/virtio_user/virtio_user_dev.c<gh_stars>100-1000
/*-
* BSD LICENSE
*
* Copyright(c) 2010-2016 Intel Corporation. All rights reserved.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted p... |
vicharl/containerdns | kdns/dpdk-17.02/lib/librte_cryptodev/rte_cryptodev.h | <filename>kdns/dpdk-17.02/lib/librte_cryptodev/rte_cryptodev.h
/*-
*
* Copyright(c) 2015-2017 Intel Corporation. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistrib... |
vicharl/containerdns | kdns/src/dns-conf.h | <gh_stars>100-1000
#ifndef __DNSCONF_H__
#define __DNSCONF_H__
#include <stdint.h>
#include "ctrl_msg.h"
#include "zone.h"
#define DPDK_MAX_ARG_NUM (32)
#define DPDK_MAX_ARG_LEN (128)
#define MAX_CONFIG_STR_LEN (2048)
struct config_update {
ctrl_msg cmsg;
uint32_t flags;
char del_zones[MAX_CONFIG... |
vicharl/containerdns | kdns/dpdk-17.02/drivers/net/sfc/sfc_ev.c | <gh_stars>100-1000
/*-
* Copyright (c) 2016 Solarflare Communications Inc.
* All rights reserved.
*
* This software was jointly developed between OKTET Labs (under contract
* for Solarflare) and Solarflare Communications, Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification... |
vicharl/containerdns | kdns/dpdk-17.02/drivers/net/sfc/sfc.c | <filename>kdns/dpdk-17.02/drivers/net/sfc/sfc.c
/*-
* Copyright (c) 2016 Solarflare Communications Inc.
* All rights reserved.
*
* This software was jointly developed between OKTET Labs (under contract
* for Solarflare) and Solarflare Communications, Inc.
*
* Redistribution and use in source and binary forms, wi... |
vicharl/containerdns | kdns/dpdk-17.02/drivers/net/qede/base/ecore_init_fw_funcs.c | /*
* Copyright (c) 2016 QLogic Corporation.
* All rights reserved.
* www.qlogic.com
*
* See LICENSE.qede_pmd for copyright and licensing details.
*/
#include "bcm_osal.h"
#include "ecore_hw.h"
#include "ecore_init_ops.h"
#include "reg_addr.h"
#include "ecore_rt_defs.h"
#include "ecore_hsi_common.h"
#include "eco... |
vicharl/containerdns | kdns/dpdk-17.02/lib/librte_cmdline/cmdline_parse.h | <filename>kdns/dpdk-17.02/lib/librte_cmdline/cmdline_parse.h
/*-
* BSD LICENSE
*
* Copyright(c) 2010-2014 Intel Corporation. All rights reserved.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following condi... |
vicharl/containerdns | kdns/dpdk-17.02/drivers/net/mlx5/mlx5_trigger.c | <gh_stars>100-1000
/*-
* BSD LICENSE
*
* Copyright 2015 6WIND S.A.
* Copyright 2015 Mellanox.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain ... |
vicharl/containerdns | kdns/dpdk-17.02/drivers/net/sfc/sfc_ev.h | <gh_stars>100-1000
/*-
* Copyright (c) 2016 Solarflare Communications Inc.
* All rights reserved.
*
* This software was jointly developed between OKTET Labs (under contract
* for Solarflare) and Solarflare Communications, Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification... |
vicharl/containerdns | kdns/dpdk-17.02/drivers/net/bnxt/bnxt_hwrm.c | /*-
* BSD LICENSE
*
* Copyright(c) Broadcom Limited.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain the above copyrigh... |
vicharl/containerdns | kdns/dpdk-17.02/examples/server_node_efd/node/node.c | <gh_stars>100-1000
/*-
* BSD LICENSE
*
* Copyright(c) 2016-2017 Intel Corporation. All rights reserved.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistribu... |
vicharl/containerdns | kdns/src/parser.h | <gh_stars>100-1000
/*-
* BSD LICENSE
*
* Copyright(c) 2010-2016 Intel Corporation. All rights reserved.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistribu... |
vicharl/containerdns | kdns/src/metrics.c | <reponame>vicharl/containerdns<filename>kdns/src/metrics.c
#define _GNU_SOURCE
#include <sys/time.h>
#include <stdio.h>
#include <pthread.h>
#include <unistd.h>
#include <time.h>
#include <rte_rwlock.h>
#include <string.h>
#include <jansson.h>
#include "hashMap.h"
#include "util.h"
#include "metrics.h"
#include "dns-c... |
vicharl/containerdns | kdns/dpdk-17.02/drivers/crypto/openssl/rte_openssl_pmd.c | <gh_stars>100-1000
/*-
* BSD LICENSE
*
* Copyright(c) 2016 Intel Corporation. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retai... |
vicharl/containerdns | kdns/dpdk-17.02/lib/librte_eal/common/include/rte_interrupts.h | /*-
* BSD LICENSE
*
* Copyright(c) 2010-2014 Intel Corporation. All rights reserved.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source cod... |
vicharl/containerdns | kdns/deps/libmicrohttpd/src/testcurl/test_concurrent_stop.c | <reponame>vicharl/containerdns
/*
This file is part of libmicrohttpd
Copyright (C) 2007, 2009, 2011, 2015, 2016 <NAME>
libmicrohttpd is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published
by the Free Software Foundation; either... |
vicharl/containerdns | kdns/core/domain_store.h | <reponame>vicharl/containerdns<filename>kdns/core/domain_store.h<gh_stars>100-1000
/*
* domain_store.h -- internal namespace database definitions
*
* Copyright (c) 2001-2006, NLnet Labs.
*
* Modified Work Copyright (c) 2018 The TIGLabs Authors.
*
*/
#ifndef _DOMAIN_STORE_H_
#define _DOMAIN_STORE_H_
#include <st... |
vicharl/containerdns | kdns/dpdk-17.02/lib/librte_eal/common/include/rte_bus.h | /*-
* BSD LICENSE
*
* Copyright(c) 2016 NXP
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain the above copyright
* ... |
vicharl/containerdns | kdns/dpdk-17.02/drivers/crypto/scheduler/scheduler_roundrobin.c | /*-
* BSD LICENSE
*
* Copyright(c) 2017 Intel Corporation. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain the above copyrig... |
vicharl/containerdns | kdns/core/view.c | /*
*
* Copyright (c) 2018 The TIGLabs Authors.
*
*/
#include <jansson.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#include "view.h"
#include "kdns.h"
#define CREATE 0x1
#define FIND_FIRST 0x2
#define FIND_BEST 0x4
static view_node_t *view_tree_alloc_node(view_tree_t *tree)
{
view_node_t *n... |
vicharl/containerdns | kdns/dpdk-17.02/drivers/net/qede/qede_eth_if.h | <reponame>vicharl/containerdns<gh_stars>100-1000
/*
* Copyright (c) 2016 QLogic Corporation.
* All rights reserved.
* www.qlogic.com
*
* See LICENSE.qede_pmd for copyright and licensing details.
*/
#ifndef _QEDE_ETH_IF_H
#define _QEDE_ETH_IF_H
#include "qede_if.h"
/*forward decl */
struct eth_slow_path_rx_cqe;... |
vicharl/containerdns | kdns/dpdk-17.02/drivers/net/qede/base/ecore_hsi_common.h | <filename>kdns/dpdk-17.02/drivers/net/qede/base/ecore_hsi_common.h
/*
* Copyright (c) 2016 QLogic Corporation.
* All rights reserved.
* www.qlogic.com
*
* See LICENSE.qede_pmd for copyright and licensing details.
*/
#ifndef __ECORE_HSI_COMMON__
#define __ECORE_HSI_COMMON__
/********************************/
/* A... |
vicharl/containerdns | kdns/dpdk-17.02/drivers/crypto/scheduler/rte_cryptodev_scheduler.h | <reponame>vicharl/containerdns
/*-
* BSD LICENSE
*
* Copyright(c) 2017 Intel Corporation. All rights reserved.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Red... |
vicharl/containerdns | kdns/src/view_update.c | <filename>kdns/src/view_update.c
/*
* view_update.c
*/
#include <rte_ring.h>
#include <rte_rwlock.h>
#include <jansson.h>
#include "domain_store.h"
#include "view_update.h"
#include "kdns.h"
#include "ctrl_msg.h"
extern struct kdns dpdk_dns[MAX_CORES];
static view_tree_t *view_master_tree;
static rte_rwlock_t vie... |
vicharl/containerdns | kdns/dpdk-17.02/app/test-crypto-perf/cperf.h | <reponame>vicharl/containerdns<filename>kdns/dpdk-17.02/app/test-crypto-perf/cperf.h
/*-
* BSD LICENSE
*
* Copyright(c) 2016-2017 Intel Corporation. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditi... |
vicharl/containerdns | kdns/src/db_update.c | <reponame>vicharl/containerdns<gh_stars>100-1000
/*
* data_update.c
*/
#include <stdlib.h>
#include "db_update.h"
#include "util.h"
static rrset_type *do_domaindata_insert(struct domain_store *db, zone_type *zo, const domain_name_st *dname, rr_type *rr, uint32_t maxAnswer)
{
rrset_type *rrset;
// insert dom... |
vicharl/containerdns | kdns/dpdk-17.02/drivers/net/fm10k/fm10k_ethdev.c | <gh_stars>100-1000
/*-
* BSD LICENSE
*
* Copyright(c) 2013-2016 Intel Corporation. All rights reserved.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistribu... |
vicharl/containerdns | kdns/dpdk-17.02/app/test-crypto-perf/cperf_options.h | <reponame>vicharl/containerdns<filename>kdns/dpdk-17.02/app/test-crypto-perf/cperf_options.h
#ifndef _CPERF_OPTIONS_
#define _CPERF_OPTIONS_
#include <rte_crypto.h>
#define CPERF_PTEST_TYPE ("ptest")
#define CPERF_SILENT ("silent")
#define CPERF_POOL_SIZE ("pool-sz")
#define CPERF_TOTAL_OPS ("total-ops")
#define... |
YanjenChen/fibdrv | bign.c | #include "bign.h"
void add_bign128(struct bign128 *output, struct bign128 *x, struct bign128 *y)
{
output->upper = x->upper + y->upper;
if (y->lower > ~(x->lower))
output->upper++;
output->lower = x->lower + y->lower;
} |
YanjenChen/fibdrv | client.c | #include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <time.h>
#include <unistd.h>
#define FIB_DEV "/dev/fibonacci"
/* #include "bign.h" */
int main()
{
long long sz;
unsigned long long buf[1];
char write_buf[] = "testing writing";
FILE *time_l... |
YanjenChen/fibdrv | bign.h | #ifndef HW2_BIGN_H
#define HW2_BIGN_H
/* 128 bits integer */
struct bign128 {
unsigned long long lower, upper;
};
void add_bign128(struct bign128 *output, struct bign128 *x, struct bign128 *y);
#endif /* HW2_BIGN_H */ |
paladin-t/flock | SimpleFlock.h | #ifndef __SIMPLE_FLOCK_H__
#define __SIMPLE_FLOCK_H__
#include "CommonTypes.h"
class FlockGroup {
public:
typedef Vec2f (* Adjuster)(const Vec2f &p, const Vec2f &t, int n, int l);
struct Object {
Object();
Object(const Vec2f &o);
Object(const Vec2f &o, const Object &t);
void clear(void);
... |
paladin-t/flock | NNMonsterFlockGroup.h | <gh_stars>10-100
#ifndef __NN_MONSTER_FLOCK_GROUP_H__
#define __NN_MONSTER_FLOCK_GROUP_H__
#include <map>
#include "util/SimpleFlock.h"
void clampInside(Vec2f &p);
class IMonsterAction;
class PlayerShape;
struct FlockInfo {
FlockInfo() {
}
FlockInfo(const Vec2f &p) : pos(p) {
}
Vec2f pos;
Vec... |
mhv/Beholder | Beholder/Beholder.h | //
// Beholder.h
// Beholder
//
// Created by <NAME> on 9/20/15.
// Copyright © 2015 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
//! Project version number for Beholder.
FOUNDATION_EXPORT double BeholderVersionNumber;
//! Project version string for Beholder.
FOUNDATION_EXPORT const unsigned char Beho... |
BlackBears/CCFScrollingTabBar | source/CCFScrollableTabColorKeys.h | <gh_stars>1-10
/**
* @file CCFScrollableTabColorKeys.h
* @author <NAME> (www.cocoafactory.com)
*
* @date 2012-03-09 02:04:20
* @version 1.0
*
* @note Copyright 2011 Cocoa Factory, LLC. All rights reserved
*/
#ifndef CCFScrollingTabBar_CCFScrollableTabColorKeys_h
#define CCFScrollingTabBar_CCFScrolla... |
BlackBears/CCFScrollingTabBar | source/CCFScrollableTab.h | /**
* @file CCFScrollableTab.h
* @author <NAME> (www.cocoafactory.com)
*
* @date 2012-03-08 14:25:21
* @version 1.0
*
* @note Copyright 2011 Cocoa Factory, LLC. All rights reserved
*/
#import "CCFScrollableTabColorKeys.h"
@protocol CCFScrollableTabDelegate;
/** CCFScrollableTab
The selectable ent... |
BlackBears/CCFScrollingTabBar | example/CCFViewController.h | //
// CCFViewController.h
// CCFScrollingTabBar
//
// Created by <NAME> on 3/8/12.
// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//
#import "CCFScrollableTabDelegate.h"
#import "CCFScrollableTabViewDelegate.h"
#import "CCFScrollableTabViewDataSource.h"
@class CCFScrollableTabView;
@interface CCFV... |
BlackBears/CCFScrollingTabBar | source/CCFScrollableTabViewDataSource.h | /**
* @file CCFScrollableTabViewDataSource.h
* @author <NAME> (www.cocoafactory.com)
*
* @date 2012-03-09 04:17:45
* @version 1.0
*
* @note Copyright 2011 Cocoa Factory, LLC. All rights reserved
*/
@class CCFScrollableTabView;
/* CCFScrollableTabViewDataSource
This protocol declares the methods... |
BlackBears/CCFScrollingTabBar | source/CCFScrollableTabViewDelegate.h | /**
* @file CCFScrollableTabViewDelegate.h
* @author <NAME> (www.cocoafactory.com)
*
* @date 2012-03-09 04:21:30
* @version 1.0
*
* @note Copyright 2011 Cocoa Factory, LLC. All rights reserved
*/
@class CCFScrollableTabView;
/** CCFScrollableTabViewDelegate
This protocol describes the required met... |
BlackBears/CCFScrollingTabBar | source/CCFScrollableTabContentView.h | /**
* @file CCFScrollableTabContentView.h
* @author <NAME> (www.cocoafactory.com)
*
* @date 2012-03-08 16:17:29
* @version 1.0
*
* @note Copyright 2011 Cocoa Factory, LLC. All rights reserved
*/
#import "CCFScrollableTabDelegate.h"
@protocol CCFScrollableTabContentViewDelegate;
@class CCFScrollable... |
BlackBears/CCFScrollingTabBar | source/CCFScrollableTabContentViewDelegate.h | <filename>source/CCFScrollableTabContentViewDelegate.h
/**
* @file CCFScrollableTabContentViewDelegate.h
* @author <NAME> (www.cocoafactory.com)
*
* @date 2012-03-09 04:56:41
* @version 1.0
*
* @note Copyright 2011 Cocoa Factory, LLC. All rights reserved
*/
@class CCFScrollableTabContentView;
/** C... |
BlackBears/CCFScrollingTabBar | source/CCFScrollableTabStopDelegate.h | <reponame>BlackBears/CCFScrollingTabBar
/**
* @file CCFScrollableTabStopDelegate.h
* @author <NAME> (www.cocoafactory.com)
*
* @date 2012-03-09 09:24:54
* @version 1.0
*
* @note Copyright 2011 Cocoa Factory, LLC. All rights reserved
*/
@class CCFScrollableTabStop;
@protocol CCFScrollableTabStopDele... |
BlackBears/CCFScrollingTabBar | source/CCFScrollableTabView.h | /**
* @file CCFScrollableTabView.h
* @author <NAME> (www.cocoafactory.com)
*
* @date 2012-03-09 04:13:19
* @version 1.0
*
* @note Copyright 2011 Cocoa Factory, LLC. All rights reserved
*/
#import "CCFScrollableTabScrollViewDelegate.h"
#import "CCFScrollableTabViewDataSource.h"
#import "CCFScrollable... |
BlackBears/CCFScrollingTabBar | example/CCFAppDelegate.h | //
// CCFAppDelegate.h
// CCFScrollingTabBar
//
// Created by <NAME> on 3/8/12.
// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//
#import <UIKit/UIKit.h>
@class CCFViewController;
@interface CCFAppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@pro... |
BlackBears/CCFScrollingTabBar | source/CCFScrollableTabDelegate.h | <gh_stars>1-10
/**
* @file CCFScrollableTabDelegate.h
* @author <NAME> (www.cocoafactory.com)
*
* @date 2012-03-08 15:47:01
* @version 1.0
*
* @note Copyright 2011 Cocoa Factory, LLC. All rights reserved
*/
@protocol CCFScrollableTabDelegate <NSObject>
- (void)scrollableTabDidSelectItemAtIndex:(NSI... |
BlackBears/CCFScrollingTabBar | source/CCFScrollableTabScrollViewDelegate.h | /**
* @file CCFScrollableTabScrollViewDelegate.h
* @author <NAME> (www.cocoafactory.com)
*
* @date 2012-03-09 05:02:55
* @version 1.0
*
* @note Copyright 2011 Cocoa Factory, LLC. All rights reserved
*/
@class CCFScrollableTabScrollView;
/** CCFScrollableTabScrollViewDelegate
This protocol declares... |
BlackBears/CCFScrollingTabBar | source/CCFScrollableTabScrollView.h | <filename>source/CCFScrollableTabScrollView.h<gh_stars>1-10
/**
* @file CCFScrollableTabScrollView.h
* @author <NAME> (www.cocoafactory.com)
*
* @date 2012-03-09 05:01:32
* @version 1.0
*
* @note Copyright 2011 Cocoa Factory, LLC. All rights reserved
*/
#import "CCFScrollableTabContentViewDelegate.h... |
BlackBears/CCFScrollingTabBar | source/CCFScrollableTabStop.h | /**
* @file CCFScrollableTabStop.h
* @author <NAME> (www.cocoafactory.com)
*
* @date 2012-03-09 01:55:59
* @version 1.0
*
* @note Copyright 2011 Cocoa Factory, LLC. All rights reserved
*/
enum {
CCFScrollableTabStopRight,
CCFScrollableTabStopLeft
};
typedef NSInteger CCFScrollableTabStopSide... |
xinyandai/tensor | src/tensor/tensor.h | //
// Created by xinyan on 24/4/2019.
//
#pragma once
#ifndef TENSOR_TENSOR_H
#define TENSOR_TENSOR_H
#define CHECK_SHAPE (true)
#define FLAG_CONTIGUOUS (1<<0)
#define FLAG_TRANSPOSED (1<<1)
#include <array>
#include <algorithm>
#include <memory>
#include <random>
#include <type_traits>
#include "helper.h"
namespace... |
xinyandai/tensor | src/tensor/io.h | //
// Created by xinyan on 12/5/2019.
//
#pragma once
#ifndef TENSOR_IO_H
#define TENSOR_IO_H
#include <iostream>
#include <fstream>
#include "tensor.h"
namespace tensor {
template <typename T>
Tensor<T, 2, true>
vecs(const char* fvecs) {
std::ifstream fin(fvecs,
std::ios::binary | std::ios::ate);
if... |
xinyandai/tensor | src/tensor/linalg.h | //
// Created by xinyan on 30/4/2019.
//
#pragma once
#ifndef TENSOR_CALCULATOR_H
#define TENSOR_CALCULATOR_H
#include "tensor.h"
#include "simd.h"
#ifndef FINTEGER
#define FINTEGER long
#endif
extern "C" {
/* declare BLAS functions, see http://www.netlib.org/clapack/cblas/ */
int
sgemm_ (
const char *transa, cons... |
xinyandai/tensor | src/tensor/simd.h | //
// Created by xinyan on 1/5/2019.
//
#pragma once
#ifndef TENSOR_SIMD_H
#define TENSOR_SIMD_H
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD+Patents license found in the
* LICENSE file in the root directory of this source tree.
*/
// -*- ... |
xinyandai/tensor | src/tensor/stride_iter.h | //
// Created by xinyan on 5/6/2019.
//
#pragma once
#ifndef TENSOR_STRDE_ITER_H
#define TENSOR_STRDE_ITER_H
#include <iostream>
#include <vector>
#include <algorithm>
#include <iterator>
#include <cassert>
template <typename T>
class StrideIterator
{
typedef int size_type;
public:
typedef T value_type;
typedef... |
xinyandai/tensor | src/tensor/helper.h | //
// Created by xinyan on 11/5/2019.
//
#pragma once
#ifndef TENSOR_UTIL_H
#define TENSOR_UTIL_H
#include <array>
#include <vector>
#include <bits/stdc++.h>
#include "stride_iter.h"
#define MAX_ELEMENT (1<<30) // 2147483647
#define SLICE_END (MAX_ELEMENT) // 2147483647
namespace tensor {
typedef int size_type;
usin... |
valkyrienyanko/game-engine | Game Engine/src/graphics/simple2drenderer.h | <filename>Game Engine/src/graphics/simple2drenderer.h
#pragma once
#include <deque>
#include "renderer2d.h"
namespace valk {
namespace graphics {
class Simple2DRenderer : public Renderer2D
{
private:
std::deque<const Renderable2D*> m_RenderQueue;
public:
void submit(const Renderable2D* renderable) over... |
valkyrienyanko/game-engine | Game Engine/src/graphics/renderer2d.h | <reponame>valkyrienyanko/game-engine
#pragma once
#include <GL/glew.h>
#include "../maths/maths.h"
#include "renderer.h"
#include "renderable2d.h"
namespace valk {
namespace graphics {
class Renderer2D
{
protected:
virtual void submit(const Renderable2D* renderable) = 0;
virtual void flush() = 0;
};
... |
valkyrienyanko/game-engine | Game Engine/src/maths/vec2.h | #pragma once
#include <iostream>
namespace valk {
namespace maths {
struct vec2
{
float x, y;
vec2();
vec2(const float& x, const float& y);
vec2& add(const vec2& other);
vec2& subtract(const vec2& other);
vec2& multiply(const vec2& other);
vec2& divide(const vec2& other);
friend vec2 o... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.