diff options
Diffstat (limited to 'usr.sbin/dvmrpd/graft.c')
-rw-r--r-- | usr.sbin/dvmrpd/graft.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/usr.sbin/dvmrpd/graft.c b/usr.sbin/dvmrpd/graft.c index 4340f6b0628..4545176a23f 100644 --- a/usr.sbin/dvmrpd/graft.c +++ b/usr.sbin/dvmrpd/graft.c @@ -1,4 +1,4 @@ -/* $OpenBSD: graft.c,v 1.5 2015/12/07 19:17:18 mmcc Exp $ */ +/* $OpenBSD: graft.c,v 1.6 2023/06/26 10:08:56 claudio Exp $ */ /* * Copyright (c) 2005, 2006 Esben Norby <norby@openbsd.org> @@ -36,7 +36,6 @@ send_graft(struct iface *iface, struct in_addr addr, void *data, int len) { struct sockaddr_in dst; struct ibuf *buf; - struct dvmrp_hdr *dvmrp_hdr; int ret = 0; log_debug("send_graft: interface %s addr %s", @@ -56,11 +55,7 @@ send_graft(struct iface *iface, struct in_addr addr, void *data, int len) dst.sin_len = sizeof(struct sockaddr_in); dst.sin_addr.s_addr = addr.s_addr; - /* update chksum */ - 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); + ret = send_packet(iface, buf, &dst); ibuf_free(buf); return (ret); fail: |