public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
2cf13262cb132705a82adb486f173e7bfaa07704 blob 700 bytes (raw)

 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
 
/* SPDX-License-Identifier: GPL-2.0-or-later
 * Copyright (c) 2021 Red Hat GmbH
 * Author: Stefano Brivio <sbrivio@redhat.com>
 */

#ifndef ARP_H
#define ARP_H

/**
 * struct arpmsg - 802.2 ARP IPv4 payload
 * @sha:	Sender hardware address
 * @sip:	Sender IP address
 * @tha:	Target hardware address
 * @tip:	Target IP address
 */
struct arpmsg {
	unsigned char sha[ETH_ALEN];
	unsigned char sip[4];
	unsigned char tha[ETH_ALEN];
	unsigned char tip[4];
} __attribute__((__packed__));

int arp(const struct ctx *c, struct iov_tail *data);
void arp_send_init_req(const struct ctx *c);
void arp_send_gratuitous(const struct ctx *c, struct in_addr *ip,
			 const unsigned char *mac);

#endif /* ARP_H */
debug log:

solving 2cf1326 ...
found 2cf1326 in https://archives.passt.top/passt-dev/20250927002951.2714446-4-jmaloy@redhat.com/ ||
	https://archives.passt.top/passt-dev/20250927192522.3024554-4-jmaloy@redhat.com/
found d5ad0e1 in https://passt.top/passt
preparing index
index prepared:
100644 d5ad0e19d69ea5a4b044eef86eef36dbdd7af29e	arp.h

applying [1/2] https://archives.passt.top/passt-dev/20250927002951.2714446-4-jmaloy@redhat.com/
diff --git a/arp.h b/arp.h
index d5ad0e1..2cf1326 100644

Checking patch arp.h...
Applied patch arp.h cleanly.

skipping https://archives.passt.top/passt-dev/20250927192522.3024554-4-jmaloy@redhat.com/ for 2cf1326
index at:
100644 2cf13262cb132705a82adb486f173e7bfaa07704	arp.h

Code repositories for project(s) associated with this public inbox

	https://passt.top/passt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for IMAP folder(s).