packets: Rename compose_benign_packet().
authorEthan Jackson <ethan@nicira.com>
Fri, 8 Jun 2012 01:24:29 +0000 (18:24 -0700)
committerEthan Jackson <ethan@nicira.com>
Fri, 8 Jun 2012 01:24:29 +0000 (18:24 -0700)
The name compose_rarp() more clearly describes what it's doing now.

Requested-by: Justin Pettit <jpettit@nicira.com>
Signed-off-by: Ethan Jackson <ethan@nicira.com>
lib/bond.c
lib/packets.c
lib/packets.h
ofproto/fail-open.c

index 8b32bdf98c0920fcf71645ed995401ba5e06f2c6..54f2d0e0e3987b7266cb3f642d3e2c52397d594b 100644 (file)
@@ -531,7 +531,7 @@ bond_compose_learning_packet(struct bond *bond,
     slave = choose_output_slave(bond, &flow, vlan);
 
     packet = ofpbuf_new(0);
-    compose_benign_packet(packet, eth_src);
+    compose_rarp(packet, eth_src);
     if (vlan) {
         eth_push_vlan(packet, htons(vlan));
     }
index 9b61d047721f7120eeee014300fdd679d59d1a8f..bbf4934401b52c75ace8ac51d1f0865828333e94 100644 (file)
@@ -127,7 +127,7 @@ eth_addr_from_string(const char *s, uint8_t ea[ETH_ADDR_LEN])
  * The returned packet has enough headroom to insert an 802.1Q VLAN header if
  * desired. */
 void
-compose_benign_packet(struct ofpbuf *b, const uint8_t eth_src[ETH_ADDR_LEN])
+compose_rarp(struct ofpbuf *b, const uint8_t eth_src[ETH_ADDR_LEN])
 {
     struct eth_header *eth;
     struct rarp_header *rarp;
index c1d404d45b538dabbc4173e02561bc0670e5e0d3..8e4117e85e5c1f269b86a550dbd6e4181a05355d 100644 (file)
@@ -135,8 +135,7 @@ static inline void eth_addr_nicira_random(uint8_t ea[ETH_ADDR_LEN])
 bool eth_addr_is_reserved(const uint8_t ea[ETH_ADDR_LEN]);
 bool eth_addr_from_string(const char *, uint8_t ea[ETH_ADDR_LEN]);
 
-void compose_benign_packet(struct ofpbuf *,
-                           const uint8_t eth_src[ETH_ADDR_LEN]);
+void compose_rarp(struct ofpbuf *, const uint8_t eth_src[ETH_ADDR_LEN]);
 
 void eth_push_vlan(struct ofpbuf *, ovs_be16 tci);
 void eth_pop_vlan(struct ofpbuf *);
index f3a99c131f6328ecfa92b46e3e55f8d81948e247..912dc4e4cefd0e185413f64a527fee20c6d5f2ab 100644 (file)
@@ -121,7 +121,7 @@ send_bogus_packet_ins(struct fail_open *fo)
 
     ofpbuf_init(&b, 128);
     eth_addr_nicira_random(mac);
-    compose_benign_packet(&b, mac);
+    compose_rarp(&b, mac);
 
     memset(&pin, 0, sizeof pin);
     pin.packet = b.data;