]>
git.proxmox.com Git - mirror_frr.git/blob - ospf6d/ospf6_network.h
2 * Copyright (C) 1999 Yasuhiro Ohara
4 * This file is part of GNU Zebra.
6 * GNU Zebra is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the
8 * Free Software Foundation; either version 2, or (at your option) any
11 * GNU Zebra is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with GNU Zebra; see the file COPYING. If not, write to the
18 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19 * Boston, MA 02111-1307, USA.
22 #ifndef OSPF6_NETWORK_H
23 #define OSPF6_NETWORK_H
27 /* Function Prototypes */
28 void iov_clear (struct iovec
*, size_t);
29 int iov_count (struct iovec
*);
30 int iov_totallen (struct iovec
*);
31 void *iov_prepend (int, struct iovec
*, size_t);
32 void *iov_append (int, struct iovec
*, size_t);
33 void *iov_attach_last (struct iovec
*, void *, size_t);
34 void *iov_detach_first (struct iovec
*);
35 int iov_free (int, struct iovec
*, u_int
, u_int
);
36 void iov_trim_head (int, struct iovec
*);
37 void iov_free_all (int, struct iovec
*);
38 void iov_copy_all (struct iovec
*, struct iovec
*, size_t);
40 int ospf6_serv_sock ();
41 int ospf6_join_allspfrouters (u_int
);
42 void ospf6_leave_allspfrouters (u_int
);
43 void ospf6_join_alldrouters (u_int
);
44 void ospf6_leave_alldrouters (u_int
);
45 void ospf6_set_reuseaddr ();
46 void ospf6_reset_mcastloop ();
47 void ospf6_set_pktinfo ();
48 void ospf6_set_checksum ();
50 void ospf6_sendmsg (struct in6_addr
*, struct in6_addr
*,
51 unsigned int *, struct iovec
*);
52 void ospf6_recvmsg (struct in6_addr
*, struct in6_addr
*,
53 unsigned int *, struct iovec
*);
54 void ospf6_recvmsg_peek (struct in6_addr
*, struct in6_addr
*,
55 unsigned int *, struct iovec
*);
57 #endif /* OSPF6_NETWORK_H */