Skip to content

Commit ff46e7d

Browse files
committed
remove struct arpreq from net/if_arp.h
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
1 parent a5ae96e commit ff46e7d

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

sys/net/if_arp.h

+1-16
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $OpenBSD: if_arp.h,v 1.7 2017/01/24 10:08:30 krw Exp $ */
1+
/* $OpenBSD: if_arp.h,v 1.8 2024/10/15 00:41:40 jsg Exp $ */
22
/* $NetBSD: if_arp.h,v 1.8 1995/03/08 02:56:52 cgd Exp $ */
33

44
/*
@@ -71,19 +71,4 @@ struct arphdr {
7171
u_int8_t ar_tpa[]; /* target protocol address */
7272
#endif
7373
};
74-
75-
/*
76-
* ARP ioctl request
77-
*/
78-
struct arpreq {
79-
struct sockaddr arp_pa; /* protocol address */
80-
struct sockaddr arp_ha; /* hardware address */
81-
int arp_flags; /* flags */
82-
};
83-
/* arp_flags and at_flags field values */
84-
#define ATF_INUSE 0x01 /* entry in use */
85-
#define ATF_COM 0x02 /* completed entry (enaddr valid) */
86-
#define ATF_PERM 0x04 /* permanent entry */
87-
#define ATF_PUBL 0x08 /* publish entry (respond for other host) */
88-
#define ATF_USETRAILERS 0x10 /* has requested trailers */
8974
#endif /* _NET_IF_ARP_H_ */

0 commit comments

Comments
 (0)