tcp_ipv4.c (62910554656cdcd6b6f84a5154c4155aae4ca231) | tcp_ipv4.c (0eae88f31ca2b88911ce843452054139e028771f) |
---|---|
1/* 2 * INET An implementation of the TCP/IP protocol suite for the LINUX 3 * operating system. INET is implemented using the BSD Socket 4 * interface as the means of communication with the user level. 5 * 6 * Implementation of the Transmission Control Protocol(TCP). 7 * 8 * IPv4 specific functions --- 1272 unchanged lines hidden (view full) --- 1281 u8 *c; 1282 u32 *mess = &tmp_ext.cookie_bakery[COOKIE_DIGEST_WORDS]; 1283 int l = tmp_opt.cookie_plus - TCPOLEN_COOKIE_BASE; 1284 1285 if (tcp_cookie_generator(&tmp_ext.cookie_bakery[0]) != 0) 1286 goto drop_and_release; 1287 1288 /* Secret recipe starts with IP addresses */ | 1/* 2 * INET An implementation of the TCP/IP protocol suite for the LINUX 3 * operating system. INET is implemented using the BSD Socket 4 * interface as the means of communication with the user level. 5 * 6 * Implementation of the Transmission Control Protocol(TCP). 7 * 8 * IPv4 specific functions --- 1272 unchanged lines hidden (view full) --- 1281 u8 *c; 1282 u32 *mess = &tmp_ext.cookie_bakery[COOKIE_DIGEST_WORDS]; 1283 int l = tmp_opt.cookie_plus - TCPOLEN_COOKIE_BASE; 1284 1285 if (tcp_cookie_generator(&tmp_ext.cookie_bakery[0]) != 0) 1286 goto drop_and_release; 1287 1288 /* Secret recipe starts with IP addresses */ |
1289 *mess++ ^= daddr; 1290 *mess++ ^= saddr; | 1289 *mess++ ^= (__force u32)daddr; 1290 *mess++ ^= (__force u32)saddr; |
1291 1292 /* plus variable length Initiator Cookie */ 1293 c = (u8 *)mess; 1294 while (l-- > 0) 1295 *c++ ^= *hash_location++; 1296 1297#ifdef CONFIG_SYN_COOKIES 1298 want_cookie = 0; /* not our kind of cookie */ --- 1289 unchanged lines hidden --- | 1291 1292 /* plus variable length Initiator Cookie */ 1293 c = (u8 *)mess; 1294 while (l-- > 0) 1295 *c++ ^= *hash_location++; 1296 1297#ifdef CONFIG_SYN_COOKIES 1298 want_cookie = 0; /* not our kind of cookie */ --- 1289 unchanged lines hidden --- |