/freebsd-10.1-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 1244 key_addrefsa(struct secasvar *sav, const char* where, int tag) argument 1261 struct secasvar *sav = *psav; local 2736 struct secasvar *sav, *nextsav; local 2885 key_cleansav(struct secasvar *sav) argument 2991 struct secasvar *sav; local 3026 struct secasvar *sav; local 3302 key_mature(struct secasvar *sav) argument 3388 key_setdumpsa(struct secasvar *sav, u_int8_t type, u_int8_t satype, u_int32_t seq, u_int32_t pid) argument 4352 struct secasvar *sav, *nextsav; local 4978 struct secasvar *sav; local 5214 struct secasvar *sav; local 5598 struct secasvar *sav = NULL; local 5742 struct secasvar *sav, *nextsav; local 5866 struct secasvar *sav = NULL; local 6908 key_expire(struct secasvar *sav) argument 7045 struct secasvar *sav, *nextsav; local 7127 struct secasvar *sav; local 7935 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) { 214 if (sav 283 struct secasvar *sav; local 425 struct secasvar *sav; local 694 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 836 struct secasvar *sav; local [all...] |
H A D | xform_ipip.c | 370 struct secasvar *sav; local 384 sav = isr->sav; 385 IPSEC_ASSERT(sav != NULL, ("null SA")); 386 IPSEC_ASSERT(sav->sah != NULL, ("null SAH")); 393 saidx = &sav->sah->saidx; 403 (u_long) ntohl(sav->spi))); 483 (u_long) ntohl(sav->spi))); 564 if (sav->tdb_xform->xf_type == XF_IP4) 576 if (sav 596 ipe4_init(struct secasvar *sav, struct xformsw *xsp) argument 603 ipe4_zeroize(struct secasvar *sav) argument 610 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 | 1239 isr->sav != NULL && 1240 isr->sav->tdb_authalgxform != NULL && 1365 clen = esp_hdrsiz(isr->sav); 1368 clen = ah_hdrsiz(isr->sav); 1446 ipsec_chkreplay(u_int32_t seq, struct secasvar *sav) argument 1454 IPSEC_ASSERT(sav != NULL, ("Null SA")); 1455 IPSEC_ASSERT(sav->replay != NULL, ("Null replay state")); 1457 replay = sav->replay; 1502 ipsec_updatereplay(u_int32_t seq, struct secasvar *sav) argument 1510 IPSEC_ASSERT(sav ! 1654 ipsec_logsastr(struct secasvar *sav) argument 1732 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.1-release/usr.sbin/sa/tests/ |
H A D | Makefile | 8 FILES= v1-amd64-sav.in 9 FILES+= v1-amd64-sav.out 13 FILES+= v1-i386-sav.in 14 FILES+= v1-i386-sav.out 18 FILES+= v1-sparc64-sav.in 19 FILES+= v1-sparc64-sav.out 23 FILES+= v2-amd64-sav.in 26 FILES+= v2-i386-sav.in 29 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.1-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; 305 if (sp->req->sav == NULL) 308 if (tdbi->spi == sp->req->sav->spi && 309 tdbi->proto == sp->req->sav->sah->saidx.proto && 310 bcmp(&tdbi->dst, &sp->req->sav->sah->saidx.dst,
|
/freebsd-10.1-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.1-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.1-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.1-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.1-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.1-release/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/ |
H A D | spa.c | 1478 spa_aux_vdev_t *sav = &spa->spa_l2cache; local 1482 if (sav->sav_config != NULL) { 1483 VERIFY(nvlist_lookup_nvlist_array(sav->sav_config, 1491 oldvdevs = sav->sav_vdevs; 1492 oldnvdevs = sav->sav_count; 1493 sav->sav_vdevs = NULL; 1494 sav->sav_count = 0; 1532 vd->vdev_aux = sav; 1567 if (sav->sav_config == NULL) 1570 sav 1837 spa_aux_check_removed(spa_aux_vdev_t *sav) argument 3337 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 3436 spa_set_aux_vdevs(spa_aux_vdev_t *sav, nvlist_t **devs, int ndevs, const char *config) argument 3489 spa_aux_vdev_t *sav = &spa->spa_l2cache; local 6194 spa_sync_aux_dev(spa_t *spa, spa_aux_vdev_t *sav, dmu_tx_t *tx, const char *config, const char *entry) argument 6852 spa_aux_vdev_t *sav = &spa->spa_spares; local 6876 spa_aux_vdev_t *sav = &spa->spa_spares; local [all...] |
/freebsd-10.1-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);
|