sockfilter_impl.h revision 3e95bd4ab92abca814bd28e854607d1975c7dc88
1N/A * The contents of this file are subject to the terms of the 1N/A * Common Development and Distribution License (the "License"). 1N/A * You may not use this file except in compliance with the License. 1N/A * See the License for the specific language governing permissions 1N/A * and limitations under the License. 1N/A * When distributing Covered Code, include this CDDL HEADER in each 1N/A * If applicable, add the following below this CDDL HEADER, with the 1N/A * fields enclosed by brackets "[]" replaced with your own identifying 1N/A * information: Portions Copyright [yyyy] [name of copyright owner] 1N/A * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. 1N/A * Per filter statistics. * Socket filter entry - one for each configured filter (added and * removed by soconfig(1M)). * sofe_flags, sofe_refcnt and sofe_mod are protected by sofe_lock, and all * other fields are write once. * Socket filter instance - one for each socket using a sof_entry_t /* Filter instance flags */ #
define SOFIF_BYPASS 0x1 /* filter does not want any callbacks */#
define SOFIF_DEFER 0x2 /* defer notification of socket */ * SOF_FILTER_OP traverses the filter stack for sonode `so' top-down, * calling `op' for each filter with the supplied `args'. A non-negative * return value indicates that a filter action was taken. #
endif /* _SOCKFS_SOCKFILTER_H */