diff options
author | claudio <claudio@openbsd.org> | 2007-10-24 20:52:50 +0000 |
---|---|---|
committer | claudio <claudio@openbsd.org> | 2007-10-24 20:52:50 +0000 |
commit | 87feb35596c4e3d4f708e6d1d9972325882181f6 (patch) | |
tree | 755826631624177da8e3a1563375630984dc9f60 /usr.sbin/ripd/ripe.h | |
parent | The metric is a 8bit value ranging from 1 to INFINITY (defined as a whopping (diff) | |
download | wireguard-openbsd-87feb35596c4e3d4f708e6d1d9972325882181f6.tar.xz wireguard-openbsd-87feb35596c4e3d4f708e6d1d9972325882181f6.zip |
Make the packet buffer u_int8_t * everywhere. This is binary data and not
a string.
Diffstat (limited to 'usr.sbin/ripd/ripe.h')
-rw-r--r-- | usr.sbin/ripd/ripe.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/ripd/ripe.h b/usr.sbin/ripd/ripe.h index 76a3a619b38..30487d975ec 100644 --- a/usr.sbin/ripd/ripe.h +++ b/usr.sbin/ripd/ripe.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ripe.h,v 1.7 2007/10/18 09:47:57 claudio Exp $ */ +/* $OpenBSD: ripe.h,v 1.8 2007/10/24 20:52:50 claudio Exp $ */ /* * Copyright (c) 2006 Michele Marchetto <mydecay@openbeer.it> @@ -27,7 +27,7 @@ #include <netinet/ip.h> TAILQ_HEAD(ctl_conns, ctl_conn) ctl_conns; -char *pkt_ptr; +u_int8_t *pkt_ptr; /* neighbor events */ enum nbr_event { @@ -96,8 +96,8 @@ int if_leave_group(struct iface *, struct in_addr *); struct ctl_iface *if_to_ctl(struct iface *); /* message.c */ -void recv_request(struct iface *, struct nbr *, char *, u_int16_t); -void recv_response(struct iface *, struct nbr *, char *, u_int16_t); +void recv_request(struct iface *, struct nbr *, u_int8_t *, u_int16_t); +void recv_response(struct iface *, struct nbr *, u_int8_t *, u_int16_t); void add_entry(struct packet_head *, struct rip_route *); void clear_list(struct packet_head *); int send_triggered_update(struct iface *, struct rip_route *); @@ -117,7 +117,7 @@ void ripe_iface_ctl(struct ctl_conn *, unsigned int); void ripe_nbr_ctl(struct ctl_conn *); /* auth.c */ -int auth_validate(char **, u_int16_t *, struct iface *, struct nbr *, +int auth_validate(u_int8_t **, u_int16_t *, struct iface *, struct nbr *, struct nbr_failed *, u_int32_t *); int auth_gen(struct buf *, struct iface *); int auth_add_trailer(struct buf *, struct iface *); |