File: ipv6.h

package info (click to toggle)
ipcalc-ng 1.0.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,004 kB
  • sloc: ansic: 2,569; sh: 102; makefile: 46
file content (29 lines) | stat: -rw-r--r-- 943 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*
 * Copyright (c) 2019 Nikos Mavrogiannopoulos
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License, version 2,
 * as published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 */

#ifndef IPV6_H
#define IPV6_H

#include <netinet/in.h>
#include <arpa/inet.h>

void ipv6_add(struct in6_addr *a, const struct in6_addr *b);
void ipv6_or1(struct in6_addr *a, unsigned bit);
void ipv6_orm(struct in6_addr *a, unsigned bit);
int ipv6_cmp(struct in6_addr *a, struct in6_addr *b);

#endif