Deleted Added
full compact
dump.c (78064) dump.c (118660)
1/* $KAME: dump.c,v 1.8 2000/10/05 22:20:39 itojun Exp $ */
2
3/*
4 * Copyright (C) 1999 WIDE Project.
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 14 unchanged lines hidden (view full) ---

23 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29 * SUCH DAMAGE.
30 *
1/* $KAME: dump.c,v 1.8 2000/10/05 22:20:39 itojun Exp $ */
2
3/*
4 * Copyright (C) 1999 WIDE Project.
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 14 unchanged lines hidden (view full) ---

23 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29 * SUCH DAMAGE.
30 *
31 * $FreeBSD: head/usr.sbin/rtsold/dump.c 78064 2001-06-11 12:39:29Z ume $
31 * $FreeBSD: head/usr.sbin/rtsold/dump.c 118660 2003-08-08 16:38:23Z ume $
32 */
33
34#include <sys/types.h>
35#include <sys/time.h>
36#include <sys/socket.h>
37
38#include <net/if.h>
39#include <netinet/in.h>

--- 55 unchanged lines hidden (view full) ---

95 }
96}
97
98void
99rtsold_dump_file(dumpfile)
100 char *dumpfile;
101{
102 if ((fp = fopen(dumpfile, "w")) == NULL) {
32 */
33
34#include <sys/types.h>
35#include <sys/time.h>
36#include <sys/socket.h>
37
38#include <net/if.h>
39#include <netinet/in.h>

--- 55 unchanged lines hidden (view full) ---

95 }
96}
97
98void
99rtsold_dump_file(dumpfile)
100 char *dumpfile;
101{
102 if ((fp = fopen(dumpfile, "w")) == NULL) {
103 warnmsg(LOG_WARNING, __FUNCTION__, "open a dump file(%s): %s",
103 warnmsg(LOG_WARNING, __func__, "open a dump file(%s): %s",
104 dumpfile, strerror(errno));
105 return;
106 }
107
108 dump_interface_status();
109
110 fclose(fp);
111}

--- 31 unchanged lines hidden ---
104 dumpfile, strerror(errno));
105 return;
106 }
107
108 dump_interface_status();
109
110 fclose(fp);
111}

--- 31 unchanged lines hidden ---