Skip to content

Commit

Permalink
bind sessions to specific sending host and port
Browse files Browse the repository at this point in the history
  • Loading branch information
ka9q committed Apr 2, 2024
1 parent ae4d1f3 commit 7ada339
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ $ sudo addgroup your_user_name radio

Membership in a few other groups can minimize the need to run as root:

**adm** Look at */var/log/syslog
**adm** Look at */var/log/syslog*
**plugdev** Run *radiod* under a debugger with most devices
**users** Run *radiod* under a debugger with the Funcube dongle

Expand Down
4 changes: 1 addition & 3 deletions monitor.c
Original file line number Diff line number Diff line change
Expand Up @@ -559,6 +559,7 @@ static void *sockproc(void *arg){
pthread_mutex_init(&sp->qmutex,NULL);

sp->ssrc = pkt->rtp.ssrc;
memcpy(&sp->sender,&sender,sizeof(sender)); // Bind to specific host and sending port
char const *id = lookupid(pkt->rtp.ssrc);
if(id)
strlcpy(sp->id,id,sizeof(sp->id));
Expand Down Expand Up @@ -589,9 +590,6 @@ static void *sockproc(void *arg){
continue;
}
}
// Copy sender, in case the port number changed
memcpy(&sp->sender,&sender,sizeof(sender));

// Insert onto queue sorted by sequence number, wake up thread
struct packet *q_prev = NULL;
struct packet *qe = NULL;
Expand Down

0 comments on commit 7ada339

Please sign in to comment.