diff options
author | Ermal Luçi <eri@FreeBSD.org> | 2017-02-10 05:16:14 +0000 |
---|---|---|
committer | Ermal Luçi <eri@FreeBSD.org> | 2017-02-10 05:16:14 +0000 |
commit | ed55edceef6ae6afec1878287d3c5d9f20cbf1fa (patch) | |
tree | 815a9f351acb302042eda4117868e6b1a44e391e /sys/netinet6/raw_ip6.c | |
parent | 281e4f2dd48e1a9b55f9d120227b6638bedea50e (diff) |
The patch provides the same socket option as Linux IP_ORIGDSTADDR.
Unfortunately they will have different integer value due to Linux value being already assigned in FreeBSD.
The patch is similar to IP_RECVDSTADDR but also provides the destination port value to the application.
This allows/improves implementation of transparent proxies on UDP sockets due to having the whole information on forwarded packets.
Sponsored-by: rsync.net
Differential Revision: D9235
Reviewed-by: adrian
Notes
Notes:
svn path=/head/; revision=313524
Diffstat (limited to 'sys/netinet6/raw_ip6.c')
-rw-r--r-- | sys/netinet6/raw_ip6.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet6/raw_ip6.c b/sys/netinet6/raw_ip6.c index 3ffadef2426b..9dd6577e6b52 100644 --- a/sys/netinet6/raw_ip6.c +++ b/sys/netinet6/raw_ip6.c @@ -166,7 +166,7 @@ rip6_input(struct mbuf **mp, int *offp, int proto) RIP6STAT_INC(rip6s_ipackets); - init_sin6(&fromsa, m); /* general init */ + init_sin6(&fromsa, m, 0); /* general init */ ifp = m->m_pkthdr.rcvif; |