X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=vnet%2Fvnet%2Fsr%2Fsr_packet.h;h=5d8fee2f6b291b6ec2e365f6ef081ae5be5ad6c9;hb=06c5ffd625d575e6e76ece9e6c7be9873d147525;hp=f9672e8025b7ce710b89af698584e8257aa6f805;hpb=d1408c86834bcace2069aa2915522eda22be12ec;p=vpp.git diff --git a/vnet/vnet/sr/sr_packet.h b/vnet/vnet/sr/sr_packet.h index f9672e8025b..5d8fee2f6b2 100644 --- a/vnet/vnet/sr/sr_packet.h +++ b/vnet/vnet/sr/sr_packet.h @@ -169,7 +169,8 @@ #define ROUTING_HEADER_TYPE_SR 4 -typedef struct { +typedef struct +{ /* Protocol for next header. */ u8 protocol; /* @@ -202,10 +203,10 @@ typedef struct { /* values 0x4 - 0x7 are reserved */ u16 flags; u8 hmac_key; - + /* The segment + policy list elts */ ip6_address_t segments[0]; -} __attribute__((packed)) ip6_sr_header_t; +} __attribute__ ((packed)) ip6_sr_header_t; static inline int ip6_sr_policy_list_shift_from_index (int pl_index) @@ -214,7 +215,7 @@ ip6_sr_policy_list_shift_from_index (int pl_index) } /* pl_index is one-origined, to match the text above */ -static inline int +static inline int ip6_sr_policy_list_flags (u16 flags_host_byte_order, int pl_index) { int shift; @@ -229,3 +230,11 @@ ip6_sr_policy_list_flags (u16 flags_host_byte_order, int pl_index) } #endif /* included_vnet_sr_packet_h */ + +/* + * fd.io coding-style-patch-verification: ON + * + * Local Variables: + * eval: (c-set-style "gnu") + * End: + */