alias.c (32377) | alias.c (35314) |
---|---|
1/* -*- mode: c; tab-width: 8; c-basic-indent: 4; -*- */ 2/* 3 Alias.c provides supervisory control for the functions of the 4 packet aliasing software. It consists of routines to monitor 5 TCP connection state, protocol-specific aliasing routines, 6 fragment handling and the following outside world functional 7 interfaces: SaveFragmentPtr, GetFragmentPtr, FragmentAliasIn, 8 PacketAliasIn and PacketAliasOut. --- 304 unchanged lines hidden (view full) --- 313 if (ip->ip_p == IPPROTO_UDP) 314 link = FindUdpTcpIn(ip->ip_dst, ip->ip_src, 315 ud->uh_dport, ud->uh_sport, 316 IPPROTO_UDP); 317 else if (ip->ip_p == IPPROTO_TCP) 318 link = FindUdpTcpIn(ip->ip_dst, ip->ip_src, 319 tc->th_dport, tc->th_sport, 320 IPPROTO_TCP); | 1/* -*- mode: c; tab-width: 8; c-basic-indent: 4; -*- */ 2/* 3 Alias.c provides supervisory control for the functions of the 4 packet aliasing software. It consists of routines to monitor 5 TCP connection state, protocol-specific aliasing routines, 6 fragment handling and the following outside world functional 7 interfaces: SaveFragmentPtr, GetFragmentPtr, FragmentAliasIn, 8 PacketAliasIn and PacketAliasOut. --- 304 unchanged lines hidden (view full) --- 313 if (ip->ip_p == IPPROTO_UDP) 314 link = FindUdpTcpIn(ip->ip_dst, ip->ip_src, 315 ud->uh_dport, ud->uh_sport, 316 IPPROTO_UDP); 317 else if (ip->ip_p == IPPROTO_TCP) 318 link = FindUdpTcpIn(ip->ip_dst, ip->ip_src, 319 tc->th_dport, tc->th_sport, 320 IPPROTO_TCP); |
321 else if (ip->ip_p == IPPROTO_ICMP) | 321 else if (ip->ip_p == IPPROTO_ICMP) { |
322 if (ic2->icmp_type == ICMP_ECHO || ic2->icmp_type == ICMP_TSTAMP) 323 link = FindIcmpIn(ip->ip_dst, ip->ip_src, ic2->icmp_id); 324 else 325 link = NULL; | 322 if (ic2->icmp_type == ICMP_ECHO || ic2->icmp_type == ICMP_TSTAMP) 323 link = FindIcmpIn(ip->ip_dst, ip->ip_src, ic2->icmp_id); 324 else 325 link = NULL; |
326 else | 326 } else |
327 link = NULL; 328 329 if (link != NULL) 330 { 331 if (ip->ip_p == IPPROTO_UDP || ip->ip_p == IPPROTO_TCP) 332 { 333 u_short *sptr; 334 int accumulate; --- 780 unchanged lines hidden --- | 327 link = NULL; 328 329 if (link != NULL) 330 { 331 if (ip->ip_p == IPPROTO_UDP || ip->ip_p == IPPROTO_TCP) 332 { 333 u_short *sptr; 334 int accumulate; --- 780 unchanged lines hidden --- |