Feature #3168

pfmod commands could be more useful

Added by Jason King over 6 years ago.

Status:NewStart date:2012-09-08
Priority:LowDue date:
Assignee:-% Done:


Target version:-
Difficulty:Bite-size Tags:needs-triage


pfmod(7m) defines the ENF_PUSHFF00 and ENF_PUSH00FF commands for pushing those useful constants onto it's evaluation stack when processing a packet (as it operates on 16-bit words). However, these values are in host byte order.

Since most network protocols tend to use network byte order for data, these aren't quite as useful as they could be. This RFE would be to define two new commands that will push 0xff00 or 0x00ff in network byte order onto it's stack. This should just be a matter of #defining the new commands in terms of the existing ones based on the host byte order.

Also available in: Atom