mirror of
https://github.com/openvswitch/ovs
synced 2025-08-30 22:05:19 +00:00
ofpbuf: Rename trivial _get_ functions without the "get".
Code reads better without the "get", for example "ofpbuf_l3()" v.s. "ofpbuf_get_l3()". L4 payoad access functions still use the "get" (e.g., "ofpbuf_get_tcp_payload()"). Signed-off-by: Jarno Rajahalme <jrajahalme@nicira.com>
This commit is contained in:
@@ -51,7 +51,7 @@ odp_set_tunnel_action(const struct nlattr *a, struct flow_tnl *tun_key)
|
||||
static void
|
||||
set_arp(struct ofpbuf *packet, const struct ovs_key_arp *arp_key)
|
||||
{
|
||||
struct arp_eth_header *arp = ofpbuf_get_l3(packet);
|
||||
struct arp_eth_header *arp = ofpbuf_l3(packet);
|
||||
|
||||
arp->ar_op = arp_key->arp_op;
|
||||
memcpy(arp->ar_sha, arp_key->arp_sha, ETH_ADDR_LEN);
|
||||
|
Reference in New Issue
Block a user