#include int outbound(struct packetp_ctx *ctx, uint8_t *packet, void *unused) { struct ip_hdr *ip_head; /* Defined in dnet/ip.h */ ip_head = (struct ip_hdr *)packet; ip_head->ip_tos = IP_TOS_PREC_FLASHOVERRIDE; /* Also defined in dnet/ip.h */ return(0); } int main() { struct packetp_ctx *pp_ctx; pp_ctx = packetp_init(); packetp_start(pp_ctx, outbound, NULL, NULL); return(0); }