diff options
author | maxim <maxim@FreeBSD.org> | 2002-10-10 12:03:36 +0000 |
---|---|---|
committer | maxim <maxim@FreeBSD.org> | 2002-10-10 12:03:36 +0000 |
commit | 69c0f490ccc6bbe6a091b16d218e0a19223b20e4 (patch) | |
tree | bbb97d07232e2f1b3aa350e960cc95f88dbe21fe /sys/netinet/ip_input.c | |
parent | 70e019aa6b1aca06de62428dd78df28d795c27c4 (diff) | |
download | FreeBSD-src-69c0f490ccc6bbe6a091b16d218e0a19223b20e4.zip FreeBSD-src-69c0f490ccc6bbe6a091b16d218e0a19223b20e4.tar.gz |
Fix IPOPT_TS processing: do not overwrite IP address by timestamp.
PR: misc/42121
Submitted by: Praveen Khurjekar <praveen@codito.com>
Reviewed by: silence on -net
MFC after: 1 month
Diffstat (limited to 'sys/netinet/ip_input.c')
-rw-r--r-- | sys/netinet/ip_input.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c index 54cd90b..119021c 100644 --- a/sys/netinet/ip_input.c +++ b/sys/netinet/ip_input.c @@ -1405,6 +1405,7 @@ dropit: (void)memcpy(sin, &IA_SIN(ia)->sin_addr, sizeof(struct in_addr)); cp[IPOPT_OFFSET] += sizeof(struct in_addr); + off += sizeof(struct in_addr); break; case IPOPT_TS_PRESPEC: @@ -1418,6 +1419,7 @@ dropit: if (ifa_ifwithaddr((SA)&ipaddr) == 0) continue; cp[IPOPT_OFFSET] += sizeof(struct in_addr); + off += sizeof(struct in_addr); break; default: |