Skip to content

Commit

Permalink
remove struct arpreq from net/if_arp.h
Browse files Browse the repository at this point in the history
unused since "rewrite to merge arp and routing tables"
in CSRG if_ether.c 7.14 (Berkeley) 06/25/91

used by SIOCSARP, SIOCGARP, SIOCDARP, OSIOCGARP ioctls in Net/2
which were removed before 4.4BSD-Lite

ok sthen@ who tested this with a ports build
  • Loading branch information
jonathangray committed Oct 15, 2024
1 parent a5ae96e commit ff46e7d
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions sys/net/if_arp.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* $OpenBSD: if_arp.h,v 1.7 2017/01/24 10:08:30 krw Exp $ */
/* $OpenBSD: if_arp.h,v 1.8 2024/10/15 00:41:40 jsg Exp $ */
/* $NetBSD: if_arp.h,v 1.8 1995/03/08 02:56:52 cgd Exp $ */

/*
Expand Down Expand Up @@ -71,19 +71,4 @@ struct arphdr {
u_int8_t ar_tpa[]; /* target protocol address */
#endif
};

/*
* ARP ioctl request
*/
struct arpreq {
struct sockaddr arp_pa; /* protocol address */
struct sockaddr arp_ha; /* hardware address */
int arp_flags; /* flags */
};
/* arp_flags and at_flags field values */
#define ATF_INUSE 0x01 /* entry in use */
#define ATF_COM 0x02 /* completed entry (enaddr valid) */
#define ATF_PERM 0x04 /* permanent entry */
#define ATF_PUBL 0x08 /* publish entry (respond for other host) */
#define ATF_USETRAILERS 0x10 /* has requested trailers */
#endif /* _NET_IF_ARP_H_ */

0 comments on commit ff46e7d

Please sign in to comment.