diff mbox

[1/3] api: packet: use odp_bool_t for packet flag APIs

Message ID 1426007078-28326-1-git-send-email-bill.fischofer@linaro.org
State Accepted
Headers show

Commit Message

Bill Fischofer March 10, 2015, 5:04 p.m. UTC
Signed-off-by: Bill Fischofer <bill.fischofer@linaro.org>
---
 include/odp/api/packet_flags.h | 36 ++++++++++++++++++------------------
 1 file changed, 18 insertions(+), 18 deletions(-)
diff mbox

Patch

diff --git a/include/odp/api/packet_flags.h b/include/odp/api/packet_flags.h
index b1e179e..88d6a19 100644
--- a/include/odp/api/packet_flags.h
+++ b/include/odp/api/packet_flags.h
@@ -35,7 +35,7 @@  extern "C" {
  * @retval 1 packet has errors
  * @retval 0 packet has no errors
  */
-int odp_packet_has_error(odp_packet_t pkt);
+odp_bool_t odp_packet_has_error(odp_packet_t pkt);
 
 /**
  * Check for L2 header, e.g. ethernet
@@ -44,7 +44,7 @@  int odp_packet_has_error(odp_packet_t pkt);
  * @retval 1 if packet contains a valid & known L2 header
  * @retval 0 if packet does not contain a valid & known L2 header
  */
-int odp_packet_has_l2(odp_packet_t pkt);
+odp_bool_t odp_packet_has_l2(odp_packet_t pkt);
 
 /**
  * Check for L3 header, e.g. IPv4, IPv6
@@ -53,7 +53,7 @@  int odp_packet_has_l2(odp_packet_t pkt);
  * @retval 1 if packet contains a valid & known L3 header
  * @retval 0 if packet does not contain a valid & known L3 header
  */
-int odp_packet_has_l3(odp_packet_t pkt);
+odp_bool_t odp_packet_has_l3(odp_packet_t pkt);
 
 /**
  * Check for L4 header, e.g. UDP, TCP, SCTP (also ICMP)
@@ -62,7 +62,7 @@  int odp_packet_has_l3(odp_packet_t pkt);
  * @retval 1 if packet contains a valid & known L4 header
  * @retval 0 if packet does not contain a valid & known L4 header
  */
-int odp_packet_has_l4(odp_packet_t pkt);
+odp_bool_t odp_packet_has_l4(odp_packet_t pkt);
 
 /**
  * Check for Ethernet header
@@ -71,7 +71,7 @@  int odp_packet_has_l4(odp_packet_t pkt);
  * @retval 1 if packet contains a valid eth header
  * @retval 0 if packet does not contain a valid & known eth header
  */
-int odp_packet_has_eth(odp_packet_t pkt);
+odp_bool_t odp_packet_has_eth(odp_packet_t pkt);
 
 /**
  * Check for jumbo frame
@@ -80,7 +80,7 @@  int odp_packet_has_eth(odp_packet_t pkt);
  * @retval 1 if packet contains a jumbo frame
  * @retval 0 if packet does not contain a jumbo frame
  */
-int odp_packet_has_jumbo(odp_packet_t pkt);
+odp_bool_t odp_packet_has_jumbo(odp_packet_t pkt);
 
 /**
  * Check for VLAN
@@ -89,7 +89,7 @@  int odp_packet_has_jumbo(odp_packet_t pkt);
  * @retval 1 if packet contains a VLAN header
  * @retval 0 if packet does not contain a VLAN header
  */
-int odp_packet_has_vlan(odp_packet_t pkt);
+odp_bool_t odp_packet_has_vlan(odp_packet_t pkt);
 
 /**
  * Check for VLAN QinQ (stacked VLAN)
@@ -98,7 +98,7 @@  int odp_packet_has_vlan(odp_packet_t pkt);
  * @retval 1 if packet contains a VLAN QinQ header
  * @retval 0 if packet does not contain a VLAN QinQ header
  */
-int odp_packet_has_vlan_qinq(odp_packet_t pkt);
+odp_bool_t odp_packet_has_vlan_qinq(odp_packet_t pkt);
 
 /**
  * Check for ARP
@@ -107,7 +107,7 @@  int odp_packet_has_vlan_qinq(odp_packet_t pkt);
  * @retval 1 if packet contains an ARP message
  * @retval 0 if packet does not contain an ARP message
  */
-int odp_packet_has_arp(odp_packet_t pkt);
+odp_bool_t odp_packet_has_arp(odp_packet_t pkt);
 
 /**
  * Check for IPv4
@@ -116,7 +116,7 @@  int odp_packet_has_arp(odp_packet_t pkt);
  * @retval 1 if packet contains an IPv4 header
  * @retval 0 if packet does not contain an IPv4 header
  */
-int odp_packet_has_ipv4(odp_packet_t pkt);
+odp_bool_t odp_packet_has_ipv4(odp_packet_t pkt);
 
 /**
  * Check for IPv6
@@ -125,7 +125,7 @@  int odp_packet_has_ipv4(odp_packet_t pkt);
  * @retval 1 if packet contains an IPv6 header
  * @retval 0 if packet does not contain an IPv6 header
  */
-int odp_packet_has_ipv6(odp_packet_t pkt);
+odp_bool_t odp_packet_has_ipv6(odp_packet_t pkt);
 
 /**
  * Check for IP fragment
@@ -134,7 +134,7 @@  int odp_packet_has_ipv6(odp_packet_t pkt);
  * @retval 1 if packet is an IP fragment
  * @retval 0 if packet is not an IP fragment
  */
-int odp_packet_has_ipfrag(odp_packet_t pkt);
+odp_bool_t odp_packet_has_ipfrag(odp_packet_t pkt);
 
 /**
  * Check for IP options
@@ -143,7 +143,7 @@  int odp_packet_has_ipfrag(odp_packet_t pkt);
  * @retval 1 if packet contains IP options
  * @retval 0 if packet does not contain IP options
  */
-int odp_packet_has_ipopt(odp_packet_t pkt);
+odp_bool_t odp_packet_has_ipopt(odp_packet_t pkt);
 
 /**
  * Check for IPSec
@@ -152,7 +152,7 @@  int odp_packet_has_ipopt(odp_packet_t pkt);
  * @retval 1 if packet requires IPSec processing
  * @retval 0 if packet does not require IPSec processing
  */
-int odp_packet_has_ipsec(odp_packet_t pkt);
+odp_bool_t odp_packet_has_ipsec(odp_packet_t pkt);
 
 /**
  * Check for UDP
@@ -161,7 +161,7 @@  int odp_packet_has_ipsec(odp_packet_t pkt);
  * @retval 1 if packet contains a UDP header
  * @retval 0 if packet does not contain a UDP header
  */
-int odp_packet_has_udp(odp_packet_t pkt);
+odp_bool_t odp_packet_has_udp(odp_packet_t pkt);
 
 /**
  * Check for TCP
@@ -170,7 +170,7 @@  int odp_packet_has_udp(odp_packet_t pkt);
  * @retval 1 if packet contains a TCP header
  * @retval 0 if packet does not contain a TCP header
  */
-int odp_packet_has_tcp(odp_packet_t pkt);
+odp_bool_t odp_packet_has_tcp(odp_packet_t pkt);
 
 /**
  * Check for SCTP
@@ -179,7 +179,7 @@  int odp_packet_has_tcp(odp_packet_t pkt);
  * @retval 1 if packet contains a SCTP header
  * @retval 0 if packet does not contain a SCTP header
  */
-int odp_packet_has_sctp(odp_packet_t pkt);
+odp_bool_t odp_packet_has_sctp(odp_packet_t pkt);
 
 /**
  * Check for ICMP
@@ -188,7 +188,7 @@  int odp_packet_has_sctp(odp_packet_t pkt);
  * @retval 1 if packet contains an ICMP header
  * @retval 0 if packet does not contain an ICMP header
  */
-int odp_packet_has_icmp(odp_packet_t pkt);
+odp_bool_t odp_packet_has_icmp(odp_packet_t pkt);
 
 /**
  * Set flag for L2 header, e.g. ethernet