/freebsd-10-stable/sys/netipsec/ |
H A D | xform_tcp.c | 84 tcpsignature_init(struct secasvar *sav, struct xformsw *xsp) argument 88 if (sav->spi != htonl(TCP_SIG_SPI)) { 93 if (sav->alg_auth != SADB_X_AALG_TCP_MD5) { 95 __func__, sav->alg_auth)); 98 if (sav->key_auth == NULL) { 102 keylen = _KEYLEN(sav->key_auth); 117 tcpsignature_zeroize(struct secasvar *sav) argument 120 if (sav->key_auth) 121 bzero(sav->key_auth->key_data, _KEYLEN(sav 136 tcpsignature_input(struct mbuf *m, struct secasvar *sav, int skip, int protoff) argument [all...] |
H A D | xform_esp.c | 127 esp_hdrsiz(struct secasvar *sav) argument 131 if (sav != NULL) { 133 IPSEC_ASSERT(sav->tdb_encalgxform != NULL, 135 if (sav->flags & SADB_X_EXT_OLD) 139 size += sav->tdb_encalgxform->blocksize + 9; 141 if (sav->tdb_authalgxform != NULL && sav->replay) 142 size += ah_hdrsiz(sav); 161 esp_init(struct secasvar *sav, struct xformsw *xsp) argument 168 txform = esp_algorithm_lookup(sav 247 esp_zeroize(struct secasvar *sav) argument 267 esp_input(struct mbuf *m, struct secasvar *sav, int skip, int protoff) argument 466 struct secasvar *sav; local 680 struct secasvar *sav; local 917 struct secasvar *sav; local [all...] |
H A D | xform_ah.c | 79 #define HDRSIZE(sav) \ 80 (((sav)->flags & SADB_X_EXT_OLD) ? \ 87 #define AUTHSIZE(sav) ah_authsize(sav) 114 ah_authsize(struct secasvar *sav) argument 117 IPSEC_ASSERT(sav != NULL, ("%s: sav == NULL", __func__)); 119 if (sav->flags & SADB_X_EXT_OLD) 122 switch (sav->alg_auth) { 166 ah_hdrsiz(struct secasvar *sav) argument 187 ah_init0(struct secasvar *sav, struct xformsw *xsp, struct cryptoini *cria) argument 241 ah_init(struct secasvar *sav, struct xformsw *xsp) argument 257 ah_zeroize(struct secasvar *sav) argument 550 ah_input(struct mbuf *m, struct secasvar *sav, int skip, int protoff) argument 730 struct secasvar *sav; local 892 struct secasvar *sav; local 1123 struct secasvar *sav; local [all...] |
H A D | xform_ipcomp.c | 105 ipcomp_init(struct secasvar *sav, struct xformsw *xsp) argument 111 tcomp = ipcomp_algorithm_lookup(sav->alg_enc); 114 sav->alg_comp)); 117 sav->alg_comp = sav->alg_enc; /* set for doing histogram */ 118 sav->tdb_xform = xsp; 119 sav->tdb_compalgxform = tcomp; 123 cric.cri_alg = sav->tdb_compalgxform->type; 125 return crypto_newsession(&sav->tdb_cryptoid, &cric, V_crypto_support); 132 ipcomp_zeroize(struct secasvar *sav) argument 145 ipcomp_input(struct mbuf *m, struct secasvar *sav, int skip, int protoff) argument 232 struct secasvar *sav; local 353 struct secasvar *sav; local 489 struct secasvar *sav; local [all...] |
H A D | ipsec_output.c | 99 struct secasvar *sav; local 105 sav = isr->sav; 106 IPSEC_ASSERT(sav != NULL, ("null SA")); 107 IPSEC_ASSERT(sav->sah != NULL, ("null SAH")); 109 saidx = &sav->sah->saidx; 155 tdbi->spi = sav->spi; 190 key_sa_recordxfer(sav, m); /* record data transfer */ 205 if (sav->natt_type) { 213 if (sav 282 struct secasvar *sav; local 433 struct secasvar *sav; local 631 struct secasvar *sav; local [all...] |
H A D | key.c | 344 #define KEY_CHKSASTATE(head, sav, name) \ 346 if ((head) != (sav)) { \ 348 (name), (head), (sav))); \ 553 sa_initref(struct secasvar *sav) argument 556 refcount_init(&sav->refcnt, 1); 559 sa_addref(struct secasvar *sav) argument 562 refcount_acquire(&sav->refcnt); 563 IPSEC_ASSERT(sav->refcnt != 0, ("SA refcnt overflow")); 566 sa_delref(struct secasvar *sav) argument 569 IPSEC_ASSERT(sav 810 struct secasvar *sav; local 891 struct secasvar *sav; local 938 struct secasvar *sav, *nextsav, *candidate, *d; local 1081 struct secasvar *sav; local 1240 key_addrefsa(struct secasvar *sav, const char* where, int tag) argument 1257 struct secasvar *sav = *psav; local 2701 struct secasvar *sav, *nextsav; local 2841 key_cleansav(struct secasvar *sav) argument 2896 key_delsav(struct secasvar *sav) argument 2943 struct secasvar *sav; local 2976 struct secasvar *sav; local 3014 key_setsaval(struct secasvar *sav, struct mbuf *m, const struct sadb_msghdr *mhp) argument 3250 key_mature(struct secasvar *sav) argument 3336 key_setdumpsa(struct secasvar *sav, u_int8_t type, u_int8_t satype, u_int32_t seq, u_int32_t pid) argument 3553 key_setsadbsa(struct secasvar *sav) argument 4273 struct secasvar *sav, *nextsav; local 4879 struct secasvar *sav; local 5113 struct secasvar *sav; local 5484 struct secasvar *sav = NULL; local 5628 struct secasvar *sav, *nextsav; local 5749 struct secasvar *sav = NULL; local 6829 key_expire(struct secasvar *sav, int hard) argument 6971 struct secasvar *sav, *nextsav; local 7050 struct secasvar *sav; local 7768 key_checktunnelsanity(struct secasvar *sav, u_int family, caddr_t src, caddr_t dst) argument 7780 key_sa_recordxfer(struct secasvar *sav, struct mbuf *m) argument 7820 key_sa_chgstate(struct secasvar *sav, u_int8_t state) argument 7834 key_sa_stir_iv(struct secasvar *sav) 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 | ipsec_input.c | 124 struct secasvar *sav; local 207 sav = KEY_ALLOCSA(&dst_address, sproto, spi); 208 if (sav == NULL) { 217 if (sav->tdb_xform == NULL) { 222 KEY_FREESAV(&sav); 231 error = (*sav->tdb_xform->xf_input)(m, sav, skip, protoff); 232 KEY_FREESAV(&sav); 294 ipsec4_common_input_cb(struct mbuf *m, struct secasvar *sav, argument 310 IPSEC_ASSERT(sav ! 596 ipsec6_common_input_cb(struct mbuf *m, struct secasvar *sav, int skip, int protoff, struct m_tag *mt) argument 884 struct secasvar *sav; local [all...] |
H A D | key_debug.c | 486 if (isr->sav != NULL) 487 kdebug_secasv(isr->sav); 562 kdebug_secasv(struct secasvar *sav) argument 565 if (sav == NULL) 569 kdebug_secasindex(&sav->sah->saidx); 572 sav->refcnt, sav->state, sav->alg_auth, sav->alg_enc); 574 (u_int32_t)ntohl(sav [all...] |
H A D | xform_ipip.c | 349 struct secasvar *sav; local 363 sav = isr->sav; 364 IPSEC_ASSERT(sav != NULL, ("null SA")); 365 IPSEC_ASSERT(sav->sah != NULL, ("null SAH")); 372 saidx = &sav->sah->saidx; 382 (u_long) ntohl(sav->spi))); 462 (u_long) ntohl(sav->spi))); 543 if (sav->tdb_xform->xf_type == XF_IP4) 555 if (sav 575 ipe4_init(struct secasvar *sav, struct xformsw *xsp) argument 582 ipe4_zeroize(struct secasvar *sav) argument 589 ipe4_input(struct mbuf *m, struct secasvar *sav, int skip, int protoff) argument [all...] |
H A D | ipsec6.h | 66 extern int ipsec6_common_input_cb(struct mbuf *m, struct secasvar *sav,
|
H A D | key.h | 84 #define KEY_ADDREFSA(sav) \ 85 key_addrefsa(sav, __FILE__, __LINE__)
|
H A D | ipsec.c | 1239 isr->sav != NULL && 1240 isr->sav->tdb_authalgxform != NULL && 1368 clen = esp_hdrsiz(isr->sav); 1371 clen = ah_hdrsiz(isr->sav); 1452 ipsec_chkreplay(u_int32_t seq, struct secasvar *sav) argument 1460 IPSEC_ASSERT(sav != NULL, ("Null SA")); 1461 IPSEC_ASSERT(sav->replay != NULL, ("Null replay state")); 1463 replay = sav->replay; 1508 ipsec_updatereplay(u_int32_t seq, struct secasvar *sav) argument 1516 IPSEC_ASSERT(sav ! 1660 ipsec_logsastr(struct secasvar *sav) argument 1738 xform_init(struct secasvar *sav, int xftype) argument [all...] |
H A D | ipsec.h | 128 struct secasvar *sav; /* place holder of SA for use */ member in struct:ipsecrequest 370 extern int ipsec4_common_input_cb(struct mbuf *m, struct secasvar *sav,
|
/freebsd-10-stable/usr.sbin/sa/tests/ |
H A D | Makefile | 7 FILES= v1-amd64-sav.in 8 FILES+= v1-amd64-sav.out 12 FILES+= v1-i386-sav.in 13 FILES+= v1-i386-sav.out 17 FILES+= v1-sparc64-sav.in 18 FILES+= v1-sparc64-sav.out 22 FILES+= v2-amd64-sav.in 25 FILES+= v2-i386-sav.in 28 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-10-stable/sys/netinet6/ |
H A D | ip6_ipsec.c | 264 if (sp->req->sav == NULL) 267 if (tdbi->spi == sp->req->sav->spi && 268 tdbi->proto == sp->req->sav->sah->saidx.proto && 269 bcmp(&tdbi->dst, &sp->req->sav->sah->saidx.dst, 389 sp->req->sav != NULL && 390 sp->req->sav->sah != NULL) { 391 ro = &sp->req->sav->sah->route_cache.sa_route;
|
/freebsd-10-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-10-stable/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-stable/sys/netinet/ |
H A D | ip_ipsec.c | 280 if (sp->req->sav == NULL) 283 if (tdbi->spi == sp->req->sav->spi && 284 tdbi->proto == sp->req->sav->sah->saidx.proto && 285 bcmp(&tdbi->dst, &sp->req->sav->sah->saidx.dst,
|
/freebsd-10-stable/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); 818 Char *sav; local 828 sav = Strspl(STRslash, name); /* / command name for postpending */ 848 xfree(sav); [all...] |
/freebsd-10-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-10-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/ |
H A D | spa.c | 1514 spa_aux_vdev_t *sav = &spa->spa_l2cache; local 1518 if (sav->sav_config != NULL) { 1519 VERIFY(nvlist_lookup_nvlist_array(sav->sav_config, 1527 oldvdevs = sav->sav_vdevs; 1528 oldnvdevs = sav->sav_count; 1529 sav->sav_vdevs = NULL; 1530 sav->sav_count = 0; 1568 vd->vdev_aux = sav; 1603 if (sav->sav_config == NULL) 1606 sav 1875 spa_aux_check_removed(spa_aux_vdev_t *sav) argument 3418 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 3517 spa_set_aux_vdevs(spa_aux_vdev_t *sav, nvlist_t **devs, int ndevs, const char *config) argument 3570 spa_aux_vdev_t *sav = &spa->spa_l2cache; local 6339 spa_sync_aux_dev(spa_t *spa, spa_aux_vdev_t *sav, dmu_tx_t *tx, const char *config, const char *entry) argument 7070 spa_aux_vdev_t *sav = &spa->spa_spares; local 7094 spa_aux_vdev_t *sav = &spa->spa_spares; local [all...] |
/freebsd-10-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);
|