Project

General

Profile

Bug #70 ยป netgraph.lvalues.diff

slynko, 01/18/2006 05:34 PM

View differences:

ether/ng_ether.c 15 Jan 2006 23:38:24 -0000
#include "ng_ether.h"
#define IFP2AC(IFP) ((struct arpcom *)IFP)
#define IFP2NG(ifp) ((struct ng_node *)((struct arpcom *)(ifp))->ac_netgraph)
#define IFP2NG(ifp) (IFP2AC((ifp))->ac_netgraph)
/* Per-node private data */
struct private {
netgraph/ng_parse.c 15 Jan 2006 23:37:58 -0000
struct ng_parse_type subtype;
subtype = ng_parse_bytearray_subtype;
(const void *)subtype.private = type->info;
*(const void **)&subtype.private = type->info;
return ng_array_parse(&subtype, s, off, start, buf, buflen);
}
}
......
struct ng_parse_type subtype;
subtype = ng_parse_bytearray_subtype;
(const void *)subtype.private = type->info;
*(const void **)&subtype.private = type->info;
return ng_array_unparse(&subtype, data, off, cbuf, cbuflen);
}
......
struct ng_parse_type subtype;
subtype = ng_parse_bytearray_subtype;
(const void *)subtype.private = type->info;
*(const void **)&subtype.private = type->info;
return ng_array_getDefault(&subtype, start, buf, buflen);
}
    (1-1/1)