3 .TH UMAD_SET_GRH_NET 3 "May 24, 2007" "OpenIB" "OpenIB Programmer\'s Manual"
5 umad_set_grh_net \- set GRH fields within umad buffer using network ordering
8 .B #include <infiniband/umad.h>
10 .BI "int umad_set_grh_net(void " "*umad" ", void " "*mad_addr");
14 sets the GRH fields (grh_present, gid, hop_limit, traffic_class, flow_label)
19 supplied. The provided
21 fields are expected to be in network order.
24 pointer supplied is NULL, no GRH is set.
29 struct, as specified in <infiniband/umad.h>.
34 struct, as specified in
35 .I <infiniband/umad.h>.
38 typedef struct ib_mad_addr {
48 uint8_t traffic_class;
54 typedef struct ib_user_mad {
68 returns 0 on success, and a negative value on errors. Currently, there
69 are no errors indicated.
76 Hal Rosenstock <halr@voltaire.com>