From 5a093b74f6098caf00949dcf2c2ba4c2cd9ff255 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Thu, 31 Aug 2017 14:07:37 +0200 Subject: sys: change proc arguments to the format used by const/flags/len All other types have optional underlying type as the last argument. Proc have it as first. This creates very irregular syntax and complicates parsing. Make type the last argument. Note: this is a breaking change if you have descriptions on the side. --- sys/socket_inet.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/socket_inet.txt') diff --git a/sys/socket_inet.txt b/sys/socket_inet.txt index 66d370d62..17f94f778 100644 --- a/sys/socket_inet.txt +++ b/sys/socket_inet.txt @@ -19,7 +19,7 @@ sock_in_pair { sockaddr_in { family const[AF_INET, int16] - port proc[int16be, 20000, 4] + port proc[20000, 4, int16be] addr ipv4_addr pad array[const[0, int8], 8] } @@ -116,9 +116,9 @@ xfrm_policy_shares = XFRM_SHARE_ANY, XFRM_SHARE_SESSION, XFRM_SHARE_USER, XFRM_S xfrm_selector { daddr xfrm_address saddr xfrm_address - dport proc[int16be, 20000, 4] + dport proc[20000, 4, int16be] dport_mask int16 - sport proc[int16be, 20000, 4] + sport proc[20000, 4, int16be] sport_mask int16 family flags[socket_domain, int16] prefixlen_d flags[xfrm_prefixlens, int8] -- cgit mrf-deployment