/freebsd-10.0-release/sys/netipsec/ |
H A D | xform_tcp.c | 85 tcpsignature_init(struct secasvar *sav, struct xformsw *xsp) argument 89 if (sav->spi != htonl(TCP_SIG_SPI)) { 94 if (sav->alg_auth != SADB_X_AALG_TCP_MD5) { 96 __func__, sav->alg_auth)); 99 if (sav->key_auth == NULL) { 103 keylen = _KEYLEN(sav->key_auth); 118 tcpsignature_zeroize(struct secasvar *sav) argument 121 if (sav->key_auth) 122 bzero(sav->key_auth->key_data, _KEYLEN(sav 137 tcpsignature_input(struct mbuf *m, struct secasvar *sav, int skip, int protoff) argument [all...] |
H A D | xform_esp.c | 128 esp_hdrsiz(struct secasvar *sav) argument 132 if (sav != NULL) { 134 IPSEC_ASSERT(sav->tdb_encalgxform != NULL, 136 if (sav->flags & SADB_X_EXT_OLD) 140 size += sav->tdb_encalgxform->blocksize + 9; 142 if (sav->tdb_authalgxform != NULL && sav->replay) 143 size += ah_hdrsiz(sav); 162 esp_init(struct secasvar *sav, struct xformsw *xsp) argument 169 txform = esp_algorithm_lookup(sav 248 esp_zeroize(struct secasvar *sav) argument 268 esp_input(struct mbuf *m, struct secasvar *sav, int skip, int protoff) argument 467 struct secasvar *sav; local 681 struct secasvar *sav; local 918 struct secasvar *sav; local [all...] |
H A D | xform_ah.c | 80 #define HDRSIZE(sav) \ 81 (((sav)->flags & SADB_X_EXT_OLD) ? \ 88 #define AUTHSIZE(sav) ah_authsize(sav) 115 ah_authsize(struct secasvar *sav) argument 118 IPSEC_ASSERT(sav != NULL, ("%s: sav == NULL", __func__)); 120 if (sav->flags & SADB_X_EXT_OLD) 123 switch (sav->alg_auth) { 167 ah_hdrsiz(struct secasvar *sav) argument 188 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 567 ah_input(struct mbuf *m, struct secasvar *sav, int skip, int protoff) argument 734 struct secasvar *sav; local 896 struct secasvar *sav; local 1127 struct secasvar *sav; local [all...] |
H A D | xform_ipcomp.c | 106 ipcomp_init(struct secasvar *sav, struct xformsw *xsp) argument 112 tcomp = ipcomp_algorithm_lookup(sav->alg_enc); 115 sav->alg_comp)); 118 sav->alg_comp = sav->alg_enc; /* set for doing histogram */ 119 sav->tdb_xform = xsp; 120 sav->tdb_compalgxform = tcomp; 124 cric.cri_alg = sav->tdb_compalgxform->type; 126 return crypto_newsession(&sav->tdb_cryptoid, &cric, V_crypto_support); 133 ipcomp_zeroize(struct secasvar *sav) argument 146 ipcomp_input(struct mbuf *m, struct secasvar *sav, int skip, int protoff) argument 233 struct secasvar *sav; local 354 struct secasvar *sav; local 490 struct secasvar *sav; local [all...] |
H A D | key.c | 345 #define KEY_CHKSASTATE(head, sav, name) \ 347 if ((head) != (sav)) { \ 349 (name), (head), (sav))); \ 552 sa_initref(struct secasvar *sav) argument 555 refcount_init(&sav->refcnt, 1); 558 sa_addref(struct secasvar *sav) argument 561 refcount_acquire(&sav->refcnt); 562 IPSEC_ASSERT(sav->refcnt != 0, ("SA refcnt overflow")); 565 sa_delref(struct secasvar *sav) argument 568 IPSEC_ASSERT(sav 811 struct secasvar *sav; local 892 struct secasvar *sav; local 939 struct secasvar *sav, *nextsav, *candidate, *d; local 1085 struct secasvar *sav; local 1230 key_addrefsa(struct secasvar *sav, const char* where, int tag) argument 1247 struct secasvar *sav = *psav; local 2722 struct secasvar *sav, *nextsav; local 2871 key_cleansav(struct secasvar *sav) argument 2977 struct secasvar *sav; local 3012 struct secasvar *sav; local 3288 key_mature(struct secasvar *sav) argument 3374 key_setdumpsa(struct secasvar *sav, u_int8_t type, u_int8_t satype, u_int32_t seq, u_int32_t pid) argument 4338 struct secasvar *sav, *nextsav; local 4964 struct secasvar *sav; local 5200 struct secasvar *sav; local 5584 struct secasvar *sav = NULL; local 5728 struct secasvar *sav, *nextsav; local 5852 struct secasvar *sav = NULL; local 6894 key_expire(struct secasvar *sav) argument 7031 struct secasvar *sav, *nextsav; local 7113 struct secasvar *sav; local 7921 key_sa_chgstate(struct secasvar *sav, u_int8_t state) argument [all...] |
H A D | xform.h | 107 extern int xform_init(struct secasvar *sav, int xftype); 119 extern int ah_zeroize(struct secasvar *sav); 125 extern size_t esp_hdrsiz(struct secasvar *sav);
|
H A D | key_debug.c | 498 if (isr->sav != NULL) 499 kdebug_secasv(isr->sav); 576 kdebug_secasv(sav) 577 struct secasvar *sav; 580 if (sav == NULL) 584 kdebug_secasindex(&sav->sah->saidx); 587 sav->refcnt, sav->state, sav->alg_auth, sav [all...] |
H A D | ipsec_output.c | 100 struct secasvar *sav; local 106 sav = isr->sav; 107 IPSEC_ASSERT(sav != NULL, ("null SA")); 108 IPSEC_ASSERT(sav->sah != NULL, ("null SAH")); 110 saidx = &sav->sah->saidx; 156 tdbi->spi = sav->spi; 191 key_sa_recordxfer(sav, m); /* record data transfer */ 206 if (sav->natt_type) { 218 if (sav 287 struct secasvar *sav; local 429 struct secasvar *sav; local 706 ipsec6_encapsulate(struct mbuf *m, struct secasvar *sav) argument [all...] |
H A D | ipsec_input.c | 125 struct secasvar *sav; local 208 sav = KEY_ALLOCSA(&dst_address, sproto, spi); 209 if (sav == NULL) { 218 if (sav->tdb_xform == NULL) { 223 KEY_FREESAV(&sav); 232 error = (*sav->tdb_xform->xf_input)(m, sav, skip, protoff); 233 KEY_FREESAV(&sav); 295 ipsec4_common_input_cb(struct mbuf *m, struct secasvar *sav, argument 311 IPSEC_ASSERT(sav ! 554 ipsec6_common_input_cb(struct mbuf *m, struct secasvar *sav, int skip, int protoff, struct m_tag *mt) argument 835 struct secasvar *sav; local [all...] |
H A D | xform_ipip.c | 417 struct secasvar *sav; local 431 sav = isr->sav; 432 IPSEC_ASSERT(sav != NULL, ("null SA")); 433 IPSEC_ASSERT(sav->sah != NULL, ("null SAH")); 440 saidx = &sav->sah->saidx; 450 (u_long) ntohl(sav->spi))); 530 (u_long) ntohl(sav->spi))); 611 if (sav->tdb_xform->xf_type == XF_IP4) 623 if (sav 643 ipe4_init(struct secasvar *sav, struct xformsw *xsp) argument 650 ipe4_zeroize(struct secasvar *sav) argument 657 ipe4_input(struct mbuf *m, struct secasvar *sav, int skip, int protoff) argument [all...] |
H A D | key.h | 84 #define KEY_ADDREFSA(sav) \ 85 key_addrefsa(sav, __FILE__, __LINE__)
|
H A D | ipsec6.h | 70 extern int ipsec6_common_input_cb(struct mbuf *m, struct secasvar *sav,
|
H A D | ipsec.c | 1251 isr->sav != NULL && 1252 isr->sav->tdb_authalgxform != NULL && 1377 clen = esp_hdrsiz(isr->sav); 1380 clen = ah_hdrsiz(isr->sav); 1458 ipsec_chkreplay(u_int32_t seq, struct secasvar *sav) argument 1466 IPSEC_ASSERT(sav != NULL, ("Null SA")); 1467 IPSEC_ASSERT(sav->replay != NULL, ("Null replay state")); 1469 replay = sav->replay; 1514 ipsec_updatereplay(u_int32_t seq, struct secasvar *sav) argument 1522 IPSEC_ASSERT(sav ! 1666 ipsec_logsastr(struct secasvar *sav) argument 1744 xform_init(struct secasvar *sav, int xftype) argument [all...] |
H A D | ipsec.h | 124 struct secasvar *sav; /* place holder of SA for use */ member in struct:ipsecrequest 367 extern int ipsec4_common_input_cb(struct mbuf *m, struct secasvar *sav,
|
/freebsd-10.0-release/tools/regression/usr.sbin/sa/ |
H A D | regress.t | 32 sa -i $DIR/v1-$ARCH-acct.in | check 3 $DIR/v1-$ARCH-sav.out 36 sa -P $DIR/v1-$ARCH-sav.in -U $DIR/v1-$ARCH-usr.in /dev/null | 37 check 5 $DIR/v1-$ARCH-sav.out 38 sa -m -P $DIR/v1-$ARCH-sav.in -U $DIR/v1-$ARCH-usr.in /dev/null | 42 cp $DIR/v1-$ARCH-sav.in $DIR/v2c-$ARCH-sav.in 44 sa -s -P $DIR/v2c-$ARCH-sav.in -U $DIR/v2c-$ARCH-usr.in /dev/null >/dev/null 45 sa -P $DIR/v2c-$ARCH-sav.in -U $DIR/v2c-$ARCH-usr.in /dev/null | 46 check 7 $DIR/v1-$ARCH-sav.out 47 sa -m -P $DIR/v2c-$ARCH-sav [all...] |
H A D | prime.sh | 27 $SANEW -i $LCDIR/v1-$ARCH-acct.in >v1-$ARCH-sav.out 30 rm -f v1-$ARCH-sav.in v1-$ARCH-usr.in 31 $SAOLD -s -P v1-$ARCH-sav.in -U v1-$ARCH-usr.in acct.in >/dev/null 33 rm -f v2-$ARCH-sav.in v2-$ARCH-usr.in 34 $SANEW -s -P v2-$ARCH-sav.in -U v2-$ARCH-usr.in acct.in >/dev/null
|
/freebsd-10.0-release/sys/netinet/ |
H A D | ip_ipsec.c | 235 sp->req->sav != NULL && 236 sp->req->sav->sah != NULL) { 237 ro = &sp->req->sav->sah->route_cache.sa_route; 307 if (sp->req->sav == NULL) 310 if (tdbi->spi == sp->req->sav->spi && 311 tdbi->proto == sp->req->sav->sah->saidx.proto && 312 bcmp(&tdbi->dst, &sp->req->sav->sah->saidx.dst,
|
/freebsd-10.0-release/sys/netinet6/ |
H A D | ip6_ipsec.c | 266 if ((*sp)->req->sav == NULL) 269 if (tdbi->spi == (*sp)->req->sav->spi && 270 tdbi->proto == (*sp)->req->sav->sah->saidx.proto && 271 bcmp(&tdbi->dst, &(*sp)->req->sav->sah->saidx.dst, 368 sp->req->sav != NULL && 369 sp->req->sav->sah != NULL) { 370 ro = &sp->req->sav->sah->route_cache.sa_route;
|
/freebsd-10.0-release/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-10.0-release/sys/net/ |
H A D | if_enc.c | 309 ipsec_bpf(struct mbuf *m, struct secasvar *sav, int af, int flags) argument 332 if (!sav) { 345 if (sav->alg_enc != SADB_EALG_NONE) 347 if (sav->alg_auth != SADB_AALG_NONE) 349 hdr.spi = sav->spi;
|
/freebsd-10.0-release/contrib/tcsh/ |
H A D | sh.exec.c | 152 Char *dp, **pv, **opv, **av, *sav; local 259 sav = Strspl(STRslash, *av);/* / command name for postpending */ 261 cleanup_push(sav, xfree); 263 Vsav = sav; 294 dp = Strspl(*pv, sav); 325 cleanup_until(sav); 328 xfree(sav); 817 Char *sav; local 827 sav = Strspl(STRslash, name); /* / command name for postpending */ 847 xfree(sav); [all...] |
/freebsd-10.0-release/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-10.0-release/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/ |
H A D | spa.c | 1391 spa_aux_vdev_t *sav = &spa->spa_l2cache; local 1395 if (sav->sav_config != NULL) { 1396 VERIFY(nvlist_lookup_nvlist_array(sav->sav_config, 1404 oldvdevs = sav->sav_vdevs; 1405 oldnvdevs = sav->sav_count; 1406 sav->sav_vdevs = NULL; 1407 sav->sav_count = 0; 1445 vd->vdev_aux = sav; 1480 if (sav->sav_config == NULL) 1483 sav 1748 spa_aux_check_removed(spa_aux_vdev_t *sav) argument 3176 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 3275 spa_set_aux_vdevs(spa_aux_vdev_t *sav, nvlist_t **devs, int ndevs, const char *config) argument 3328 spa_aux_vdev_t *sav = &spa->spa_l2cache; local 6012 spa_sync_aux_dev(spa_t *spa, spa_aux_vdev_t *sav, dmu_tx_t *tx, const char *config, const char *entry) argument 6661 spa_aux_vdev_t *sav = &spa->spa_spares; local 6685 spa_aux_vdev_t *sav = &spa->spa_spares; local [all...] |
/freebsd-10.0-release/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-10.0-release/cddl/contrib/opensolaris/cmd/ztest/ |
H A D | ztest.c | 2560 spa_aux_vdev_t *sav; local 2566 sav = &spa->spa_spares; 2569 sav = &spa->spa_l2cache; 2577 if (sav->sav_count != 0 && ztest_random(4) == 0) { 2581 guid = sav->sav_vdevs[ztest_random(sav->sav_count)]->vdev_guid; 2593 for (c = 0; c < sav->sav_count; c++) 2594 if (strcmp(sav->sav_vdevs[c]->vdev_path, 2597 if (c == sav->sav_count && 2738 spa_aux_vdev_t *sav local 4843 spa_aux_vdev_t *sav = &spa->spa_l2cache; local [all...] |