Searched refs:msg (Results 1 - 25 of 38) sorted by relevance

12

/openwrt/package/network/services/ead/src/
H A Dead-crypt.h18 extern void ead_encrypt_message(struct ead_msg *msg, unsigned int len);
19 extern int ead_decrypt_message(struct ead_msg *msg);
H A Dead-client.c42 static struct ead_msg *msg = (struct ead_msg *) msgbuf; variable in typeref:struct:ead_msg
87 memcpy(&msg->ip, &serverip.s_addr, sizeof(msg->ip));
89 sendto(s, msgbuf, sizeof(struct ead_msg) + ntohl(msg->len), 0, (struct sockaddr *) &remote, sizeof(remote));
113 if (len < sizeof(struct ead_msg) + ntohl(msg->len))
116 if (msg->magic != htonl(EAD_MAGIC))
119 if ((nid != 0xffff) && (ntohs(msg->nid) != nid))
122 if (msg->type != type)
151 struct ead_msg_pong *pong = EAD_DATA(msg, pong);
152 int len = ntohl(msg
[all...]
H A Dead.c301 memcpy(pktbuf, pkt, offsetof(struct ead_packet, msg));
306 len = sizeof(struct ead_packet) - sizeof(struct ether_header) + ntohl(pktbuf->msg.len);
309 memcpy(pktbuf->srcipaddr, &pkt->msg.ip, 4);
333 pcap_sendpacket(pcap_fp, (void *) pktbuf, sizeof(struct ead_packet) + ntohl(pktbuf->msg.len));
379 struct ead_msg *msg = &pktbuf->msg; local
380 struct ead_msg_pong *pong = EAD_DATA(msg, pong);
387 msg->len = htonl(sizeof(struct ead_msg_pong) + slen);
398 struct ead_msg *msg = &pkt->msg; local
415 struct ead_msg *msg = &pktbuf->msg; local
431 struct ead_msg *msg = &pkt->msg; local
454 struct ead_msg *msg = &pkt->msg; local
477 struct ead_msg *msg = &pkt->msg; local
[all...]
H A Dead-crypt.c114 ead_encrypt_message(struct ead_msg *msg, unsigned int len) argument
116 struct ead_msg_encrypted *enc = EAD_DATA(msg, enc);
124 msg->len = htonl(enclen);
140 ead_decrypt_message(struct ead_msg *msg) argument
142 struct ead_msg_encrypted *enc = EAD_DATA(msg, enc);
145 int len = ntohl(msg->len);
H A Dead-pcap.h63 struct ead_msg msg; member in struct:ead_packet
/openwrt/package/libs/libnl-tiny/src/
H A Dnl.c32 * struct nl_msg *msg = my_msg_builder();
33 * nl_send(sk, nlmsg_hdr(msg));
38 * nl_sendmsg(sk, nlmsg_hdr(msg), &hdr);
45 * nl_send_auto_complete(sk, nlmsg_hdr(msg));
58 * unsigned char *msg;
59 * nl_recv(sk, &peer, &msg);
88 #include <netlink/msg.h>
201 * @arg msg Netlink message to be sent.
205 int nl_sendmsg(struct nl_sock *sk, struct nl_msg *msg, struct msghdr *hdr) argument
211 .iov_base = (void *) nlmsg_hdr(msg),
240 nl_send(struct nl_sock *sk, struct nl_msg *msg) argument
288 nl_send_auto_complete(struct nl_sock *sk, struct nl_msg *msg) argument
332 struct nl_msg *msg; local
385 struct msghdr msg = { local
491 struct nl_msg *msg = NULL; local
689 ack_wait_handler(struct nl_msg *msg, void *arg) argument
[all...]
H A Dunl.c68 ack_handler(struct nl_msg *msg, void *arg) argument
76 finish_handler(struct nl_msg *msg, void *arg) argument
93 struct nl_msg *msg; local
96 msg = nlmsg_alloc();
97 if (!msg)
103 genlmsg_put(msg, NL_AUTO_PID, NL_AUTO_SEQ,
107 return msg;
110 int unl_genl_request(struct unl *unl, struct nl_msg *msg, unl_cb handler, void *arg) argument
116 err = nl_send_auto_complete(unl->sock, msg);
131 nlmsg_free(msg);
136 request_single_cb(struct nl_msg *msg, void *arg) argument
147 unl_genl_request_single(struct unl *unl, struct nl_msg *msg, struct nl_msg **dest) argument
153 no_seq_check(struct nl_msg *msg, void *arg) argument
177 struct nl_msg *msg; local
264 struct nl_msg *msg; local
[all...]
H A Dattr.c17 #include <netlink/msg.h>
21 * @ingroup msg
142 * nla_put(msg, ATTR_MY_STRUCT, sizeof(foo), &foo);
168 * nla_put_u32(msg, ATTR_FOO, 123);
187 * nla_put_string(msg, ATTR_BAR, "some text");
207 * nla_put_flag(msg, ATTR_FLAG);
235 * struct nlattr *opts = nla_nest_start(msg, ATTR_OPTS);
236 * nla_put_u32(msg, ATTR_FOO, 123);
237 * nla_put_string(msg, ATTR_BAR, "some text");
238 * nla_nest_end(msg, opt
612 nla_reserve(struct nl_msg *msg, int attrtype, int attrlen) argument
651 nla_put(struct nl_msg *msg, int attrtype, int datalen, const void *data) argument
[all...]
H A Dmsg.c2 * lib/msg.c Netlink Messages Interface
14 * @defgroup msg Messages
105 * struct nl_msg *msg = nlmsg_alloc();
109 * struct nl_msg *msg = nlmsg_alloc_simple(MY_TYPE, MY_FLAGS);
117 * struct nl_msg *msg = nlmsg_inherit(&hdr);
124 * struct nl_msg *msg = nlmsg_convert(nlh_from_nl_sock);
130 * nlmsg_append(msg, &mydata, sizeof(mydata), 0);
135 * void *data = nlmsg_reserve(msg, sizeof(mydata), NLMSG_ALIGNTO);
141 * nlmsg_free(msg);
166 #include <netlink/msg
347 struct nl_msg *msg; local
504 nlmsg_free(struct nl_msg *msg) argument
545 nl_msg_parse(struct nl_msg *msg, void (*cb)(struct nl_object *, void *), void *arg) argument
[all...]
H A Dgenl.c41 * struct nl_msg *msg;
55 * msg = nlmsg_alloc();
56 * genlmsg_put(msg, NL_AUTO_PID, NL_AUTO_SEQ, family, 0, NLM_F_ECHO,
58 * nla_put_u32(msg, ATTR_FOO, 123);
61 * nl_send_auto_complete(sock, msg);
64 * nlmsg_free(msg);
73 * static int parse_cb(struct nl_msg *msg, void *arg)
75 * struct nlmsghdr *nlh = nlmsg_hdr(msg);
235 * @arg msg netlink message
246 void *genlmsg_put(struct nl_msg *msg, uint32_ argument
[all...]
H A DMakefile13 LIBNL_OBJ=nl.o handlers.o msg.o attr.o cache.o cache_mngt.o object.o socket.o error.o
H A Dcache.c236 static int update_msg_parser(struct nl_msg *msg, void *arg) argument
240 return nl_cache_parse(x->ops, &msg->nm_src, msg->nm_nlh, x->params);
334 * @arg msg netlink message
341 int nl_cache_parse_and_add(struct nl_cache *cache, struct nl_msg *msg) argument
348 return nl_cache_parse(cache->c_ops, NULL, nlmsg_hdr(msg), &p);
H A Dhandlers.c36 #include <netlink/msg.h>
/openwrt/package/libs/libnl-tiny/src/include/netlink/
H A Dmsg.h2 * netlink/msg.c Netlink Messages Interface
27 * @ingroup msg
36 * @ingroup msg
170 static inline void nlmsg_set_proto(struct nl_msg *msg, int protocol) argument
172 msg->nm_protocol = protocol;
175 static inline int nlmsg_get_proto(struct nl_msg *msg) argument
177 return msg->nm_protocol;
180 static inline size_t nlmsg_get_max_size(struct nl_msg *msg) argument
182 return msg->nm_size;
185 static inline void nlmsg_set_src(struct nl_msg *msg, struc argument
190 nlmsg_get_src(struct nl_msg *msg) argument
195 nlmsg_set_dst(struct nl_msg *msg, struct sockaddr_nl *addr) argument
200 nlmsg_get_dst(struct nl_msg *msg) argument
205 nlmsg_set_creds(struct nl_msg *msg, struct ucred *creds) argument
211 nlmsg_get_creds(struct nl_msg *msg) argument
236 nlmsg_get(struct nl_msg *msg) argument
[all...]
H A Dattr.h19 #include <netlink/msg.h>
214 * @arg msg Netlink message.
224 static inline int nla_put_data(struct nl_msg *msg, int attrtype, struct nl_data *data) argument
226 return nla_put(msg, attrtype, nl_data_get_size(data),
232 * @arg msg Netlink message.
239 static inline int nla_put_addr(struct nl_msg *msg, int attrtype, struct nl_addr *addr) argument
241 return nla_put(msg, attrtype, nl_addr_get_len(addr),
253 * @arg msg Netlink message.
260 static inline int nla_put_u8(struct nl_msg *msg, int attrtype, uint8_t value) argument
262 return nla_put(msg, attrtyp
285 nla_put_u16(struct nl_msg *msg, int attrtype, uint16_t value) argument
310 nla_put_u32(struct nl_msg *msg, int attrtype, uint32_t value) argument
335 nla_put_u64(struct nl_msg *msg, int attrtype, uint64_t value) argument
364 nla_put_string(struct nl_msg *msg, int attrtype, const char *str) argument
399 nla_put_flag(struct nl_msg *msg, int attrtype) argument
456 nla_put_nested(struct nl_msg *msg, int attrtype, struct nl_msg *nested) argument
469 nla_nest_start(struct nl_msg *msg, int attrtype) argument
488 nla_nest_end(struct nl_msg *msg, struct nlattr *start) argument
[all...]
H A Dnetlink-kernel.h25 * @ingroup msg
63 * @ingroup msg
92 * @ingroup msg
122 * @ingroup msg
150 * @ingroup msg
180 * @ingroup msg
188 struct nlmsghdr msg; member in struct:nlmsgerr
/openwrt/package/network/utils/iwcap/src/
H A Diwcap.c257 void msg(const char *fmt, ...) function
312 msg("Unknown interface '%s'\n", ifname);
321 msg("Ring size of %d bytes is too short, "
331 msg("Packet truncate after %d bytes is too short, "
359 msg(
394 msg("No output file specified\n");
400 msg("The -s and -o options are exclusive\n");
406 msg("Refusing to stream into a terminal\n");
412 msg("No interface specified\n");
418 msg("Ba
[all...]
/openwrt/target/linux/generic/files/drivers/net/phy/
H A Dswconfig.c43 struct sk_buff *msg; member in struct:swconfig_callback
353 struct sk_buff *msg = cb->msg; local
357 hdr = genlmsg_put(msg, info->snd_portid, info->snd_seq, &switch_fam,
362 if (nla_put_u32(msg, SWITCH_ATTR_OP_ID, id))
364 if (nla_put_u32(msg, SWITCH_ATTR_OP_TYPE, op->type))
366 if (nla_put_string(msg, SWITCH_ATTR_OP_NAME, op->name))
369 if (nla_put_string(msg, SWITCH_ATTR_OP_DESCRIPTION,
373 genlmsg_end(msg, hdr);
374 return msg
584 swconfig_parse_ports(struct sk_buff *msg, struct nlattr *head, struct switch_val *val, int max) argument
615 swconfig_parse_link(struct sk_buff *msg, struct nlattr *nla, struct switch_port_link *link) argument
750 swconfig_send_ports(struct sk_buff **msg, struct genl_info *info, int attr, const struct switch_val *val) argument
782 swconfig_send_link(struct sk_buff *msg, struct genl_info *info, int attr, const struct switch_port_link *link) argument
834 struct sk_buff *msg = NULL; local
915 swconfig_send_switch(struct sk_buff *msg, u32 pid, u32 seq, int flags, const struct switch_dev *dev) argument
[all...]
/openwrt/package/libs/libnl-tiny/src/include/
H A Dunl.h24 int unl_genl_request(struct unl *unl, struct nl_msg *msg, unl_cb handler, void *arg);
25 int unl_genl_request_single(struct unl *unl, struct nl_msg *msg, struct nl_msg **dest);
42 static inline struct nlattr *unl_find_attr(struct unl *unl, struct nl_msg *msg, int attr) argument
44 return nlmsg_find_attr(nlmsg_hdr(msg), unl->hdrlen, attr);
/openwrt/package/network/config/swconfig/src/
H A Dswlib.c78 wait_handler(struct nl_msg *msg, void *arg) argument
91 struct nl_msg *msg; local
97 msg = nlmsg_alloc();
98 if (!msg) {
106 genlmsg_put(msg, NL_AUTO_PID, NL_AUTO_SEQ, genl_family_get_id(family), 0, flags, cmd, 0);
108 if (data(msg, arg) < 0)
118 err = nl_send_auto_complete(handle, msg);
146 nlmsg_free(msg);
151 send_attr(struct nl_msg *msg, void *arg) argument
156 NLA_PUT_U32(msg, SWITCH_ATTR_I
176 store_port_val(struct nl_msg *msg, struct nlattr *nla, struct switch_val *val) argument
214 store_link_val(struct nl_msg *msg, struct nlattr *nla, struct switch_val *val) argument
245 store_val(struct nl_msg *msg, void *arg) argument
306 send_attr_ports(struct nl_msg *msg, struct switch_val *val) argument
340 send_attr_link(struct nl_msg *msg, struct switch_val *val) argument
364 send_attr_val(struct nl_msg *msg, void *arg) argument
545 add_id(struct nl_msg *msg, void *arg) argument
557 add_attr(struct nl_msg *msg, void *ptr) argument
740 add_switch(struct nl_msg *msg, void *arg) argument
793 list_switch(struct nl_msg *msg, void *arg) argument
[all...]
/openwrt/target/linux/cns3xxx/files/drivers/i2c/busses/
H A Di2c-cns3xxx.c66 struct i2c_msg *msg; member in struct:cns3xxx_i2c
79 cns3xxx_i2c_xfer_msg(struct i2c_adapter *adap, struct i2c_msg *msg) argument
85 if (msg->len == 0) {
90 msg->len = 1;
93 i2c->buf = msg->buf;
96 if (msg->flags & I2C_M_TEN) {
102 i2c->msg = msg;
104 for (i = 0; i < msg->len; i++) {
105 if (msg
[all...]
/openwrt/package/libs/libnl-tiny/src/include/netlink/genl/
H A Dgenl.h16 #include <netlink/msg.h>
/openwrt/toolchain/musl/include/sys/
H A Dcdefs.h146 # define __warndecl(name, msg) \
147 extern void name (void) __attribute__((__warning__ (msg)))
148 # define __warnattr(msg) __attribute__((__warning__ (msg)))
149 # define __errordecl(name, msg) \
150 extern void name (void) __attribute__((__error__ (msg)))
152 # define __warndecl(name, msg) extern void name (void)
153 # define __warnattr(msg)
154 # define __errordecl(name, msg) extern void name (void)
/openwrt/target/linux/generic/files/drivers/leds/
H A Dledtrig-morse.c48 char *msg; member in struct:morse_trig_data
98 if (!morse_data->msg)
123 morse_data->msgpos = (char *)morse_data->msg;
127 morse_data->msgpos = (char *)morse_data->msg;
183 if (!morse_data->msg)
186 sprintf(buf, "%s\n", morse_data->msg);
204 if (morse_data->msg)
205 kfree(morse_data->msg);
207 morse_data->msg = m;
339 if (morse_data->msg)
[all...]
/openwrt/tools/firmware-utils/src/
H A Dseama.c185 static int verify_seama(const char * fname, int msg) argument
196 #define ERRBREAK(fmt, args...) { if (msg) printf(fmt, ##args); break; }
204 if (msg) printf("FILE - %s (%d bytes)\n", fname, (int)st.st_size);
234 if (msg)
247 if (msg)
256 if (msg)
267 if (msg) printf("================================================\n");

Completed in 100 milliseconds

12