summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHartmut Brandt <harti@FreeBSD.org>2003-07-15 11:50:59 +0000
committerHartmut Brandt <harti@FreeBSD.org>2003-07-15 11:50:59 +0000
commitb3d4fe3d0432f8f8f59b521ff9cd2173dacfd427 (patch)
tree1920b8fbb064468c4347e70463abc44aa726da67
parent09d405d96936809e1bc5c8d75a738fda41cdc96d (diff)
Notes
-rw-r--r--sys/netgraph/atm/ng_atm.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/sys/netgraph/atm/ng_atm.c b/sys/netgraph/atm/ng_atm.c
index 9b8818e90c458..8ef0f5395196b 100644
--- a/sys/netgraph/atm/ng_atm.c
+++ b/sys/netgraph/atm/ng_atm.c
@@ -638,8 +638,6 @@ ng_atm_cpcs_init(node_p node, const struct ngm_atm_cpcs_init *arg)
return (EINVAL);
data.param.vpi = arg->vpi;
- if (arg->vci > 0xffff)
- return (EINVAL);
/* allow 0.0 as catch all receive channel */
if (arg->vci == 0 && (arg->vpi != 0 || !(arg->flags & ATMIO_FLAG_NOTX)))
return (EINVAL);
@@ -655,8 +653,6 @@ ng_atm_cpcs_init(node_p node, const struct ngm_atm_cpcs_init *arg)
if (arg->tmtu == 0)
data.param.tmtu = priv->ifp->if_mtu;
else {
- if (arg->tmtu > (1 << 16))
- return (EINVAL);
data.param.tmtu = arg->tmtu;
}
}
@@ -664,8 +660,6 @@ ng_atm_cpcs_init(node_p node, const struct ngm_atm_cpcs_init *arg)
if (arg->rmtu == 0)
data.param.rmtu = priv->ifp->if_mtu;
else {
- if (arg->rmtu > (1 << 16))
- return (EINVAL);
data.param.rmtu = arg->rmtu;
}
}