-/* $OpenBSD: ask_nbrs2.c,v 1.3 2014/10/25 03:23:49 lteo Exp $ */
+/* $OpenBSD: ask_nbrs2.c,v 1.4 2015/05/05 01:26:37 jsg Exp $ */
/*
* Copyright (c) 2006 Esben Norby <norby@openbsd.org>
dst.sin_addr.s_addr = addr.s_addr;
/* update chksum */
- dvmrp_hdr = ibuf_seek(buf, 0, sizeof(dvmrp_hdr));
+ dvmrp_hdr = ibuf_seek(buf, 0, sizeof(*dvmrp_hdr));
dvmrp_hdr->chksum = in_cksum(buf->buf, buf->wpos);
ret = send_packet(iface, buf->buf, buf->wpos, &dst);
-/* $OpenBSD: graft.c,v 1.3 2014/10/25 03:23:49 lteo Exp $ */
+/* $OpenBSD: graft.c,v 1.4 2015/05/05 01:26:37 jsg Exp $ */
/*
* Copyright (c) 2005, 2006 Esben Norby <norby@openbsd.org>
dst.sin_addr.s_addr = addr.s_addr;
/* update chksum */
- dvmrp_hdr = ibuf_seek(buf, 0, sizeof(dvmrp_hdr));
+ dvmrp_hdr = ibuf_seek(buf, 0, sizeof(*dvmrp_hdr));
dvmrp_hdr->chksum = in_cksum(buf->buf, buf->wpos);
ret = send_packet(iface, buf->buf, buf->wpos, &dst);
-/* $OpenBSD: graft_ack.c,v 1.3 2014/10/25 03:23:49 lteo Exp $ */
+/* $OpenBSD: graft_ack.c,v 1.4 2015/05/05 01:26:37 jsg Exp $ */
/*
* Copyright (c) 2006 Esben Norby <norby@openbsd.org>
dst.sin_addr.s_addr = addr.s_addr;
/* update chksum */
- dvmrp_hdr = ibuf_seek(buf, 0, sizeof(dvmrp_hdr));
+ dvmrp_hdr = ibuf_seek(buf, 0, sizeof(*dvmrp_hdr));
dvmrp_hdr->chksum = in_cksum(buf->buf, buf->wpos);
ret = send_packet(iface, buf->buf, buf->wpos, &dst);
-/* $OpenBSD: nbrs2.c,v 1.3 2014/10/25 03:23:49 lteo Exp $ */
+/* $OpenBSD: nbrs2.c,v 1.4 2015/05/05 01:26:37 jsg Exp $ */
/*
* Copyright (c) 2006 Esben Norby <norby@openbsd.org>
dst.sin_addr.s_addr = addr.s_addr;
/* update chksum */
- dvmrp_hdr = ibuf_seek(buf, 0, sizeof(dvmrp_hdr));
+ dvmrp_hdr = ibuf_seek(buf, 0, sizeof(*dvmrp_hdr));
dvmrp_hdr->chksum = in_cksum(buf->buf, buf->wpos);
ret = send_packet(iface, buf->buf, buf->wpos, &dst);
-/* $OpenBSD: probe.c,v 1.3 2014/11/18 20:54:28 krw Exp $ */
+/* $OpenBSD: probe.c,v 1.4 2015/05/05 01:26:37 jsg Exp $ */
/*
* Copyright (c) 2005, 2006 Esben Norby <norby@openbsd.org>
inet_aton(AllDVMRPRouters, &dst.sin_addr);
/* update chksum */
- dvmrp_hdr = ibuf_seek(buf, 0, sizeof(dvmrp_hdr));
+ dvmrp_hdr = ibuf_seek(buf, 0, sizeof(*dvmrp_hdr));
dvmrp_hdr->chksum = in_cksum(buf->buf, buf->wpos);
ret = send_packet(iface, buf->buf, buf->wpos, &dst);
-/* $OpenBSD: prune.c,v 1.4 2014/10/25 03:23:49 lteo Exp $ */
+/* $OpenBSD: prune.c,v 1.5 2015/05/05 01:26:37 jsg Exp $ */
/*
* Copyright (c) 2005, 2006 Esben Norby <norby@openbsd.org>
ibuf_add(buf, &prune, sizeof(prune));
/* update chksum */
- dvmrp_hdr = ibuf_seek(buf, 0, sizeof(dvmrp_hdr));
+ dvmrp_hdr = ibuf_seek(buf, 0, sizeof(*dvmrp_hdr));
dvmrp_hdr->chksum = in_cksum(buf->buf, buf->wpos);
ret = send_packet(nbr->iface, buf->buf, buf->wpos, &dst);
-/* $OpenBSD: report.c,v 1.9 2014/10/25 03:23:49 lteo Exp $ */
+/* $OpenBSD: report.c,v 1.10 2015/05/05 01:26:37 jsg Exp $ */
/*
* Copyright (c) 2005, 2006 Esben Norby <norby@openbsd.org>
dst.sin_addr.s_addr = addr.s_addr;
/* update chksum */
- dvmrp_hdr = ibuf_seek(buf, 0, sizeof(dvmrp_hdr));
+ dvmrp_hdr = ibuf_seek(buf, 0, sizeof(*dvmrp_hdr));
dvmrp_hdr->chksum = in_cksum(buf->buf, buf->wpos);
ret = send_packet(iface, buf->buf, buf->wpos, &dst);
-/* $OpenBSD: packet.c,v 1.13 2014/10/25 03:23:49 lteo Exp $ */
+/* $OpenBSD: packet.c,v 1.14 2015/05/05 01:26:37 jsg Exp $ */
/*
* Copyright (c) 2004, 2005 Esben Norby <norby@openbsd.org>
{
struct ospf_hdr *ospf_hdr;
- if ((ospf_hdr = ibuf_seek(buf, 0, sizeof(ospf_hdr))) == NULL)
+ if ((ospf_hdr = ibuf_seek(buf, 0, sizeof(*ospf_hdr))) == NULL)
fatalx("upd_ospf_hdr: buf_seek failed");
/* update length */
-/* $OpenBSD: auth.c,v 1.19 2010/09/02 14:03:21 sobrado Exp $ */
+/* $OpenBSD: auth.c,v 1.20 2015/05/05 01:26:37 jsg Exp $ */
/*
* Copyright (c) 2004, 2005 Esben Norby <norby@openbsd.org>
struct ospf_hdr *ospf_hdr;
struct auth_md *md;
- if ((ospf_hdr = ibuf_seek(buf, 0, sizeof(ospf_hdr))) == NULL)
+ if ((ospf_hdr = ibuf_seek(buf, 0, sizeof(*ospf_hdr))) == NULL)
fatalx("auth_gen: buf_seek failed");
/* update length */