summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/ip.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>2000-06-08 20:07:48 +0000
committerbrian <brian@FreeBSD.org>2000-06-08 20:07:48 +0000
commita1cdd9887d5caf99cffb4e24b9914d658aa8eff2 (patch)
tree3108832b282eac6f9ced37c4fa5a7425c6c50a9a /usr.sbin/ppp/ip.c
parent24f1d56209602c34bb02098ef4f984cee28a0acc (diff)
downloadFreeBSD-src-a1cdd9887d5caf99cffb4e24b9914d658aa8eff2.zip
FreeBSD-src-a1cdd9887d5caf99cffb4e24b9914d658aa8eff2.tar.gz
Allow ``set urgent none'' to disable all urgent ports and IPTOS_LOWDELAY
prioritisation. Requested by: luigi
Diffstat (limited to 'usr.sbin/ppp/ip.c')
-rw-r--r--usr.sbin/ppp/ip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ppp/ip.c b/usr.sbin/ppp/ip.c
index fd651b5..9552ccc 100644
--- a/usr.sbin/ppp/ip.c
+++ b/usr.sbin/ppp/ip.c
@@ -475,7 +475,7 @@ PacketCheck(struct bundle *bundle, char *cp, int nb, struct filter *filter)
case IPPROTO_UDP:
uh = (struct udphdr *) ptop;
- if (pip->ip_tos == IPTOS_LOWDELAY)
+ if (pip->ip_tos == IPTOS_LOWDELAY && bundle->ncp.ipcp.cfg.urgent.tos)
pri++;
if ((ntohs(pip->ip_off) & IP_OFFMASK) == 0 &&
@@ -545,7 +545,7 @@ PacketCheck(struct bundle *bundle, char *cp, int nb, struct filter *filter)
case IPPROTO_TCP:
th = (struct tcphdr *) ptop;
- if (pip->ip_tos == IPTOS_LOWDELAY)
+ if (pip->ip_tos == IPTOS_LOWDELAY && bundle->ncp.ipcp.cfg.urgent.tos)
pri++;
if ((ntohs(pip->ip_off) & IP_OFFMASK) == 0 &&
OpenPOWER on IntegriCloud