Lines Matching refs:ga
291 struct garp_attr_hdr *ga; in garp_pdu_append_attr() local
309 len = sizeof(*ga) + attr->dlen; in garp_pdu_append_attr()
312 ga = __skb_put(app->pdu, len); in garp_pdu_append_attr()
313 ga->len = len; in garp_pdu_append_attr()
314 ga->event = event; in garp_pdu_append_attr()
315 memcpy(ga->data, attr->data, attr->dlen); in garp_pdu_append_attr()
441 const struct garp_attr_hdr *ga; in garp_pdu_parse_attr() local
446 if (!pskb_may_pull(skb, sizeof(*ga))) in garp_pdu_parse_attr()
448 ga = (struct garp_attr_hdr *)skb->data; in garp_pdu_parse_attr()
449 if (ga->len < sizeof(*ga)) in garp_pdu_parse_attr()
452 if (!pskb_may_pull(skb, ga->len)) in garp_pdu_parse_attr()
454 skb_pull(skb, ga->len); in garp_pdu_parse_attr()
455 dlen = sizeof(*ga) - ga->len; in garp_pdu_parse_attr()
460 switch (ga->event) { in garp_pdu_parse_attr()
484 attr = garp_attr_lookup(app, ga->data, dlen, attrtype); in garp_pdu_parse_attr()