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

Function nat64lsn_parse_int

tools/ipfw/nat64lsn.c:364–374  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

362}
363
364static uint32_t
365nat64lsn_parse_int(const char *arg, const char *desc)
366{
367 char *p;
368 uint32_t val;
369
370 val = (uint32_t)strtol(arg, &p, 10);
371 if (*p != '\0')
372 errx(EX_USAGE, "Invalid %s value: %s\n", desc, arg);
373 return (val);
374}
375
376static struct _s_x nat64newcmds[] = {
377 { "prefix6", TOK_PREFIX6 },

Callers 2

nat64lsn_createFunction · 0.85
nat64lsn_configFunction · 0.85

Calls 1

strtolFunction · 0.85

Tested by

no test coverage detected