1/* $FreeBSD: head/sbin/ifconfig/carp.c 288305 2015-09-27 07:51:18Z ngie $ */ |
2/* from $OpenBSD: ifconfig.c,v 1.82 2003/10/19 05:43:35 mcbride Exp $ */ 3 4/* 5 * Copyright (c) 2002 Michael Shalayeff. All rights reserved. 6 * Copyright (c) 2003 Ryan McBride. All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without 9 * modification, are permitted provided that the following conditions --- 202 unchanged lines hidden (view full) --- 212 .af_name = "af_carp", 213 .af_af = AF_UNSPEC, 214 .af_other_status = carp_status, 215}; 216 217static __constructor void 218carp_ctor(void) 219{ |
220 int i; 221 |
222 for (i = 0; i < nitems(carp_cmds); i++) |
223 cmd_register(&carp_cmds[i]); 224 af_register(&af_carp); |
225} |