Deleted Added
full compact
alias_irc.c (35314) alias_irc.c (36711)
1/* Alias_irc.c intercepts packages contain IRC CTCP commands, and
2 changes DCC commands to export a port on the aliasing host instead
3 of an aliased host.
4
5 For this routine to work, the DCC command must fit entirely into a
6 single TCP packet. This will usually happen, but is not
7 guaranteed.
8

--- 209 unchanged lines hidden (view full) ---

218 destaddr,
219 true_port,
220 0, IPPROTO_TCP);
221 DBprintf(("Got a DCC link\n"));
222 if ( dcc_link ) {
223 struct in_addr alias_address; /* Address from aliasing */
224 u_short alias_port; /* Port given by aliasing */
225
1/* Alias_irc.c intercepts packages contain IRC CTCP commands, and
2 changes DCC commands to export a port on the aliasing host instead
3 of an aliased host.
4
5 For this routine to work, the DCC command must fit entirely into a
6 single TCP packet. This will usually happen, but is not
7 guaranteed.
8

--- 209 unchanged lines hidden (view full) ---

218 destaddr,
219 true_port,
220 0, IPPROTO_TCP);
221 DBprintf(("Got a DCC link\n"));
222 if ( dcc_link ) {
223 struct in_addr alias_address; /* Address from aliasing */
224 u_short alias_port; /* Port given by aliasing */
225
226#ifndef NO_FW_PUNCH
226 /* Generate firewall hole as appropriate */
227 PunchFWHole(dcc_link);
227 /* Generate firewall hole as appropriate */
228 PunchFWHole(dcc_link);
229#endif
228
229 alias_address = GetAliasAddress(link);
230 iCopy += snprintf(&newpacket[iCopy],
231 sizeof(newpacket)-iCopy,
232 "%lu ", (u_long)htonl(alias_address.s_addr));
233 if( iCopy >= sizeof(newpacket) ) { /* Truncated/fit exactly - bad news */
234 DBprintf(("DCC constructed packet overflow.\n"));
235 goto lBAD_CTCP;

--- 79 unchanged lines hidden ---
230
231 alias_address = GetAliasAddress(link);
232 iCopy += snprintf(&newpacket[iCopy],
233 sizeof(newpacket)-iCopy,
234 "%lu ", (u_long)htonl(alias_address.s_addr));
235 if( iCopy >= sizeof(newpacket) ) { /* Truncated/fit exactly - bad news */
236 DBprintf(("DCC constructed packet overflow.\n"));
237 goto lBAD_CTCP;

--- 79 unchanged lines hidden ---