Lines Matching defs:conf
65 struct ng_checksum_config *conf;
193 struct ng_checksum_config *conf, *newconf;
233 if (priv->conf == NULL)
241 bcopy(priv->conf, resp->data, sizeof(struct ng_checksum_config));
246 conf = (struct ng_checksum_config *) msg->data;
251 conf->csum_flags &= NG_CHECKSUM_CSUM_IPV4|NG_CHECKSUM_CSUM_IPV6;
252 conf->csum_offload &= NG_CHECKSUM_CSUM_IPV4|NG_CHECKSUM_CSUM_IPV6;
256 bcopy(conf, newconf, sizeof(struct ng_checksum_config));
258 if (priv->conf)
259 free(priv->conf, M_NETGRAPH);
261 priv->conf = newconf;
331 if ((priv->conf->csum_offload & CSUM_IP) == 0) {
363 if ((priv->conf->csum_offload & CSUM_TCP) == 0) {
384 if ((priv->conf->csum_offload & CSUM_UDP) == 0) {
488 if ((priv->conf->csum_offload & CSUM_TCP_IPV6) == 0) {
508 if ((priv->conf->csum_offload & CSUM_UDP_IPV6) == 0) {
566 if (!(priv->conf && hook == priv->in && m && (m->m_flags & M_PKTHDR)))
569 m->m_pkthdr.csum_flags |= priv->conf->csum_flags;
702 if (priv->conf)
703 free(priv->conf, M_NETGRAPH);