Don't set precedence and TTL for the dummy socket.
This commit is contained in:
parent
13e9bac33f
commit
e24ddd9bef
1 changed files with 4 additions and 4 deletions
|
@ -622,10 +622,10 @@ new_iface(struct proto *p, struct iface *new, unsigned long flags, struct iface_
|
||||||
rif->sock->daddr = IPA_NONE;
|
rif->sock->daddr = IPA_NONE;
|
||||||
rif->sock->dport = P_CF->port;
|
rif->sock->dport = P_CF->port;
|
||||||
if (new)
|
if (new)
|
||||||
|
{
|
||||||
rif->sock->ttl = 1;
|
rif->sock->ttl = 1;
|
||||||
else
|
rif->sock->tos = IP_PREC_INTERNET_CONTROL;
|
||||||
rif->sock->ttl = 30; /* FIXME: Shouldn't we leave default TTL in this case? [mj] */
|
}
|
||||||
rif->sock->tos = IP_PREC_INTERNET_CONTROL; /* FIXME: Interface sockets only, I guess [mj] */
|
|
||||||
|
|
||||||
if (new) {
|
if (new) {
|
||||||
if (new->addr->flags & IA_UNNUMBERED)
|
if (new->addr->flags & IA_UNNUMBERED)
|
||||||
|
|
Loading…
Reference in a new issue