mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-02-06 11:09:13 +00:00
Fixed some comments to make code easier to follow, and remove a
note for an issue that has been fixed.
This commit is contained in:
parent
7928de5b01
commit
d808534a1e
@ -588,7 +588,6 @@ int overlay_stuff_packet_from_queue(int i,overlay_buffer *e,int q,long long now,
|
|||||||
|
|
||||||
if (!pp) break;
|
if (!pp) break;
|
||||||
|
|
||||||
/* XXX Uses hardcoded freshness threshold, when it should get it from the queue */
|
|
||||||
if (0) printf("now=%lld, *p=%p, q=%d, overlay_tx[q]=%p\n",
|
if (0) printf("now=%lld, *p=%p, q=%d, overlay_tx[q]=%p\n",
|
||||||
now,*p,q,&overlay_tx[q]);
|
now,*p,q,&overlay_tx[q]);
|
||||||
if (0) overlay_queue_dump(&overlay_tx[q]);
|
if (0) overlay_queue_dump(&overlay_tx[q]);
|
||||||
@ -611,13 +610,16 @@ int overlay_stuff_packet_from_queue(int i,overlay_buffer *e,int q,long long now,
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* XXX Filter for those which should be sent via this interface.
|
/* We keep trying to queue frames in case they will fit, as not all
|
||||||
To do that we need to know the nexthop, and the best route to the next hop. */
|
frames are of equal size. This means that lower bit-rate codecs will
|
||||||
|
get higher priority, which is probably not all bad. The only hard
|
||||||
/* We keep trying to queue frames in case they will fit, as not all frames are of equal size.
|
limit is the maximum number of payloads we allow in a frame, which is
|
||||||
This means that lower bit-rate codecs will get higher priority, which is probably not all
|
set so high as to be irrelevant, even on loopback or gigabit ethernet
|
||||||
bad. The only hard limit is the maximum number of payloads we allow in a frame, which is
|
interface */
|
||||||
set so high as to be irrelevant, even on loopback or gigabit ethernet interface */
|
|
||||||
|
/* Filter for those which should be sent via this interface.
|
||||||
|
To do that we need to know the nexthop, and the best route to the
|
||||||
|
next hop. */
|
||||||
int dontSend=1;
|
int dontSend=1;
|
||||||
|
|
||||||
/* See if this interface has the best path to this node */
|
/* See if this interface has the best path to this node */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user