Re: [PATCH nft] src: support for arp sender and target ethernet and IPv4 addresses

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Pablo Neira Ayuso <pablo@xxxxxxxxxxxxx> wrote:
> +struct arp_hdr {
> +	uint16_t	htype;
> +	uint16_t	ptype;
> +	uint8_t		hlen;
> +	uint8_t		plen;
> +	uint16_t	oper;
> +	uint8_t		sha[6];
> +	uint32_t	spa;
> +	uint8_t		tha[6];
> +	uint32_t	tpa;
> +} __attribute__((__packed__));

LGTM, I think hard-coding this for ethernet is fine.



[Index of Archives]     [Netfitler Users]     [Berkeley Packet Filter]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux