diff options
author | glebius <glebius@FreeBSD.org> | 2006-12-21 10:26:01 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2006-12-21 10:26:01 +0000 |
commit | 692ad8aa69f65e26c7e8062f7ec137d5c67f55d4 (patch) | |
tree | 2d12f1c0a198ec153aa5952a3bf4d7e2727edd84 /sys/netgraph | |
parent | e767bf8cfd7eb89d75cc1c67b7939c0290620637 (diff) | |
download | FreeBSD-src-692ad8aa69f65e26c7e8062f7ec137d5c67f55d4.zip FreeBSD-src-692ad8aa69f65e26c7e8062f7ec137d5c67f55d4.tar.gz |
Return value PKT_ALIAS_FOUND_HEADER_FRAGMENT isn't an error case. The
packet shouldn't be dropped.
Submitted by: Alexander Motin <mav alkar.net>
Diffstat (limited to 'sys/netgraph')
-rw-r--r-- | sys/netgraph/ng_nat.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netgraph/ng_nat.c b/sys/netgraph/ng_nat.c index 4271e2d..0e2097d 100644 --- a/sys/netgraph/ng_nat.c +++ b/sys/netgraph/ng_nat.c @@ -229,7 +229,8 @@ ng_nat_rcvdata(hook_p hook, item_p item ) if (hook == priv->in) { rval = LibAliasIn(priv->lib, c, MCLBYTES); - if (rval != PKT_ALIAS_OK) { + if (rval != PKT_ALIAS_OK && + rval != PKT_ALIAS_FOUND_HEADER_FRAGMENT) { NG_FREE_ITEM(item); return (EINVAL); } |