OSDN Git Service

2013.10.24
[uclinux-h8/uClinux-dist.git] / freeswan / lib / initsaid.c
1 /*
2  * initialize SA ID structure
3  * Copyright (C) 2000  Henry Spencer.
4  * 
5  * This library is free software; you can redistribute it and/or modify it
6  * under the terms of the GNU Library General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or (at your
8  * option) any later version.  See <http://www.fsf.org/copyleft/lgpl.txt>.
9  * 
10  * This library is distributed in the hope that it will be useful, but
11  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12  * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Library General Public
13  * License for more details.
14  *
15  * RCSID $Id: initsaid.c,v 1.2 2000/09/08 18:03:45 henry Exp $
16  */
17 #include "internal.h"
18 #include "freeswan.h"
19
20 /*
21  - initsaid - initialize SA ID from bits
22  */
23 void
24 initsaid(addr, spi, proto, dst)
25 const ip_address *addr;
26 ipsec_spi_t spi;
27 int proto;
28 ip_said *dst;
29 {
30         dst->dst = *addr;
31         dst->spi = spi;
32         dst->proto = proto;
33 }