Lines Matching refs:ga
282 struct garp_attr_hdr *ga; in garp_pdu_append_attr() local
300 len = sizeof(*ga) + attr->dlen; in garp_pdu_append_attr()
303 ga = (struct garp_attr_hdr *)__skb_put(app->pdu, len); in garp_pdu_append_attr()
304 ga->len = len; in garp_pdu_append_attr()
305 ga->event = event; in garp_pdu_append_attr()
306 memcpy(ga->data, attr->data, attr->dlen); in garp_pdu_append_attr()
432 const struct garp_attr_hdr *ga; in garp_pdu_parse_attr() local
437 if (!pskb_may_pull(skb, sizeof(*ga))) in garp_pdu_parse_attr()
439 ga = (struct garp_attr_hdr *)skb->data; in garp_pdu_parse_attr()
440 if (ga->len < sizeof(*ga)) in garp_pdu_parse_attr()
443 if (!pskb_may_pull(skb, ga->len)) in garp_pdu_parse_attr()
445 skb_pull(skb, ga->len); in garp_pdu_parse_attr()
446 dlen = sizeof(*ga) - ga->len; in garp_pdu_parse_attr()
451 switch (ga->event) { in garp_pdu_parse_attr()
475 attr = garp_attr_lookup(app, ga->data, dlen, attrtype); in garp_pdu_parse_attr()