summaryrefslogtreecommitdiff
path: root/sbin/route
diff options
context:
space:
mode:
authorGleb Smirnoff <glebius@FreeBSD.org>2013-01-31 08:55:21 +0000
committerGleb Smirnoff <glebius@FreeBSD.org>2013-01-31 08:55:21 +0000
commit9711a168b937802c369ef4241590f671cbee9243 (patch)
treee3ea2bc458475248ba21882d2e6ebd842532550e /sbin/route
parentb8f355bf5068cb898f4759ecba617cd635fbe08c (diff)
downloadsrc-test-9711a168b937802c369ef4241590f671cbee9243.tar.gz
src-test-9711a168b937802c369ef4241590f671cbee9243.zip
Notes
Diffstat (limited to 'sbin/route')
-rw-r--r--sbin/route/route.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sbin/route/route.c b/sbin/route/route.c
index 4637ba4ef166e..48f90a768d230 100644
--- a/sbin/route/route.c
+++ b/sbin/route/route.c
@@ -86,7 +86,6 @@ union sockunion {
#endif
struct sockaddr_at sat;
struct sockaddr_dl sdl;
- struct sockaddr_inarp sinarp;
struct sockaddr_storage ss; /* added to avoid memory overrun */
} so_dst, so_gate, so_mask, so_genmask, so_ifa, so_ifp;
@@ -923,10 +922,8 @@ newroute(int argc, char **argv)
flags |= RTF_HOST;
if ((nrflags & F_INTERFACE) == 0)
flags |= RTF_GATEWAY;
- if (nrflags & F_PROXY) {
- so_dst.sinarp.sin_other = SIN_PROXY;
+ if (nrflags & F_PROXY)
flags |= RTF_ANNOUNCE;
- }
if (dest == NULL)
dest = "";
if (gateway == NULL)