/* * osd_sec.h - OSD security manager API * * Copyright (C) 2008 Panasas Inc. All rights reserved. * * Authors: * Boaz Harrosh * Benny Halevy * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 * */ #ifndef __OSD_SEC_H__ #define __OSD_SEC_H__ #include #include /* * Contains types and constants of osd capabilities and security * encoding/decoding. * API is trying to keep security abstract so initiator of an object * based pNFS client knows as little as possible about security and * capabilities. It is the Server's osd-initiator place to know more. * Also can be used by osd-target. */ void osd_sec_encode_caps(void *caps, ...);/* NI */ void osd_sec_init_nosec_doall_caps(void *caps, const struct osd_obj_id *obj, bool is_collection, const bool is_v1); bool osd_is_sec_alldata(struct osd_security_parameters *sec_params); /* Conditionally sign the CDB according to security setting in ocdb * with cap_key */ void osd_sec_sign_cdb(struct osd_cdb *ocdb, const u8 *cap_key); /* Unconditionally sign the BIO data with cap_key. * Check for osd_is_sec_alldata() was done prior to calling this. */ void osd_sec_sign_data(void *data_integ, struct bio *bio, const u8 *cap_key); /* Version independent copy of caps into the cdb */ void osd_set_caps(struct osd_cdb *cdb, const void *caps); #endif /* ndef __OSD_SEC_H__ */ lauser
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Horman <simon.horman@netronome.com>2017-01-30 16:19:02 +0100
committerDavid S. Miller <davem@davemloft.net>2017-01-30 16:42:09 -0500
commit040587af31228d82c52267f717c9fcdb65f36335 (patch)
treeb681c1594f967396fcf3ce80f17444183bb37900 /include/uapi/asm-generic/int-l64.h
parent0d29ed28da63dd893395c343c7e78b078de93ceb (diff)
net/sched: cls_flower: Correct matching on ICMPv6 code
When matching on the ICMPv6 code ICMPV6_CODE rather than ICMPV4_CODE attributes should be used. This corrects what appears to be a typo. Sample usage: tc qdisc add dev eth0 ingress tc filter add dev eth0 protocol ipv6 parent ffff: flower \ indev eth0 ip_proto icmpv6 type 128 code 0 action drop Without this change the code parameter above is effectively ignored. Fixes: 7b684884fbfa ("net/sched: cls_flower: Support matching on ICMP type and code") Signed-off-by: Simon Horman <simon.horman@netronome.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/uapi/asm-generic/int-l64.h')