{"action":"created","issue":{"url":"https://api.github.com/repos/p4lang/behavioral-model/issues/152","repository_url":"https://api.github.com/repos/p4lang/behavioral-model","labels_url":"https://api.github.com/repos/p4lang/behavioral-model/issues/152/labels{/name}","comments_url":"https://api.github.com/repos/p4lang/behavioral-model/issues/152/comments","events_url":"https://api.github.com/repos/p4lang/behavioral-model/issues/152/events","html_url":"https://github.com/p4lang/behavioral-model/issues/152","id":161258922,"number":152,"title":"Support header stacks references in expressions","user":{"login":"antoninbas","id":2495809,"avatar_url":"https://avatars.githubusercontent.com/u/2495809?v=3","gravatar_id":"","url":"https://api.github.com/users/antoninbas","html_url":"https://github.com/antoninbas","followers_url":"https://api.github.com/users/antoninbas/followers","following_url":"https://api.github.com/users/antoninbas/following{/other_user}","gists_url":"https://api.github.com/users/antoninbas/gists{/gist_id}","starred_url":"https://api.github.com/users/antoninbas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antoninbas/subscriptions","organizations_url":"https://api.github.com/users/antoninbas/orgs","repos_url":"https://api.github.com/users/antoninbas/repos","events_url":"https://api.github.com/users/antoninbas/events{/privacy}","received_events_url":"https://api.github.com/users/antoninbas/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/p4lang/behavioral-model/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"antoninbas","id":2495809,"avatar_url":"https://avatars.githubusercontent.com/u/2495809?v=3","gravatar_id":"","url":"https://api.github.com/users/antoninbas","html_url":"https://github.com/antoninbas","followers_url":"https://api.github.com/users/antoninbas/followers","following_url":"https://api.github.com/users/antoninbas/following{/other_user}","gists_url":"https://api.github.com/users/antoninbas/gists{/gist_id}","starred_url":"https://api.github.com/users/antoninbas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antoninbas/subscriptions","organizations_url":"https://api.github.com/users/antoninbas/orgs","repos_url":"https://api.github.com/users/antoninbas/repos","events_url":"https://api.github.com/users/antoninbas/events{/privacy}","received_events_url":"https://api.github.com/users/antoninbas/received_events","type":"User","site_admin":false},"assignees":[{"login":"antoninbas","id":2495809,"avatar_url":"https://avatars.githubusercontent.com/u/2495809?v=3","gravatar_id":"","url":"https://api.github.com/users/antoninbas","html_url":"https://github.com/antoninbas","followers_url":"https://api.github.com/users/antoninbas/followers","following_url":"https://api.github.com/users/antoninbas/following{/other_user}","gists_url":"https://api.github.com/users/antoninbas/gists{/gist_id}","starred_url":"https://api.github.com/users/antoninbas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antoninbas/subscriptions","organizations_url":"https://api.github.com/users/antoninbas/orgs","repos_url":"https://api.github.com/users/antoninbas/repos","events_url":"https://api.github.com/users/antoninbas/events{/privacy}","received_events_url":"https://api.github.com/users/antoninbas/received_events","type":"User","site_admin":false}],"milestone":null,"comments":9,"created_at":"2016-06-20T18:13:41Z","updated_at":"2016-09-20T09:38:18Z","closed_at":null,"body":"- s[last]\r\n- s[next] ?"},"comment":{"url":"https://api.github.com/repos/p4lang/behavioral-model/issues/comments/248252911","html_url":"https://github.com/p4lang/behavioral-model/issues/152#issuecomment-248252911","issue_url":"https://api.github.com/repos/p4lang/behavioral-model/issues/152","id":248252911,"user":{"login":"cw299","id":18739706,"avatar_url":"https://avatars.githubusercontent.com/u/18739706?v=3","gravatar_id":"","url":"https://api.github.com/users/cw299","html_url":"https://github.com/cw299","followers_url":"https://api.github.com/users/cw299/followers","following_url":"https://api.github.com/users/cw299/following{/other_user}","gists_url":"https://api.github.com/users/cw299/gists{/gist_id}","starred_url":"https://api.github.com/users/cw299/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cw299/subscriptions","organizations_url":"https://api.github.com/users/cw299/orgs","repos_url":"https://api.github.com/users/cw299/repos","events_url":"https://api.github.com/users/cw299/events{/privacy}","received_events_url":"https://api.github.com/users/cw299/received_events","type":"User","site_admin":false},"created_at":"2016-09-20T09:38:18Z","updated_at":"2016-09-20T09:38:18Z","body":"Thanks, this was exactly my problem. I removed the counter from the cloning field list, now it's working fine. \r\n\r\nYou can find attached the resulting p4 program. Here is how it works: An incoming packet contains a stack of IPv4 addresses. The p4 program processes the stack and generates a separate packet (by clone operations) for each IPv4 address.\r\n\r\n[stack_processing.zip](https://github.com/p4lang/behavioral-model/files/482124/stack_processing.zip)\r\n\r\n"}}
{"actor":{"display_login":"cw299"}}