* include/netinet/arp.h
*
* SPDX-License-Identifier: Apache-2.0
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
* ASF licenses this file to you 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
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
****************************************************************************/
#ifndef __INCLUDE_NETINET_ARP_H
#define __INCLUDE_NETINET_ARP_H
* Included Files
****************************************************************************/
#include <nuttx/config.h>
#include <stdint.h>
#include <net/if.h>
#include <net/if_arp.h>
#include <nuttx/fs/ioctl.h>
* Pre-processor Definitions
****************************************************************************/
* pointer to a 'struct arpreq' as its parameter.
*/
#define SIOCSARP _ARPIOC(1)
#define SIOCDARP _ARPIOC(2)
#define SIOCGARP _ARPIOC(3)
* ATF_NETMASK flag is set, then arp_netmask should be valid. This should
* be set to 0xffffffff, or 0 to remove an existing arp entry.
*/
#define ATF_COM (1 << 0)
#define ATF_PERM (1 << 1)
#define ATF_PUBL (1 << 2)
#define ATF_USETRAILERS (1 << 3)
#define ATF_NETMASK (1 << 4)
#define ATF_DONTPUB (1 << 5)
* Public Type Definitions
****************************************************************************/
struct aligned_data(sizeof(uint32_t)) arpreq
{
struct sockaddr arp_pa;
struct sockaddr arp_ha;
struct sockaddr arp_netmask;
uint8_t arp_flags;
char arp_dev[IFNAMSIZ + 1];
};
* Public Data
****************************************************************************/
#ifdef __cplusplus
#define EXTERN extern "C"
extern "C"
{
#else
#define EXTERN extern
#endif
* Public Function Prototypes
****************************************************************************/
#undef EXTERN
#ifdef __cplusplus
}
#endif
#endif