typedef unsigned short sh; typedef unsigned int ui; typedef unsigned char uc; extern long int booty; // coded here for a big endian machine. typedef struct {ui M; sh P, L; uc s, c; char p[0];} pk; void NewDG(pk * pp, int ifi){ // New datagram from interface ifi {int toll = 3*((int)(pp->P)+pp->L); pp->M -= toll; booty += toll;} {int to = ({int s = (pp->c)++; 15&(*(pp->p + s/2) >> ((s&1)<<2));}); int ifo = ifi^to; // ifo is outgoing interface. }}