Changeset 4029


Ignore:
Timestamp:
Dec 1, 2007, 5:11:30 AM (14 years ago)
Author:
charles
Message:

use PMP_MCAST_ADDR, instead of a hardcoded address, in net.c

Location:
trunk/libtransmission
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/natpmp.c

    r4001 r4029  
    4242
    4343#define PMP_PORT                5351
    44 #define PMP_MCAST_ADDR          "224.0.0.1"
    4544#define PMP_INITIAL_DELAY       250     /* ms, 1/4 second */
    4645#define PMP_TOTAL_DELAY         120000  /* ms, 2 minutes */
  • trunk/libtransmission/natpmp.h

    r3731 r4029  
    3737void        tr_natpmpClose( tr_natpmp * );
    3838
     39#define PMP_MCAST_ADDR "224.0.0.1"
     40
    3941#endif
  • trunk/libtransmission/net.c

    r4028 r4029  
    4141#include "transmission.h"
    4242#include "fdlimit.h"
     43#include "natpmp.h"
    4344#include "net.h"
    4445#include "platform.h"
     
    218219     * for nat-pmp, this quick fix should work. */
    219220    if ( SOCK_DGRAM == type )
    220         sock.sin_addr.s_addr = inet_addr("224.0.0.1");
     221        sock.sin_addr.s_addr = inet_addr( PMP_MCAST_ADDR );
    221222    else
    222223        sock.sin_addr.s_addr = INADDR_ANY;
Note: See TracChangeset for help on using the changeset viewer.