Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/wtap/if_wtapvar.h
/*- | /*- | ||||
* SPDX-License-Identifier: BSD-2-Clause-FreeBSD | * SPDX-License-Identifier: BSD-2-Clause-FreeBSD | ||||
* | * | ||||
* Copyright (c) 2010-2011 Monthadar Al Jaberi, TerraNet AB | * Copyright (c) 2010-2011 Monthadar Al Jaberi, TerraNet AB | ||||
* All rights reserved. | * All rights reserved. | ||||
* | * | ||||
* Copyright (c) 2023 The FreeBSD Foundation | |||||
* | |||||
* Portions of this software were developed by En-Wei Wu | |||||
* under sponsorship from the FreeBSD Foundation. | |||||
* | |||||
* Redistribution and use in source and binary forms, with or without | * Redistribution and use in source and binary forms, with or without | ||||
* modification, are permitted provided that the following conditions | * modification, are permitted provided that the following conditions | ||||
* are met: | * are met: | ||||
* 1. Redistributions of source code must retain the above copyright | * 1. Redistributions of source code must retain the above copyright | ||||
* notice, this list of conditions and the following disclaimer, | * notice, this list of conditions and the following disclaimer, | ||||
* without modification. | * without modification. | ||||
* 2. Redistributions in binary form must reproduce at minimum a disclaimer | * 2. Redistributions in binary form must reproduce at minimum a disclaimer | ||||
* similar to the "NO WARRANTY" disclaimer below ("Disclaimer") and any | * similar to the "NO WARRANTY" disclaimer below ("Disclaimer") and any | ||||
▲ Show 20 Lines • Show All 64 Lines • ▼ Show 20 Lines | |||||
#if 0 | #if 0 | ||||
#define DWTAP_PRINTF(...) printf(__VA_ARGS__) | #define DWTAP_PRINTF(...) printf(__VA_ARGS__) | ||||
#else | #else | ||||
#define DWTAP_PRINTF(...) | #define DWTAP_PRINTF(...) | ||||
#endif | #endif | ||||
#include "if_wtapioctl.h" | #include "if_wtapioctl.h" | ||||
#define MAX_NBR_WTAP (64) | #ifndef MAX_NBR_WTAP | ||||
#define MAX_NBR_WTAP (64) // We support a maximum of 64 nodes for now | |||||
#endif | |||||
#ifndef ARRAY_SIZE | |||||
#define ARRAY_SIZE (MAX_NBR_WTAP / (int)(sizeof(uint32_t) * NBBY)) | |||||
#endif | |||||
#define BEACON_INTRERVAL (1000) | #define BEACON_INTRERVAL (1000) | ||||
MALLOC_DECLARE(M_WTAP); | MALLOC_DECLARE(M_WTAP); | ||||
MALLOC_DECLARE(M_WTAP_PACKET); | MALLOC_DECLARE(M_WTAP_PACKET); | ||||
MALLOC_DECLARE(M_WTAP_BEACON); | MALLOC_DECLARE(M_WTAP_BEACON); | ||||
MALLOC_DECLARE(M_WTAP_RXBUF); | MALLOC_DECLARE(M_WTAP_RXBUF); | ||||
MALLOC_DECLARE(M_WTAP_PLUGIN); | MALLOC_DECLARE(M_WTAP_PLUGIN); | ||||
▲ Show 20 Lines • Show All 64 Lines • Show Last 20 Lines |