/freebsd-11-stable/sys/netipsec/ |
H A D | xform_esp.c | 104 esp_hdrsiz(struct secasvar *sav) argument 108 if (sav != NULL) { 110 IPSEC_ASSERT(sav->tdb_encalgxform != NULL, 112 if (sav->flags & SADB_X_EXT_OLD) 116 size += sav->tdb_encalgxform->blocksize + 9; 118 if (sav->tdb_authalgxform != NULL && sav->replay) 119 size += ah_hdrsiz(sav); 138 esp_init(struct secasvar *sav, struct xformsw *xsp) argument 145 txform = enc_algorithm_lookup(sav 275 esp_zeroize(struct secasvar *sav) argument 291 esp_input(struct mbuf *m, struct secasvar *sav, int skip, int protoff) argument 474 struct secasvar *sav; local 661 esp_output(struct mbuf *m, struct secpolicy *sp, struct secasvar *sav, u_int idx, int skip, int protoff) argument 916 struct secasvar *sav; local [all...] |
H A D | xform_ah.c | 82 #define HDRSIZE(sav) \ 83 (((sav)->flags & SADB_X_EXT_OLD) ? \ 89 #define AUTHSIZE(sav) ((sav->flags & SADB_X_EXT_OLD) ? 16 : \ 90 xform_ah_authsize((sav)->tdb_authalgxform)) 147 ah_hdrsiz(struct secasvar *sav) argument 151 if (sav != NULL) { 153 IPSEC_ASSERT(sav->tdb_authalgxform != NULL, ("null xform")); 155 authsize = AUTHSIZE(sav); 156 size = roundup(authsize, sizeof (u_int32_t)) + HDRSIZE(sav); 168 ah_init0(struct secasvar *sav, struct xformsw *xsp, struct cryptoini *cria) argument 242 ah_init(struct secasvar *sav, struct xformsw *xsp) argument 258 ah_zeroize(struct secasvar *sav) argument 551 ah_input(struct mbuf *m, struct secasvar *sav, int skip, int protoff) argument 710 struct secasvar *sav; local 855 ah_output(struct mbuf *m, struct secpolicy *sp, struct secasvar *sav, u_int idx, int skip, int protoff) argument 1090 struct secasvar *sav; local [all...] |
H A D | key.c | 852 struct secasvar *sav; local 872 sav = TAILQ_LAST(&sah->savtree_alive, secasvar_queue); 874 sav = TAILQ_FIRST(&sah->savtree_alive); 875 if (sav != NULL) 876 SAV_ADDREF(sav); 878 sav = NULL; 881 if (sav != NULL) { 883 printf("%s: return SA(%p)\n", __func__, sav)); 884 KEYDBG(IPSEC_DATA, kdebug_secasv(sav)); 890 return (sav); 905 struct secasvar *sav; local 983 struct secasvar *sav; local 1030 struct secasvar *sav; local 1227 struct secasvar *sav = *psav; local 1246 key_unlinksav(struct secasvar *sav) argument 2778 struct secasvar *sav; local 2928 key_cleansav(struct secasvar *sav) argument 2982 key_delsav(struct secasvar *sav) argument 3037 struct secasvar *sav; local 3059 struct secasvar *sav; local 3074 key_updatelifetimes(struct secasvar *sav, const struct sadb_msghdr *mhp) argument 3158 key_setsaval(struct secasvar *sav, const struct sadb_msghdr *mhp) argument 3422 key_setdumpsa(struct secasvar *sav, uint8_t type, uint8_t satype, uint32_t seq, uint32_t pid) argument 3670 key_setsadbsa(struct secasvar *sav) argument 4363 struct secasvar *sav, *nextsav; local 4722 struct secasvar *sav; local 4975 struct secasvar *sav; local 5019 key_updateaddresses(struct socket *so, struct mbuf *m, const struct sadb_msghdr *mhp, struct secasvar *sav, struct secasindex *saidx) argument 5208 struct secasvar *sav; local 5434 struct secasvar *sav; local 5595 key_setnatt(struct secasvar *sav, const struct sadb_msghdr *mhp) argument 5866 struct secasvar *sav; local 5970 struct secasvar *sav, *nextsav; local 6032 struct secasvar *sav, *nextsav; local 6086 struct secasvar *sav; local 7172 key_expire(struct secasvar *sav, int hard) argument 7321 struct secasvar *sav, *nextsav; local 7365 struct secasvar *sav; local 7478 struct secasvar *sav; local 8148 struct secasvar *sav; local 8252 key_sa_recordxfer(struct secasvar *sav, struct mbuf *m) argument 8447 xform_init(struct secasvar *sav, u_short xftype) argument [all...] |
H A D | xform_tcp.c | 170 struct secasvar *sav, u_char *buf) 178 switch (sav->sah->saidx.dst.sa.sa_family) { 211 MD5Update(&ctx, sav->key_auth->key_data, _KEYLEN(sav->key_auth)); 213 key_sa_recordxfer(sav, m); 257 struct secasvar *sav; local 263 sav = key_allocsa_tcpmd5(&saidx); 264 if (sav == NULL) { 273 tcp_signature_compute(m, th, sav, tmpdigest); 275 key_freesav(&sav); 169 tcp_signature_compute(struct mbuf *m, struct tcphdr *th, struct secasvar *sav, u_char *buf) argument 297 struct secasvar *sav; local 335 tcpsignature_init(struct secasvar *sav, struct xformsw *xsp) argument 361 tcpsignature_zeroize(struct secasvar *sav) argument [all...] |
H A D | udpencap.c | 119 struct secasvar *sav; local 166 sav = key_allocsa(&dst, IPPROTO_ESP, spi); 167 if (sav == NULL) { 173 if (sav->natt == NULL || 174 sav->natt->sport != udp->uh_sport || 175 sav->natt->dport != udp->uh_dport) { 178 key_freesav(&sav); 208 (*sav->tdb_xform->xf_input)(m, sav, hlen, off); 213 udp_ipsec_output(struct mbuf *m, struct secasvar *sav) argument 246 udp_ipsec_adjust_cksum(struct mbuf *m, struct secasvar *sav, int proto, int skip) argument [all...] |
H A D | xform_ipcomp.c | 106 struct secasvar *sav; local 108 sav = key_allocsa_tunnel(src, dst, IPPROTO_IPCOMP); 109 if (sav == NULL) 111 key_freesav(&sav); 151 ipcomp_init(struct secasvar *sav, struct xformsw *xsp) argument 157 tcomp = comp_algorithm_lookup(sav->alg_enc); 160 sav->alg_comp)); 163 sav->alg_comp = sav->alg_enc; /* set for doing histogram */ 164 sav 178 ipcomp_zeroize(struct secasvar *sav) argument 191 ipcomp_input(struct mbuf *m, struct secasvar *sav, int skip, int protoff) argument 280 struct secasvar *sav; local 393 ipcomp_output(struct mbuf *m, struct secpolicy *sp, struct secasvar *sav, u_int idx, int skip, int protoff) argument 534 struct secasvar *sav; local [all...] |
H A D | ipsec_input.c | 122 struct secasvar *sav; local 201 sav = key_allocsa(&dst_address, sproto, spi); 202 if (sav == NULL) { 211 if (sav->tdb_xform == NULL) { 216 key_freesav(&sav); 225 error = (*sav->tdb_xform->xf_input)(m, sav, skip, protoff); 277 ipsec4_common_input_cb(struct mbuf *m, struct secasvar *sav, int skip, argument 288 IPSEC_ASSERT(sav != NULL, ("null SA")); 289 IPSEC_ASSERT(sav 488 ipsec6_common_input_cb(struct mbuf *m, struct secasvar *sav, int skip, int protoff) argument [all...] |
H A D | xform.h | 73 struct secasvar *sav; /* related SA */ member in struct:xform_data 111 extern int ah_zeroize(struct secasvar *sav); 115 extern size_t esp_hdrsiz(struct secasvar *sav);
|
H A D | ipsec_output.c | 113 struct secasvar *sav; local 158 sav = key_allocsa_policy(sp, saidx, error); 159 if (sav == NULL) { 176 IPSEC_ASSERT(sav->tdb_xform != NULL, ("SA with NULL tdb_xform")); 177 return (sav); 189 struct secasvar *sav; local 204 sav = ipsec4_allocsa(m, sp, &idx, &error); 205 if (sav == NULL) { 215 IPSEC_INIT_CTX(&ctx, &m, inp, sav, AF_INET, IPSEC_ENC_BEFORE); 220 dst = &sav 413 struct secasvar *sav; local 501 struct secasvar *sav; local 686 ipsec_process_done(struct mbuf *m, struct secpolicy *sp, struct secasvar *sav, u_int idx) argument [all...] |
H A D | key_debug.c | 844 kdebug_secasv(struct secasvar *sav) argument 848 IPSEC_ASSERT(sav != NULL, ("null sav")); 851 sav->refcnt, ntohl(sav->spi), sav->seq, (uint32_t)sav->pid, 852 sav->flags, kdebug_secasv_state(sav->state)); 853 kdebug_secash(sav 966 ipsec_sa2str(struct secasvar *sav, char *buf, size_t size) argument [all...] |
H A D | ipsec.c | 1182 ipsec_chkreplay(uint32_t seq, struct secasvar *sav) argument 1188 IPSEC_ASSERT(sav != NULL, ("Null SA")); 1189 IPSEC_ASSERT(sav->replay != NULL, ("Null replay state")); 1191 replay = sav->replay; 1236 ipsec_updatereplay(uint32_t seq, struct secasvar *sav) argument 1243 IPSEC_ASSERT(sav != NULL, ("Null SA")); 1244 IPSEC_ASSERT(sav->replay != NULL, ("Null replay state")); 1246 replay = sav->replay; 1300 if ((sav->flags & SADB_X_EXT_CYCSEQ) == 0) { 1301 if (sav 1318 ipsec_updateid(struct secasvar *sav, uint64_t *new, uint64_t *old) argument [all...] |
H A D | ipsec.h | 254 (_ctx)->sav = (_sav); \
|
/freebsd-11-stable/usr.sbin/sa/tests/ |
H A D | Makefile | 8 ${PACKAGE}FILES+= v1-amd64-sav.in 9 ${PACKAGE}FILES+= v1-amd64-sav.out 13 ${PACKAGE}FILES+= v1-i386-sav.in 14 ${PACKAGE}FILES+= v1-i386-sav.out 18 ${PACKAGE}FILES+= v1-sparc64-sav.in 19 ${PACKAGE}FILES+= v1-sparc64-sav.out 23 ${PACKAGE}FILES+= v2-amd64-sav.in 26 ${PACKAGE}FILES+= v2-i386-sav.in 29 ${PACKAGE}FILES+= v2-sparc64-sav.in
|
H A D | legacy_test.sh | 38 sa -i v1-$ARCH-acct.in | check 3 $DIR/v1-$ARCH-sav.out 42 sa -P $DIR/v1-$ARCH-sav.in -U $DIR/v1-$ARCH-usr.in /dev/null | 43 check 5 $DIR/v1-$ARCH-sav.out 44 sa -m -P $DIR/v1-$ARCH-sav.in -U $DIR/v1-$ARCH-usr.in /dev/null | 48 install -c -m 644 $DIR/v1-$ARCH-sav.in v2c-$ARCH-sav.in 50 sa -s -P v2c-$ARCH-sav.in -U v2c-$ARCH-usr.in /dev/null >/dev/null 51 sa -P v2c-$ARCH-sav.in -U v2c-$ARCH-usr.in /dev/null | 52 check 7 $DIR/v1-$ARCH-sav.out 53 sa -m -P v2c-$ARCH-sav [all...] |
H A D | prime.sh | 29 $SANEW -i $LCDIR/v1-$ARCH-acct.in >v1-$ARCH-sav.out 32 rm -f v1-$ARCH-sav.in v1-$ARCH-usr.in 33 $SAOLD -s -P v1-$ARCH-sav.in -U v1-$ARCH-usr.in acct.in >/dev/null 35 rm -f v2-$ARCH-sav.in v2-$ARCH-usr.in 36 $SANEW -s -P v2-$ARCH-sav.in -U v2-$ARCH-usr.in acct.in >/dev/null
|
/freebsd-11-stable/sys/net/ |
H A D | if_enc.h | 35 struct secasvar *sav; member in struct:ipsec_ctx_data
|
H A D | if_enc.c | 205 enc_bpftap(struct ifnet *ifp, struct mbuf *m, const struct secasvar *sav, argument 219 hdr.spi = sav->spi; 221 if (sav->alg_enc != SADB_EALG_NONE) 223 if (sav->alg_auth != SADB_AALG_NONE) 256 enc_bpftap(ifp, *ctx->mp, ctx->sav, hhook_type, ctx->enc, ctx->af); 309 enc_bpftap(ifp, *ctx->mp, ctx->sav, hhook_type,
|
H A D | if_ipsec.c | 381 ipsec_if_input(struct mbuf *m, struct secasvar *sav, uint32_t af) argument 388 if (sav->state != SADB_SASTATE_MATURE && 389 sav->state != SADB_SASTATE_DYING) { 394 if (sav->sah->saidx.mode != IPSEC_MODE_TUNNEL || 395 sav->sah->saidx.proto != IPPROTO_ESP) 404 LIST_FOREACH(sc, SCHASH_HASH(sav->sah->saidx.reqid), hash) { 406 sav->sah->saidx.src.sa.sa_family); 409 sav->sah->saidx.reqid != saidx->reqid) 412 if (key_sockaddrcmp(&sav->sah->saidx.dst.sa, 415 if (key_sockaddrcmp(&sav [all...] |
/freebsd-11-stable/sys/contrib/octeon-sdk/ |
H A D | cvmx-spinlock.h | 200 unsigned int sav; local 214 : [val] "+m" (*word), [tmp] "=&r" (tmp), [sav] "=&r" (sav)
|
/freebsd-11-stable/contrib/tcsh/ |
H A D | sh.exec.c | 148 Char *dp, **pv, **opv, **av, *sav; local 255 sav = Strspl(STRslash, *av);/* / command name for postpending */ 257 cleanup_push(sav, xfree); 259 Vsav = sav; 290 dp = Strspl(*pv, sav); 321 cleanup_until(sav); 324 xfree(sav); 814 Char *sav; local 824 sav = Strspl(STRslash, name); /* / command name for postpending */ 844 xfree(sav); [all...] |
/freebsd-11-stable/release/picobsd/tinyware/view/ |
H A D | view.c | 115 VGLBitmap sav,clr; local 121 sav.Type=VGLDisplay->Type; 135 sav.Xsize=width; 136 sav.Ysize=height; 139 sav.Bitmap=(byte *)calloc(width*height,1); 146 VGLBitmapCopy(VGLDisplay,x1,y1,&sav,0,0,width,height); 175 VGLBitmapCopy(&sav,0,0,VGLDisplay,x1,y1,width,height); 177 free(sav.Bitmap);
|
/freebsd-11-stable/sys/dev/bwn/ |
H A D | if_bwn_phy_g.c | 2178 bwn_lo_save(struct bwn_mac *mac, struct bwn_lo_g_value *sav) argument 2188 sav->phy_lomask = BWN_PHY_READ(mac, BWN_PHY_LO_MASK); 2189 sav->phy_extg = BWN_PHY_READ(mac, BWN_PHY_EXTG(0x01)); 2190 sav->phy_dacctl_hwpctl = BWN_PHY_READ(mac, BWN_PHY_DACCTL); 2191 sav->phy_cck4 = BWN_PHY_READ(mac, BWN_PHY_CCK(0x14)); 2192 sav->phy_hpwr_tssictl = BWN_PHY_READ(mac, BWN_PHY_HPWR_TSSICTL); 2205 sav->phy_analogover = BWN_PHY_READ(mac, BWN_PHY_ANALOGOVER); 2206 sav->phy_analogoverval = 2208 sav->phy_rfover = BWN_PHY_READ(mac, BWN_PHY_RFOVER); 2209 sav 2295 bwn_lo_restore(struct bwn_mac *mac, struct bwn_lo_g_value *sav) argument [all...] |
/freebsd-11-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/ |
H A D | spa.c | 1661 spa_aux_vdev_t *sav = &spa->spa_l2cache; local 1678 if (sav->sav_config != NULL) { 1679 VERIFY(nvlist_lookup_nvlist_array(sav->sav_config, 1687 oldvdevs = sav->sav_vdevs; 1688 oldnvdevs = sav->sav_count; 1689 sav->sav_vdevs = NULL; 1690 sav->sav_count = 0; 1728 vd->vdev_aux = sav; 1763 if (sav->sav_config == NULL) 1766 sav 2002 spa_aux_check_removed(spa_aux_vdev_t *sav) argument 4541 spa_validate_aux_devs(spa_t *spa, nvlist_t *nvroot, uint64_t crtxg, int mode, spa_aux_vdev_t *sav, const char *config, uint64_t version, vdev_labeltype_t label) argument 4640 spa_set_aux_vdevs(spa_aux_vdev_t *sav, nvlist_t **devs, int ndevs, const char *config) argument 4693 spa_aux_vdev_t *sav = &spa->spa_l2cache; local 7471 spa_sync_aux_dev(spa_t *spa, spa_aux_vdev_t *sav, dmu_tx_t *tx, const char *config, const char *entry) argument 8401 spa_aux_vdev_t *sav = &spa->spa_spares; local 8425 spa_aux_vdev_t *sav = &spa->spa_spares; local [all...] |
/freebsd-11-stable/contrib/ipfilter/tools/ |
H A D | ipmon_y.y | 688 ipmon_saver_int_t *sav, **imsip; 701 for (imsip = &saverlist; (sav = *imsip) != NULL; ) { 702 if (sav->imsi_handle == NULL) 703 imsip = &sav->imsi_next; 705 dlclose(sav->imsi_handle); 707 *imsip = sav->imsi_next; 708 is = sav->imsi_stor; 709 free(sav);
|
/freebsd-11-stable/cddl/contrib/opensolaris/cmd/ztest/ |
H A D | ztest.c | 2672 spa_aux_vdev_t *sav; local 2678 sav = &spa->spa_spares; 2681 sav = &spa->spa_l2cache; 2689 if (sav->sav_count != 0 && ztest_random(4) == 0) { 2693 guid = sav->sav_vdevs[ztest_random(sav->sav_count)]->vdev_guid; 2705 for (c = 0; c < sav->sav_count; c++) 2706 if (strcmp(sav->sav_vdevs[c]->vdev_path, 2709 if (c == sav->sav_count && 2862 spa_aux_vdev_t *sav local 5119 spa_aux_vdev_t *sav = &spa->spa_l2cache; local [all...] |