From 832d32eb5b7bd6f47e1f17432dd86d85cc49bc93 Mon Sep 17 00:00:00 2001 From: Luigi Rizzo Date: Thu, 27 Sep 2001 11:53:22 +0000 Subject: [PATCH] Remove unused (and duplicate) struct ip_opts which is never used, not referenced in Stevens, and does not compile with g++. There is an equivalent structure, struct ipoption in ip_var.h which is actually used in various parts of the kernel, and also referenced in Stevens. Bill Fenner also says: ... if you want the trivia, struct ip_opts was introduced in in.h SCCS revision 7.9, on 6/28/1990, by Mike Karels. struct ipoption was introduced in ip_var.h SCCS revision 6.5, on 9/16/1985, by... Mike Karels. MFC-after: 3 days --- sys/netinet/in.h | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/sys/netinet/in.h b/sys/netinet/in.h index c4f944d3d0e5..a80877d0047a 100644 --- a/sys/netinet/in.h +++ b/sys/netinet/in.h @@ -293,18 +293,6 @@ struct sockaddr_in { #define INET_ADDRSTRLEN 16 -/* - * Structure used to describe IP options. - * Used to store options internally, to pass them to a process, - * or to restore options retrieved earlier. - * The ip_dst is used for the first-hop gateway when using a source route - * (this gets put into the header proper). - */ -struct ip_opts { - struct in_addr ip_dst; /* first hop, 0 w/o src rt */ - char ip_opts[40]; /* actually variable in size */ -}; - /* * Options for use with [gs]etsockopt at the IP level. * First word of comment is data type; bool is stored in int.