diff options
author | Christiano F. Haesbaert <haesbaert@cvs.openbsd.org> | 2012-04-30 13:41:27 +0000 |
---|---|---|
committer | Christiano F. Haesbaert <haesbaert@cvs.openbsd.org> | 2012-04-30 13:41:27 +0000 |
commit | 0096e084a858467c2251be9590ec7ea3d12028dd (patch) | |
tree | ffbdebe1a05bf889580ee949110d3908c2090c5b /usr.bin/ftp/ftp_var.h | |
parent | 3226ff7a498795efde6d345c1f2258db3e98c1fe (diff) |
Add a -s flag to ftp(1) to let the user specify the source IP address
of the connection. This is useful for testing ftp(1) over VPN tunnels.
This -s flag is present in the other BSDs, including OS X.
All work was done by Lawrence Teo, thanks (-:.
ok myself mikeb
Diffstat (limited to 'usr.bin/ftp/ftp_var.h')
-rw-r--r-- | usr.bin/ftp/ftp_var.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/ftp/ftp_var.h b/usr.bin/ftp/ftp_var.h index 180153fc74c..3ec69627b67 100644 --- a/usr.bin/ftp/ftp_var.h +++ b/usr.bin/ftp/ftp_var.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ftp_var.h,v 1.31 2010/07/02 22:01:10 deraadt Exp $ */ +/* $OpenBSD: ftp_var.h,v 1.32 2012/04/30 13:41:26 haesbaert Exp $ */ /* $NetBSD: ftp_var.h,v 1.18 1997/08/18 10:20:25 lukem Exp $ */ /* @@ -165,6 +165,7 @@ size_t cursor_argc; /* location of cursor in margv */ size_t cursor_argo; /* offset of cursor in margv[cursor_argc] */ char *cookiefile; /* cookie jar to use */ int resume; /* continue transfer */ +char *srcaddr; /* source address to bind to */ #endif /* !SMALL */ off_t bytes; /* current # of bytes read */ |