Skip to content

Commit

Permalink
pipe/queue are the only consumers of flow_id, so only set it in those…
Browse files Browse the repository at this point in the history
… cases
  • Loading branch information
billf committed Apr 6, 2001
1 parent f48416a commit 4062f7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sys/netinet/ip_fw.c
Original file line number Diff line number Diff line change
Expand Up @@ -1342,7 +1342,6 @@ ip_fw_chk(struct ip **pip, int hlen,
*/
if (q == NULL && f->fw_flg & IP_FW_F_KEEP_S)
install_state(chain);
*flow_id = chain ; /* XXX set flow id */
/* Update statistics */
f->fw_pcnt += 1;
f->fw_bcnt += ip_len;
Expand Down Expand Up @@ -1376,6 +1375,7 @@ ip_fw_chk(struct ip **pip, int hlen,
#ifdef DUMMYNET
case IP_FW_F_PIPE:
case IP_FW_F_QUEUE:
*flow_id = chain;
return(f->fw_pipe_nr | IP_FW_PORT_DYNT_FLAG);
#endif
#ifdef IPFIREWALL_FORWARD
Expand Down

0 comments on commit 4062f7d

Please sign in to comment.