• Home
  • Raw
  • Download

Lines Matching refs:err

14 	int err;  in main()  local
17 if ((err = nl_connect(sk, NETLINK_ROUTE)) < 0) { in main()
18 nl_perror(err, "Unable to connect socket"); in main()
19 return err; in main()
26 if ((err = rtnl_link_geneve_set_id(link, 123)) < 0) { in main()
27 nl_perror(err, "Unable to set GENEVE ID"); in main()
28 return err; in main()
32 if ((err = nl_addr_parse("2001:0db8:0:f101::1/64", AF_INET6, &addr)) < 0) { in main()
33 nl_perror(err, "Unable to parse IPv6 address"); in main()
34 return err; in main()
36 if ((err = rtnl_link_geneve_set_label(link, 123)) < 0) { in main()
37 nl_perror(err, "Unable to set label"); in main()
38 return err; in main()
41 if ((err = rtnl_link_geneve_set_udp_zero_csum6_tx(link, 1)) < 0) { in main()
42 nl_perror(err, "Unable to set skip transmitted UDP checksum"); in main()
43 return err; in main()
46 if ((err = rtnl_link_geneve_set_udp_zero_csum6_rx(link, 1)) < 0) { in main()
47 nl_perror(err, "Unable to set skip received UDP checksum"); in main()
48 return err; in main()
51 if ((err = nl_addr_parse("10.4.4.4", AF_INET, &addr)) < 0) { in main()
52 nl_perror(err, "Unable to parse IP address"); in main()
53 return err; in main()
57 if ((err = rtnl_link_geneve_set_remote(link, addr)) < 0) { in main()
58 nl_perror(err, "Unable to set remote address"); in main()
59 return err; in main()
63 if ((err = rtnl_link_geneve_set_ttl(link, 1)) < 0) { in main()
64 nl_perror(err, "Unable to set TTL"); in main()
65 return err; in main()
68 if ((err = rtnl_link_geneve_set_tos(link, 0)) < 0) { in main()
69 nl_perror(err, "Unable to set ToS"); in main()
70 return err; in main()
73 if ((err = rtnl_link_geneve_set_port(link, 5060)) < 0) { in main()
74 nl_perror(err, "Unable to set port"); in main()
75 return err; in main()
78 if ((err = rtnl_link_add(sk, link, NLM_F_CREATE)) < 0) { in main()
79 nl_perror(err, "Unable to add link"); in main()
80 return err; in main()