aboutgitcodebugslistschat
path: root/arp.h
blob: 34b15dbc9cf8725c1692161a5e24760d1e048d00 (plain) (tree)
1
2
3
4
5
6
7
8




                                              


             













                                         
                                       

                  
/* SPDX-License-Identifier: AGPL-3.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(struct ctx *c, struct pool *p);

#endif /* ARP_H */