MCPcopy Create free account
hub / github.com/F-Stack/f-stack / sctp_copy_chunklist

Function sctp_copy_chunklist

freebsd/netinet/sctp_auth.c:83–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81}
82
83sctp_auth_chklist_t *
84sctp_copy_chunklist(sctp_auth_chklist_t *list)
85{
86 sctp_auth_chklist_t *new_list;
87
88 if (list == NULL)
89 return (NULL);
90
91 /* get a new list */
92 new_list = sctp_alloc_chunklist();
93 if (new_list == NULL)
94 return (NULL);
95 /* copy it */
96 memcpy(new_list, list, sizeof(*new_list));
97
98 return (new_list);
99}
100
101/*
102 * add a chunk to the required chunks list

Callers 3

sctp_handle_cookie_echoFunction · 0.85
sctp_do_peeloffFunction · 0.85

Calls 2

sctp_alloc_chunklistFunction · 0.85
memcpyFunction · 0.50

Tested by

no test coverage detected